File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1214,8 +1214,6 @@ fn trim_paths_args(
1214
1214
}
1215
1215
remap
1216
1216
} ;
1217
- cmd. arg ( sysroot_remap) ;
1218
-
1219
1217
let package_remap = {
1220
1218
let pkg_root = unit. pkg . root ( ) ;
1221
1219
let ws_root = cx. bcx . ws . root ( ) ;
@@ -1242,7 +1240,11 @@ fn trim_paths_args(
1242
1240
}
1243
1241
remap
1244
1242
} ;
1243
+
1244
+ // Order of `--remap-path-prefix` flags is important for `-Zbuild-std`.
1245
+ // We want to show `/rustc/<hash>/library/std` instead of `std-0.0.0`.
1245
1246
cmd. arg ( package_remap) ;
1247
+ cmd. arg ( sysroot_remap) ;
1246
1248
1247
1249
Ok ( ( ) )
1248
1250
}
Original file line number Diff line number Diff line change @@ -267,8 +267,8 @@ fn remap_path_scope() {
267
267
[..]thread '[..]' panicked at [..]src/main.rs:3:[..]" ,
268
268
)
269
269
. with_stderr_contains ( "remap to /rustc/<hash>" )
270
- . with_stderr_contains ( "[..]at std-0.0.0 /src/[..]" )
270
+ . with_stderr_contains ( "[..]at /rustc/[..]/library/std /src/[..]" )
271
271
. with_stderr_contains ( "[..]at src/main.rs:3[..]" )
272
- . with_stderr_contains ( "[..]at core-0.0.0 /src/[..]" )
272
+ . with_stderr_contains ( "[..]at /rustc/[..]/library/core /src/[..]" )
273
273
. run ( ) ;
274
274
}
You can’t perform that action at this time.
0 commit comments