Skip to content

Commit f4c8cc9

Browse files
authored
Rollup merge of rust-lang#59809 - Zoxc:trait_methods_not_found, r=estebank
Make trait_methods_not_found use a lock r? @estebank
2 parents 2f71ecb + 9017d46 commit f4c8cc9

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
@@ -166,7 +166,7 @@ pub struct Session {
166166
pub driver_lint_caps: FxHashMap<lint::LintId, lint::Level>,
167167

168168
/// `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>>>,
169+
pub trait_methods_not_found: Lock<FxHashSet<Span>>,
170170
}
171171

172172
pub struct PerfStats {
@@ -1236,7 +1236,7 @@ fn build_session_(
12361236
has_global_allocator: Once::new(),
12371237
has_panic_handler: Once::new(),
12381238
driver_lint_caps,
1239-
trait_methods_not_found: OneThread::new(RefCell::new(Default::default())),
1239+
trait_methods_not_found: Lock::new(Default::default()),
12401240
};
12411241

12421242
validate_commandline_args_with_session_available(&sess);

0 commit comments

Comments
 (0)