@@ -71,11 +71,6 @@ pub struct Context<'a, 'cfg> {
7171 /// metadata files in addition to the rlib itself.
7272 rmeta_required : HashSet < Unit > ,
7373
74- /// When we're in jobserver-per-rustc process mode, this keeps those
75- /// jobserver clients for each Unit (which eventually becomes a rustc
76- /// process).
77- pub rustc_clients : HashMap < Unit , Client > ,
78-
7974 /// Map of the LTO-status of each unit. This indicates what sort of
8075 /// compilation is happening (only object, only bitcode, both, etc), and is
8176 /// precalculated early on.
@@ -124,7 +119,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
124119 primary_packages : HashSet :: new ( ) ,
125120 files : None ,
126121 rmeta_required : HashSet :: new ( ) ,
127- rustc_clients : HashMap :: new ( ) ,
128122 lto : HashMap :: new ( ) ,
129123 metadata_for_doc_units : HashMap :: new ( ) ,
130124 failed_scrape_units : Arc :: new ( Mutex :: new ( HashSet :: new ( ) ) ) ,
@@ -614,24 +608,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
614608 self . rmeta_required . contains ( unit)
615609 }
616610
617- /// Used by `-Zjobserver-per-rustc`.
618- pub fn new_jobserver ( & mut self ) -> CargoResult < Client > {
619- let tokens = self . bcx . jobs ( ) as usize ;
620- let client = Client :: new ( tokens) . with_context ( || "failed to create jobserver" ) ?;
621-
622- // Drain the client fully
623- for i in 0 ..tokens {
624- client. acquire_raw ( ) . with_context ( || {
625- format ! (
626- "failed to fully drain {}/{} token from jobserver at startup" ,
627- i, tokens,
628- )
629- } ) ?;
630- }
631-
632- Ok ( client)
633- }
634-
635611 /// Finds metadata for Doc/Docscrape units.
636612 ///
637613 /// rustdoc needs a -Cmetadata flag in order to recognize StableCrateIds that refer to
0 commit comments