@@ -83,8 +83,8 @@ 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=[..]/lib/rustlib/src/rust=/rustc/[..] \
87
- --remap-path-prefix=[CWD]= [..]
86
+ --remap-path-prefix=[CWD]= \
87
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
88
88
[FINISHED] release [..]" ,
89
89
)
90
90
. run ( ) ;
@@ -121,8 +121,8 @@ 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=[..]/lib/rustlib/src/rust=/rustc/[..] \
125
- --remap-path-prefix=[CWD]= [..]
124
+ --remap-path-prefix=[CWD]= \
125
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
126
126
[FINISHED] dev [..]" ,
127
127
) )
128
128
. run ( ) ;
@@ -158,8 +158,8 @@ 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=[..]/lib/rustlib/src/rust=/rustc/[..] \
162
- --remap-path-prefix=[CWD]= [..]
161
+ --remap-path-prefix=[CWD]= \
162
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
163
163
[FINISHED] dev [..]" ,
164
164
)
165
165
. run ( ) ;
@@ -193,8 +193,8 @@ 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=[..]/lib/rustlib/src/rust=/rustc/[..] \
197
- --remap-path-prefix=[CWD]= [..]
196
+ --remap-path-prefix=[CWD]= \
197
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
198
198
[FINISHED] custom [..]" ,
199
199
)
200
200
. run ( ) ;
@@ -238,13 +238,13 @@ fn registry_dependency() {
238
238
[COMPILING] bar v0.0.1
239
239
[RUNNING] `rustc [..]\
240
240
-Zremap-path-scope=object \
241
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
242
- --remap-path-prefix={pkg_remap} [..]
241
+ --remap-path-prefix={pkg_remap} \
242
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
243
243
[COMPILING] foo v0.0.1 ([CWD])
244
244
[RUNNING] `rustc [..]\
245
245
-Zremap-path-scope=object \
246
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
247
- --remap-path-prefix=[CWD]= [..]
246
+ --remap-path-prefix=[CWD]= \
247
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
248
248
[FINISHED] dev [..]
249
249
[RUNNING] `target/debug/foo[EXE]`"
250
250
) )
@@ -292,13 +292,13 @@ fn git_dependency() {
292
292
[COMPILING] bar v0.0.1 ({url}[..])
293
293
[RUNNING] `rustc [..]\
294
294
-Zremap-path-scope=object \
295
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
296
- --remap-path-prefix={pkg_remap} [..]
295
+ --remap-path-prefix={pkg_remap} \
296
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
297
297
[COMPILING] foo v0.0.1 ([CWD])
298
298
[RUNNING] `rustc [..]\
299
299
-Zremap-path-scope=object \
300
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
301
- --remap-path-prefix=[CWD]= [..]
300
+ --remap-path-prefix=[CWD]= \
301
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
302
302
[FINISHED] dev [..]
303
303
[RUNNING] `target/debug/foo[EXE]`"
304
304
) )
@@ -338,13 +338,13 @@ 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=[..]/lib/rustlib/src/rust=/rustc/[..] \
342
- --remap-path-prefix=[CWD]= [..]
341
+ --remap-path-prefix=[CWD]= \
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=[..]/lib/rustlib/src/rust=/rustc/[..] \
347
- --remap-path-prefix=[CWD]= [..]
346
+ --remap-path-prefix=[CWD]= \
347
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
348
348
[FINISHED] dev [..]
349
349
[RUNNING] `target/debug/foo[EXE]`"
350
350
) )
@@ -387,13 +387,13 @@ fn path_dependency_outside_workspace() {
387
387
[COMPILING] bar v0.0.1 ([..]/bar)
388
388
[RUNNING] `rustc [..]\
389
389
-Zremap-path-scope=object \
390
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
391
- --remap-path-prefix={bar_path}=bar-0.0.1 [..]
390
+ --remap-path-prefix={bar_path}=bar-0.0.1 \
391
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
392
392
[COMPILING] foo v0.0.1 ([CWD])
393
393
[RUNNING] `rustc [..]\
394
394
-Zremap-path-scope=object \
395
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
396
- --remap-path-prefix=[CWD]= [..]
395
+ --remap-path-prefix=[CWD]= \
396
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
397
397
[FINISHED] dev [..]
398
398
[RUNNING] `target/debug/foo[EXE]`"
399
399
) )
@@ -439,15 +439,15 @@ fn diagnostics_works() {
439
439
"\
440
440
[RUNNING] [..]rustc [..]\
441
441
-Zremap-path-scope=diagnostics \
442
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
443
- --remap-path-prefix={pkg_remap} [..]",
442
+ --remap-path-prefix={pkg_remap} \
443
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]",
444
444
) )
445
445
. with_stderr_contains (
446
446
"\
447
447
[RUNNING] [..]rustc [..]\
448
448
-Zremap-path-scope=diagnostics \
449
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
450
- --remap-path-prefix=[CWD]= [..]",
449
+ --remap-path-prefix=[CWD]= \
450
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]",
451
451
)
452
452
. run ( ) ;
453
453
}
@@ -528,13 +528,13 @@ fn object_works() {
528
528
[COMPILING] bar v0.0.1
529
529
[RUNNING] `rustc [..]\
530
530
-Zremap-path-scope=object \
531
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
532
- --remap-path-prefix={pkg_remap} [..]
531
+ --remap-path-prefix={pkg_remap} \
532
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
533
533
[COMPILING] foo v0.0.1 ([CWD])
534
534
[RUNNING] `rustc [..]\
535
535
-Zremap-path-scope=object \
536
- --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/[..] \
537
- --remap-path-prefix=[CWD]= [..]
536
+ --remap-path-prefix=[CWD]= \
537
+ --remap-path-prefix=[..]/lib/rustlib/src/rust=/rustc/ [..]
538
538
[FINISHED] dev [..]" ,
539
539
) )
540
540
. run ( ) ;
0 commit comments