mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-14 18:27:43 +00:00
27 lines
1014 B
Diff
27 lines
1014 B
Diff
--- a/src/bootstrap/lib.rs
|
|
+++ b/src/bootstrap/lib.rs
|
|
@@ -824,10 +824,9 @@
|
|
|
|
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"),
|
|
}
|
|
}
|
|
|
|
--- 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");
|