about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorSparrowLii <liyuan179@huawei.com>2023-04-04 16:26:00 +0800
committerSparrowLii <liyuan179@huawei.com>2023-05-06 09:34:24 +0800
commit9f8ab2a8d361c537d5f0e3c27df9e3f630daecd3 (patch)
treeaac9fe2b042111d05f611334b335d9a4ea806325 /compiler/rustc_interface/src
parentf196e27d87cf2be019098c7562b4c2cf26566680 (diff)
downloadrust-9f8ab2a8d361c537d5f0e3c27df9e3f630daecd3.tar.gz
rust-9f8ab2a8d361c537d5f0e3c27df9e3f630daecd3.zip
rename relative names in `sync`
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/interface.rs2
1 files changed, 1 insertions, 1 deletions
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`.