Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 65520ec

Browse files
committed
Add test for --remap-path-prefix on std imports
1 parent fed59d6 commit 65520ec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ignore-windows
2+
3+
// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix=/=/the/root/
4+
5+
// Here we check that imported code from std has their path remapped
6+
7+
// CHECK: !DIFile(filename: "{{/the/root/.*/library/std/src/panic.rs}}"
8+
fn main() {
9+
std::thread::spawn(|| {
10+
println!("hello");
11+
});
12+
}

0 commit comments

Comments
 (0)