From eb039ceabc168c95f100a78803760f10ae521f19 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Thu, 4 Aug 2022 08:50:12 +0100 Subject: [PATCH] d-bootstrap-custom-debuginfo-path Gbp-Pq: Name d-bootstrap-custom-debuginfo-path.patch --- src/bootstrap/lib.rs | 5 ++--- src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 930fefd13..b4ce82031 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -927,10 +927,9 @@ impl Build { match which { GitRepo::Rustc => { - let sha = self.rust_sha().unwrap_or(&self.version); - Some(format!("/rustc/{}", sha)) + Some(format!("/usr/src/rustc-{}", &self.version)) } - GitRepo::Llvm => Some(String::from("/rustc/llvm")), + GitRepo::Llvm => panic!("GitRepo::Llvm unsupported on Debian"), } } diff --git a/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs b/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs index b66abc6be..f6efe1e48 100644 --- a/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs +++ b/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs @@ -7,7 +7,7 @@ // true automatically. If paths to std library hasn't been remapped, we use the // above simulate-remapped-rust-src-base option to do it temporarily -// CHECK: !DIFile(filename: "{{/rustc/.*/library/std/src/panic.rs}}" +// CHECK: !DIFile(filename: "{{/usr/src/rustc-.*/library/std/src/panic.rs}}" fn main() { std::thread::spawn(|| { println!("hello"); -- 2.30.2