@@ -31,7 +31,7 @@ use rustc_hir::def_id::{CrateNum, LOCAL_CRATE};
31
31
use rustc_incremental:: {
32
32
copy_cgu_workproducts_to_incr_comp_cache_dir, in_incr_comp_dir, in_incr_comp_dir_sess,
33
33
} ;
34
- use rustc_jobserver:: { Acquired , Client } ;
34
+ use rustc_jobserver:: Acquired ;
35
35
use rustc_session:: cgu_reuse_tracker:: CguReuseTracker ;
36
36
use rustc_span:: hygiene:: ExpnId ;
37
37
use rustc_span:: source_map:: SourceMap ;
@@ -452,7 +452,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
452
452
codegen_worker_send,
453
453
coordinator_receive,
454
454
total_cgus,
455
- rustc_jobserver:: client ( ) ,
456
455
Arc :: new ( modules_config) ,
457
456
Arc :: new ( metadata_config) ,
458
457
Arc :: new ( allocator_config) ,
@@ -952,7 +951,6 @@ fn start_executing_work<B: ExtraBackendMethods>(
952
951
codegen_worker_send : Sender < Message < B > > ,
953
952
coordinator_receive : Receiver < Box < dyn Any + Send > > ,
954
953
total_cgus : usize ,
955
- jobserver : Client ,
956
954
modules_config : Arc < ModuleConfig > ,
957
955
metadata_config : Arc < ModuleConfig > ,
958
956
allocator_config : Arc < ModuleConfig > ,
@@ -996,7 +994,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
996
994
// get tokens on `coordinator_receive` which will
997
995
// get managed in the main loop below.
998
996
let coordinator_send2 = coordinator_send. clone ( ) ;
999
- let helper = jobserver
997
+ let helper = rustc_jobserver :: client ( )
1000
998
. into_helper_thread ( move |token| {
1001
999
let token = token. expect ( "acquired token successfully" ) ;
1002
1000
drop ( coordinator_send2. send ( Box :: new ( Message :: Token :: < B > ( token) ) ) ) ;
0 commit comments