diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index f3375e290e88..79a01f5c4b0b 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -91,7 +91,7 @@ pub struct Session { /// in order to avoid redundantly verbose output (Issue #24690, #44953). pub one_time_diagnostics: RefCell, String)>>, pub plugin_llvm_passes: OneThread>>, - pub plugin_attributes: RefCell>, + pub plugin_attributes: OneThread>>, pub crate_types: RefCell>, pub dependency_formats: RefCell, /// The crate_disambiguator is constructed out of all the `-C metadata` @@ -1095,7 +1095,7 @@ pub fn build_session_( buffered_lints: OneThread::new(RefCell::new(Some(lint::LintBuffer::new()))), one_time_diagnostics: RefCell::new(FxHashSet()), plugin_llvm_passes: OneThread::new(RefCell::new(Vec::new())), - plugin_attributes: RefCell::new(Vec::new()), + plugin_attributes: OneThread::new(RefCell::new(Vec::new())), crate_types: RefCell::new(Vec::new()), dependency_formats: RefCell::new(FxHashMap()), crate_disambiguator: Once::new(),