]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
[rust.git] / src / test / codegen / remap_path_prefix / issue-73167-remap-std.rs
1 // ignore-windows
2
3 // compile-flags: -g  -C no-prepopulate-passes -Z simulate-remapped-rust-src-base=/rustc/xyz
4
5 // Here we check that importing std will not cause real path to std source files
6 // to leak. If rustc was compiled with remap-debuginfo = true, this should be
7 // true automatically. If paths to std library hasn't been remapped, we use the
8 // above simulate-remapped-rust-src-base option to do it temporarily
9
10 // CHECK: !DIFile(filename: "{{/rustc/.*/library/std/src/panic.rs}}"
11 fn main() {
12     std::thread::spawn(|| {
13         println!("hello");
14     });
15 }