Skip to content

Commit 2adb418

Browse files
Stop depending on rustc_jobserver::Client
1 parent f406198 commit 2adb418

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustc_codegen_ssa/back/write.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use rustc_hir::def_id::{CrateNum, LOCAL_CRATE};
3131
use rustc_incremental::{
3232
copy_cgu_workproducts_to_incr_comp_cache_dir, in_incr_comp_dir, in_incr_comp_dir_sess,
3333
};
34-
use rustc_jobserver::{Acquired, Client};
34+
use rustc_jobserver::Acquired;
3535
use rustc_session::cgu_reuse_tracker::CguReuseTracker;
3636
use rustc_span::hygiene::ExpnId;
3737
use rustc_span::source_map::SourceMap;
@@ -452,7 +452,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
452452
codegen_worker_send,
453453
coordinator_receive,
454454
total_cgus,
455-
rustc_jobserver::client(),
456455
Arc::new(modules_config),
457456
Arc::new(metadata_config),
458457
Arc::new(allocator_config),
@@ -952,7 +951,6 @@ fn start_executing_work<B: ExtraBackendMethods>(
952951
codegen_worker_send: Sender<Message<B>>,
953952
coordinator_receive: Receiver<Box<dyn Any + Send>>,
954953
total_cgus: usize,
955-
jobserver: Client,
956954
modules_config: Arc<ModuleConfig>,
957955
metadata_config: Arc<ModuleConfig>,
958956
allocator_config: Arc<ModuleConfig>,
@@ -996,7 +994,7 @@ fn start_executing_work<B: ExtraBackendMethods>(
996994
// get tokens on `coordinator_receive` which will
997995
// get managed in the main loop below.
998996
let coordinator_send2 = coordinator_send.clone();
999-
let helper = jobserver
997+
let helper = rustc_jobserver::client()
1000998
.into_helper_thread(move |token| {
1001999
let token = token.expect("acquired token successfully");
10021000
drop(coordinator_send2.send(Box::new(Message::Token::<B>(token))));

0 commit comments

Comments
 (0)