about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authoroksbsb <oksbsb@126.com>2023-12-07 22:39:07 +0800
committeroksbsb <oksbsb@126.com>2023-12-08 09:50:28 +0800
commitdabedb711f13e14401e6be2f9a58a9bc1974a488 (patch)
treea4243dae73bfc27d7b6193b4c101cc3d46ca0bc2 /compiler/rustc_data_structures
parent370c91100ce008f3f31e207adbfee8aeafe09b14 (diff)
downloadrust-dabedb711f13e14401e6be2f9a58a9bc1974a488.tar.gz
rust-dabedb711f13e14401e6be2f9a58a9bc1974a488.zip
1. fix jobserver GLOBAL_CLIENT_CHECKED uninitialized before use
2. jobserver::initialize_checked should call before build_session, still should use EarlyErrorHandler, so revert stderr change in #118635
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/src/jobserver.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/jobserver.rs b/compiler/rustc_data_structures/src/jobserver.rs
index b777bfd4d3c..412e33aaa65 100644
--- a/compiler/rustc_data_structures/src/jobserver.rs
+++ b/compiler/rustc_data_structures/src/jobserver.rs
@@ -52,7 +52,7 @@ fn default_client() -> Client {
 
 static GLOBAL_CLIENT_CHECKED: OnceLock<Client> = OnceLock::new();
 
-pub fn check(report_warning: impl FnOnce(&'static str)) {
+pub fn initialize_checked(report_warning: impl FnOnce(&'static str)) {
     let client_checked = match &*GLOBAL_CLIENT {
         Ok(client) => client.clone(),
         Err(e) => {