diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-08-21 18:45:56 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-08-21 20:45:11 -0500 |
| commit | 41f9f38d6e19c669a14432b9ec56f26425c6c9e2 (patch) | |
| tree | cad6265947d0823ddc489af5427f6c7d7ef6da4c /compiler/rustc_session | |
| parent | b6e334d87349502766be70d649e6fe4a73573482 (diff) | |
| download | rust-41f9f38d6e19c669a14432b9ec56f26425c6c9e2.tar.gz rust-41f9f38d6e19c669a14432b9ec56f26425c6c9e2.zip | |
Remove `Session.trait_methods_not_found`
Instead, avoid registering the problematic well-formed obligation to begin with. This removes global untracked mutable state, and avoids potential issues with incremental compilation.
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 5b163603d5f..fabdebfb212 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -189,9 +189,6 @@ pub struct Session { /// Cap lint level specified by a driver specifically. 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: Lock<FxHashSet<Span>>, - /// Mapping from ident span to path span for paths that don't exist as written, but that /// exist under `std`. For example, wrote `str::from_utf8` instead of `std::str::from_utf8`. pub confused_type_with_std_module: Lock<FxHashMap<Span, Span>>, @@ -1353,7 +1350,6 @@ pub fn build_session( print_fuel, jobserver: jobserver::client(), driver_lint_caps, - trait_methods_not_found: Lock::new(Default::default()), confused_type_with_std_module: Lock::new(Default::default()), ctfe_backtrace, miri_unleashed_features: Lock::new(Default::default()), |
