@@ -190,20 +190,21 @@ fn main() {
190
190
"SelfProfile" => {
191
191
let mut cmd = Command :: new ( & tool) ;
192
192
determinism_env ( & mut cmd) ;
193
- cmd. arg ( "-Zself-profile-events=all" ) ;
194
- cmd. arg ( "-Zself-profile=Zsp" ) . args ( & args) ;
193
+ cmd. arg ( "-Zself-profile-events=all" )
194
+ . arg ( "-Zself-profile=Zsp" )
195
+ . args ( & args) ;
195
196
196
197
assert ! ( cmd. status( ) . expect( "failed to spawn" ) . success( ) ) ;
197
198
}
198
199
199
200
"TimePasses" => {
200
- args. insert ( 0 , "-Ztime-passes" . into ( ) ) ;
201
-
202
201
let mut cmd = Command :: new ( & tool) ;
203
202
determinism_env ( & mut cmd) ;
204
- cmd. args ( args) . stderr ( std:: process:: Stdio :: from (
205
- std:: fs:: File :: create ( "Ztp" ) . unwrap ( ) ,
206
- ) ) ;
203
+ cmd. arg ( "-Ztime-passes" )
204
+ . args ( args)
205
+ . stderr ( std:: process:: Stdio :: from (
206
+ std:: fs:: File :: create ( "Ztp" ) . unwrap ( ) ,
207
+ ) ) ;
207
208
assert ! ( cmd. status( ) . expect( "failed to spawn" ) . success( ) ) ;
208
209
}
209
210
@@ -349,34 +350,35 @@ fn main() {
349
350
}
350
351
351
352
"LlvmIr" => {
352
- args. push ( "--emit=llvm-ir=./llvm-ir" . into ( ) ) ;
353
- args. push ( "-Cno-prepopulate-passes" . into ( ) ) ;
354
- args. push ( "-Cpasses=name-anon-globals" . into ( ) ) ;
355
353
let mut cmd = Command :: new ( tool) ;
356
- cmd. args ( args) ;
354
+ cmd. arg ( "--emit=llvm-ir=./llvm-ir" )
355
+ . arg ( "-Cno-prepopulate-passes" )
356
+ . arg ( "-Cpasses=name-anon-globals" )
357
+ . args ( args) ;
357
358
determinism_env ( & mut cmd) ;
358
359
assert ! ( cmd. status( ) . expect( "failed to spawn" ) . success( ) ) ;
359
360
}
360
361
361
362
"MonoItems" => {
362
363
// Lazy item collection is the default (i.e., without this
363
364
// option)
364
- args. push ( "-Zprint-mono-items=lazy" . into ( ) ) ;
365
365
let mut cmd = Command :: new ( tool) ;
366
366
determinism_env ( & mut cmd) ;
367
- cmd. args ( args) . stdout ( std:: process:: Stdio :: from (
368
- std:: fs:: File :: create ( "mono-items" ) . unwrap ( ) ,
369
- ) ) ;
367
+ cmd. arg ( "-Zprint-mono-items=lazy" )
368
+ . args ( args)
369
+ . stdout ( std:: process:: Stdio :: from (
370
+ std:: fs:: File :: create ( "mono-items" ) . unwrap ( ) ,
371
+ ) ) ;
370
372
371
373
assert ! ( cmd. status( ) . expect( "failed to spawn" ) . success( ) ) ;
372
374
}
373
375
374
376
"DepGraph" => {
375
- args. push ( "-Zdump-dep-graph" . into ( ) ) ;
376
- args. push ( "-Zquery-dep-graph" . into ( ) ) ;
377
377
let mut cmd = Command :: new ( tool) ;
378
378
determinism_env ( & mut cmd) ;
379
- cmd. args ( & args) ;
379
+ cmd. arg ( "-Zdump-dep-graph" )
380
+ . arg ( "-Zquery-dep-graph" )
381
+ . args ( & args) ;
380
382
381
383
assert ! ( cmd. status( ) . expect( "failed to spawn" ) . success( ) ) ;
382
384
}
0 commit comments