We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f71ecb + 9017d46 commit f4c8cc9Copy full SHA for f4c8cc9
src/librustc/session/mod.rs
@@ -166,7 +166,7 @@ pub struct Session {
166
pub driver_lint_caps: FxHashMap<lint::LintId, lint::Level>,
167
168
/// `Span`s of trait methods that weren't found to avoid emitting object safety errors
169
- pub trait_methods_not_found: OneThread<RefCell<FxHashSet<Span>>>,
+ pub trait_methods_not_found: Lock<FxHashSet<Span>>,
170
}
171
172
pub struct PerfStats {
@@ -1236,7 +1236,7 @@ fn build_session_(
1236
has_global_allocator: Once::new(),
1237
has_panic_handler: Once::new(),
1238
driver_lint_caps,
1239
- trait_methods_not_found: OneThread::new(RefCell::new(Default::default())),
+ trait_methods_not_found: Lock::new(Default::default()),
1240
};
1241
1242
validate_commandline_args_with_session_available(&sess);
0 commit comments