Add test for --remap-path-prefix on std imports

This commit is contained in:
Andy Wang 2021-04-03 20:44:18 +01:00
parent fed59d669c
commit 65520ec802
No known key found for this signature in database
GPG key ID: 181B49F9F38F3374

View file

@ -0,0 +1,12 @@
// ignore-windows
// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix=/=/the/root/
// Here we check that imported code from std has their path remapped
// CHECK: !DIFile(filename: "{{/the/root/.*/library/std/src/panic.rs}}"
fn main() {
std::thread::spawn(|| {
println!("hello");
});
}