@@ -89,7 +89,7 @@ pub struct Session {
89
89
/// Set of (DiagnosticId, Option<Span>, message) tuples tracking
90
90
/// (sub)diagnostics that have been set once, but should not be set again,
91
91
/// in order to avoid redundantly verbose output (Issue #24690, #44953).
92
- pub one_time_diagnostics : RefCell < FxHashSet < ( DiagnosticMessageId , Option < Span > , String ) > > ,
92
+ pub one_time_diagnostics : Lock < FxHashSet < ( DiagnosticMessageId , Option < Span > , String ) > > ,
93
93
pub plugin_llvm_passes : OneThread < RefCell < Vec < String > > > ,
94
94
pub plugin_attributes : OneThread < RefCell < Vec < ( String , AttributeType ) > > > ,
95
95
pub crate_types : Once < Vec < config:: CrateType > > ,
@@ -1091,7 +1091,7 @@ pub fn build_session_(
1091
1091
working_dir,
1092
1092
lint_store : RwLock :: new ( lint:: LintStore :: new ( ) ) ,
1093
1093
buffered_lints : Lock :: new ( Some ( lint:: LintBuffer :: new ( ) ) ) ,
1094
- one_time_diagnostics : RefCell :: new ( FxHashSet ( ) ) ,
1094
+ one_time_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
1095
1095
plugin_llvm_passes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
1096
1096
plugin_attributes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
1097
1097
crate_types : Once :: new ( ) ,
0 commit comments