Make one_time_diagnostics thread-safe
This commit is contained in:
parent
bf06a53265
commit
e5fc06da8a
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ pub struct Session {
|
|||
/// Set of (DiagnosticId, Option<Span>, message) tuples tracking
|
||||
/// (sub)diagnostics that have been set once, but should not be set again,
|
||||
/// in order to avoid redundantly verbose output (Issue #24690, #44953).
|
||||
pub one_time_diagnostics: RefCell<FxHashSet<(DiagnosticMessageId, Option<Span>, String)>>,
|
||||
pub one_time_diagnostics: Lock<FxHashSet<(DiagnosticMessageId, Option<Span>, String)>>,
|
||||
pub plugin_llvm_passes: OneThread<RefCell<Vec<String>>>,
|
||||
pub plugin_attributes: OneThread<RefCell<Vec<(String, AttributeType)>>>,
|
||||
pub crate_types: Once<Vec<config::CrateType>>,
|
||||
|
|
@ -1091,7 +1091,7 @@ pub fn build_session_(
|
|||
working_dir,
|
||||
lint_store: RwLock::new(lint::LintStore::new()),
|
||||
buffered_lints: Lock::new(Some(lint::LintBuffer::new())),
|
||||
one_time_diagnostics: RefCell::new(FxHashSet()),
|
||||
one_time_diagnostics: Lock::new(FxHashSet()),
|
||||
plugin_llvm_passes: OneThread::new(RefCell::new(Vec::new())),
|
||||
plugin_attributes: OneThread::new(RefCell::new(Vec::new())),
|
||||
crate_types: Once::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue