@@ -207,7 +207,6 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
207
207
) -> CargoResult < ( ) > {
208
208
let mut tokens = Vec :: new ( ) ;
209
209
let mut queue = Vec :: new ( ) ;
210
- let build_plan = cx. bcx . build_config . build_plan ;
211
210
let mut print = DiagnosticPrinter :: new ( cx. bcx . config ) ;
212
211
trace ! ( "queue: {:#?}" , self . queue) ;
213
212
@@ -240,7 +239,7 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
240
239
// we're able to perform some parallel work.
241
240
while error. is_none ( ) && self . active . len ( ) < tokens. len ( ) + 1 && !queue. is_empty ( ) {
242
241
let ( key, job) = queue. remove ( 0 ) ;
243
- self . run ( key, job, cx. bcx . config , scope, build_plan ) ?;
242
+ self . run ( key, job, cx, scope) ?;
244
243
}
245
244
246
245
// If after all that we're not actually running anything then we're
@@ -358,7 +357,7 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
358
357
"{} [{}] target(s) in {}" ,
359
358
build_type, opt_type, time_elapsed
360
359
) ;
361
- if !build_plan {
360
+ if !cx . bcx . build_config . build_plan {
362
361
cx. bcx . config . shell ( ) . status ( "Finished" , message) ?;
363
362
}
364
363
Ok ( ( ) )
@@ -389,9 +388,8 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
389
388
& mut self ,
390
389
key : Key < ' a > ,
391
390
job : Job ,
392
- config : & Config ,
391
+ cx : & Context < ' _ , ' _ > ,
393
392
scope : & Scope < ' a > ,
394
- build_plan : bool ,
395
393
) -> CargoResult < ( ) > {
396
394
info ! ( "start: {:?}" , key) ;
397
395
@@ -405,9 +403,9 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
405
403
my_tx. send ( Message :: Finish ( key, res) ) . unwrap ( ) ;
406
404
} ;
407
405
408
- if !build_plan {
406
+ if !cx . bcx . build_config . build_plan {
409
407
// Print out some nice progress information.
410
- self . note_working_on ( config, & key, fresh) ?;
408
+ self . note_working_on ( cx . bcx . config , & key, fresh) ?;
411
409
}
412
410
413
411
match fresh {
0 commit comments