@@ -30,7 +30,7 @@ use rustc_target::spec::MergeFunctions;
30
30
use syntax:: attr;
31
31
use syntax_pos:: hygiene:: ExpnId ;
32
32
use syntax_pos:: symbol:: { Symbol , sym} ;
33
- use rustc_jobserver:: { Client , Acquired } ;
33
+ use rustc_jobserver:: Acquired ;
34
34
35
35
use std:: any:: Any ;
36
36
use std:: fs;
@@ -432,7 +432,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
432
432
codegen_worker_send,
433
433
coordinator_receive,
434
434
total_cgus,
435
- rustc_jobserver:: client ( ) ,
436
435
Arc :: new ( modules_config) ,
437
436
Arc :: new ( metadata_config) ,
438
437
Arc :: new ( allocator_config) ,
@@ -937,7 +936,6 @@ fn start_executing_work<B: ExtraBackendMethods>(
937
936
codegen_worker_send : Sender < Message < B > > ,
938
937
coordinator_receive : Receiver < Box < dyn Any + Send > > ,
939
938
total_cgus : usize ,
940
- jobserver : Client ,
941
939
modules_config : Arc < ModuleConfig > ,
942
940
metadata_config : Arc < ModuleConfig > ,
943
941
allocator_config : Arc < ModuleConfig > ,
@@ -980,7 +978,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
980
978
// get tokens on `coordinator_receive` which will
981
979
// get managed in the main loop below.
982
980
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| {
984
982
let token = token. expect ( "acquired token successfully" ) ;
985
983
drop ( coordinator_send2. send ( Box :: new ( Message :: Token :: < B > ( token) ) ) ) ;
986
984
} ) . expect ( "failed to spawn helper thread" ) ;
0 commit comments