diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-12 12:17:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-12 12:17:52 +0200 |
| commit | f4c8cc95389a8a0a6bca1d3a13af5f69201e68be (patch) | |
| tree | d04a950dc0d1d1abe114cd9da7b4625eef43c729 | |
| parent | 2f71ecbb5e15a7ef4d57066f46a5c2273510469f (diff) | |
| parent | 9017d46901700a4b877f47b2c715841557b388a1 (diff) | |
| download | rust-f4c8cc95389a8a0a6bca1d3a13af5f69201e68be.tar.gz rust-f4c8cc95389a8a0a6bca1d3a13af5f69201e68be.zip | |
Rollup merge of #59809 - Zoxc:trait_methods_not_found, r=estebank
Make trait_methods_not_found use a lock r? @estebank
| -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); |
