diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-04-09 10:19:53 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-04-09 10:20:14 +0200 |
| commit | 9017d46901700a4b877f47b2c715841557b388a1 (patch) | |
| tree | 8484e52c8d3577773e55816622a9dfa225b3540c | |
| parent | 3750348daff89741e3153e0e120aa70a45ff5b68 (diff) | |
| download | rust-9017d46901700a4b877f47b2c715841557b388a1.tar.gz rust-9017d46901700a4b877f47b2c715841557b388a1.zip | |
Make trait_methods_not_found use a lock
| -rw-r--r-- | src/librustc/session/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index 2f3df32945c..9cd6c30e272 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -166,7 +166,7 @@ pub struct Session { pub driver_lint_caps: FxHashMap<lint::LintId, lint::Level>, /// `Span`s of trait methods that weren't found to avoid emitting object safety errors - pub trait_methods_not_found: OneThread<RefCell<FxHashSet<Span>>>, + pub trait_methods_not_found: Lock<FxHashSet<Span>>, } pub struct PerfStats { @@ -1236,7 +1236,7 @@ fn build_session_( has_global_allocator: Once::new(), has_panic_handler: Once::new(), driver_lint_caps, - trait_methods_not_found: OneThread::new(RefCell::new(Default::default())), + trait_methods_not_found: Lock::new(Default::default()), }; validate_commandline_args_with_session_available(&sess); |
