@@ -89,7 +89,7 @@ pub struct Session {
8989 /// Set of (DiagnosticId, Option<Span>, message) tuples tracking
9090 /// (sub)diagnostics that have been set once, but should not be set again,
9191 /// 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 ) > > ,
9393 pub plugin_llvm_passes : OneThread < RefCell < Vec < String > > > ,
9494 pub plugin_attributes : OneThread < RefCell < Vec < ( String , AttributeType ) > > > ,
9595 pub crate_types : Once < Vec < config:: CrateType > > ,
@@ -1091,7 +1091,7 @@ pub fn build_session_(
10911091 working_dir,
10921092 lint_store : RwLock :: new ( lint:: LintStore :: new ( ) ) ,
10931093 buffered_lints : Lock :: new ( Some ( lint:: LintBuffer :: new ( ) ) ) ,
1094- one_time_diagnostics : RefCell :: new ( FxHashSet ( ) ) ,
1094+ one_time_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
10951095 plugin_llvm_passes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
10961096 plugin_attributes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
10971097 crate_types : Once :: new ( ) ,
0 commit comments