From 9f8ab2a8d361c537d5f0e3c27df9e3f630daecd3 Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Tue, 4 Apr 2023 16:26:00 +0800 Subject: rename relative names in `sync` --- compiler/rustc_interface/src/interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_interface/src/interface.rs') diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 2a091077700..fb6c273e929 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -62,7 +62,7 @@ impl Compiler { #[allow(rustc::bad_opt_access)] pub fn set_parallel_mode(sopts: &config::UnstableOptions) { - rustc_data_structures::sync::set(sopts.threads > 1); + rustc_data_structures::sync::set_dyn_thread_safe_mode(sopts.threads > 1); } /// Converts strings provided as `--cfg [cfgspec]` into a `crate_cfg`. -- cgit 1.4.1-3-g733a5