Skip to content

Commit 046af1c

Browse files
committed
Make sure Session.plugin_attributes is only used on one thread
1 parent 0e51d48 commit 046af1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/session/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub struct Session {
9191
/// in order to avoid redundantly verbose output (Issue #24690, #44953).
9292
pub one_time_diagnostics: RefCell<FxHashSet<(DiagnosticMessageId, Option<Span>, String)>>,
9393
pub plugin_llvm_passes: OneThread<RefCell<Vec<String>>>,
94-
pub plugin_attributes: RefCell<Vec<(String, AttributeType)>>,
94+
pub plugin_attributes: OneThread<RefCell<Vec<(String, AttributeType)>>>,
9595
pub crate_types: RefCell<Vec<config::CrateType>>,
9696
pub dependency_formats: RefCell<dependency_format::Dependencies>,
9797
/// The crate_disambiguator is constructed out of all the `-C metadata`
@@ -1095,7 +1095,7 @@ pub fn build_session_(
10951095
buffered_lints: OneThread::new(RefCell::new(Some(lint::LintBuffer::new()))),
10961096
one_time_diagnostics: RefCell::new(FxHashSet()),
10971097
plugin_llvm_passes: OneThread::new(RefCell::new(Vec::new())),
1098-
plugin_attributes: RefCell::new(Vec::new()),
1098+
plugin_attributes: OneThread::new(RefCell::new(Vec::new())),
10991099
crate_types: RefCell::new(Vec::new()),
11001100
dependency_formats: RefCell::new(FxHashMap()),
11011101
crate_disambiguator: Once::new(),

0 commit comments

Comments
 (0)