@@ -30,7 +30,7 @@ use rustc_target::spec::MergeFunctions;
3030use syntax:: attr;
3131use syntax_pos:: hygiene:: ExpnId ;
3232use syntax_pos:: symbol:: { Symbol , sym} ;
33- use rustc_jobserver:: { Client , Acquired } ;
33+ use rustc_jobserver:: Acquired ;
3434
3535use std:: any:: Any ;
3636use std:: fs;
@@ -432,7 +432,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
432432 codegen_worker_send,
433433 coordinator_receive,
434434 total_cgus,
435- rustc_jobserver:: client ( ) ,
436435 Arc :: new ( modules_config) ,
437436 Arc :: new ( metadata_config) ,
438437 Arc :: new ( allocator_config) ,
@@ -937,7 +936,6 @@ fn start_executing_work<B: ExtraBackendMethods>(
937936 codegen_worker_send : Sender < Message < B > > ,
938937 coordinator_receive : Receiver < Box < dyn Any + Send > > ,
939938 total_cgus : usize ,
940- jobserver : Client ,
941939 modules_config : Arc < ModuleConfig > ,
942940 metadata_config : Arc < ModuleConfig > ,
943941 allocator_config : Arc < ModuleConfig > ,
@@ -980,7 +978,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
980978 // get tokens on `coordinator_receive` which will
981979 // get managed in the main loop below.
982980 let coordinator_send2 = coordinator_send. clone ( ) ;
983- let helper = jobserver . into_helper_thread ( move |token| {
981+ let helper = rustc_jobserver :: client ( ) . into_helper_thread ( move |token| {
984982 let token = token. expect ( "acquired token successfully" ) ;
985983 drop ( coordinator_send2. send ( Box :: new ( Message :: Token :: < B > ( token) ) ) ) ;
986984 } ) . expect ( "failed to spawn helper thread" ) ;
0 commit comments