@@ -83,7 +83,7 @@ fn release_profile_default_to_object() {
83
83
[COMPILING] foo v0.0.1 ([CWD])
84
84
[RUNNING] `rustc [..]\
85
85
-Zremap-path-scope=object \
86
- --remap-path-prefix=[CWD]= \
86
+ --remap-path-prefix=[CWD]=. \
87
87
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
88
88
[FINISHED] release [..]" ,
89
89
)
@@ -121,7 +121,7 @@ fn one_option() {
121
121
[COMPILING] foo v0.0.1 ([CWD])
122
122
[RUNNING] `rustc [..]\
123
123
-Zremap-path-scope={option} \
124
- --remap-path-prefix=[CWD]= \
124
+ --remap-path-prefix=[CWD]=. \
125
125
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
126
126
[FINISHED] dev [..]" ,
127
127
) )
@@ -158,7 +158,7 @@ fn multiple_options() {
158
158
[COMPILING] foo v0.0.1 ([CWD])
159
159
[RUNNING] `rustc [..]\
160
160
-Zremap-path-scope=diagnostics,macro,object \
161
- --remap-path-prefix=[CWD]= \
161
+ --remap-path-prefix=[CWD]=. \
162
162
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
163
163
[FINISHED] dev [..]" ,
164
164
)
@@ -193,7 +193,7 @@ fn profile_merge_works() {
193
193
[COMPILING] foo v0.0.1 ([CWD])
194
194
[RUNNING] `rustc [..]\
195
195
-Zremap-path-scope=diagnostics \
196
- --remap-path-prefix=[CWD]= \
196
+ --remap-path-prefix=[CWD]=. \
197
197
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
198
198
[FINISHED] custom [..]" ,
199
199
)
@@ -243,7 +243,7 @@ fn registry_dependency() {
243
243
[COMPILING] foo v0.0.1 ([CWD])
244
244
[RUNNING] `rustc [..]\
245
245
-Zremap-path-scope=object \
246
- --remap-path-prefix=[CWD]= \
246
+ --remap-path-prefix=[CWD]=. \
247
247
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
248
248
[FINISHED] dev [..]
249
249
[RUNNING] `target/debug/foo[EXE]`"
@@ -297,7 +297,7 @@ fn git_dependency() {
297
297
[COMPILING] foo v0.0.1 ([CWD])
298
298
[RUNNING] `rustc [..]\
299
299
-Zremap-path-scope=object \
300
- --remap-path-prefix=[CWD]= \
300
+ --remap-path-prefix=[CWD]=. \
301
301
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
302
302
[FINISHED] dev [..]
303
303
[RUNNING] `target/debug/foo[EXE]`"
@@ -338,12 +338,12 @@ fn path_dependency() {
338
338
[COMPILING] bar v0.0.1 ([..]/cocktail-bar)
339
339
[RUNNING] `rustc [..]\
340
340
-Zremap-path-scope=object \
341
- --remap-path-prefix=[CWD]= \
341
+ --remap-path-prefix=[CWD]=. \
342
342
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
343
343
[COMPILING] foo v0.0.1 ([CWD])
344
344
[RUNNING] `rustc [..]\
345
345
-Zremap-path-scope=object \
346
- --remap-path-prefix=[CWD]= \
346
+ --remap-path-prefix=[CWD]=. \
347
347
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
348
348
[FINISHED] dev [..]
349
349
[RUNNING] `target/debug/foo[EXE]`"
@@ -392,7 +392,7 @@ fn path_dependency_outside_workspace() {
392
392
[COMPILING] foo v0.0.1 ([CWD])
393
393
[RUNNING] `rustc [..]\
394
394
-Zremap-path-scope=object \
395
- --remap-path-prefix=[CWD]= \
395
+ --remap-path-prefix=[CWD]=. \
396
396
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
397
397
[FINISHED] dev [..]
398
398
[RUNNING] `target/debug/foo[EXE]`"
@@ -446,7 +446,7 @@ fn diagnostics_works() {
446
446
"\
447
447
[RUNNING] [..]rustc [..]\
448
448
-Zremap-path-scope=diagnostics \
449
- --remap-path-prefix=[CWD]= \
449
+ --remap-path-prefix=[CWD]=. \
450
450
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]",
451
451
)
452
452
. run ( ) ;
@@ -550,7 +550,7 @@ fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
550
550
[COMPILING] foo v0.0.1 ([CWD])
551
551
[RUNNING] `rustc [..]\
552
552
-Zremap-path-scope=object \
553
- --remap-path-prefix=[CWD]= \
553
+ --remap-path-prefix=[CWD]=. \
554
554
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]
555
555
[FINISHED] dev [..]" ,
556
556
) )
@@ -578,7 +578,7 @@ fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
578
578
// on macOS `SO` symbols are embedded in final binaries and should be trimmed.
579
579
// See rust-lang/rust#117652.
580
580
assert ! (
581
- memchr:: memmem:: find( line, b" SO " ) . is_some ( ) ,
581
+ memchr:: memmem:: find( line, b" SO " ) . is_none ( ) ,
582
582
"untrimmed `SO` symbol found"
583
583
)
584
584
}
@@ -700,7 +700,7 @@ fn lldb_works_after_trimmed() {
700
700
"\
701
701
[RUNNING] `rustc [..]\
702
702
-Zremap-path-scope=object \
703
- --remap-path-prefix=[CWD]= \
703
+ --remap-path-prefix=[CWD]=. \
704
704
--remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..]",
705
705
)
706
706
. run ( ) ;
0 commit comments