File tree 1 file changed +2
-7
lines changed
src/test/codegen/remap_path_prefix
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
// ignore-windows
2
2
3
- // compile-flags: -g -C no-prepopulate-passes --remap-path-prefix={{cwd}}/library/std =/the/std
3
+ // compile-flags: -g -C no-prepopulate-passes --remap-path-prefix=/ =/the/root/
4
4
5
5
// Here we check that imported code from std has their path remapped
6
- // Ideally we want to do
7
- // COM: CHECK-NOT: !DIFile(filename: "{{cwd}}/library/std/src/thread/mod.rs"
8
- // But {{cwd}} will not be expanded here, so we have to check on the bit afterwards
9
- // Note that we can't use a positive check on `/the/std` either, because the rempap flag will
10
- // have no effect when `remap-debuginfo` is set to true in `config.toml`, causing the test to fail
11
6
12
- // CHECK-NOT : !DIFile(filename: "{{.*}} /library/std"
7
+ // CHECK: !DIFile(filename: "{{/the/root/.* /library/std/src/panic.rs}} "
13
8
fn main ( ) {
14
9
std:: thread:: spawn ( || {
15
10
println ! ( "hello" ) ;
You can’t perform that action at this time.
0 commit comments