diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-04-08 16:04:37 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-04-09 15:44:19 +0300 |
| commit | 379ae12a1dfc26ba58607be7f83a3e7f24550a84 (patch) | |
| tree | 89e66d5edcc263fd3b4ed77d1fa96e1de94b6f11 /compiler/rustc_interface/src | |
| parent | 399dd8049d4b27329350937e3e17077205bdc0bf (diff) | |
| download | rust-379ae12a1dfc26ba58607be7f83a3e7f24550a84.tar.gz rust-379ae12a1dfc26ba58607be7f83a3e7f24550a84.zip | |
expand: Remove `ParseSess::missing_fragment_specifiers`
It was used for deduplicating some errors for legacy code which are mostly deduplicated even without that, but at cost of global mutable state, which is not a good tradeoff.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index eac6a33cf22..2a01b677e33 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -30,7 +30,6 @@ use rustc_resolve::{Resolver, ResolverArenas}; use rustc_serialize::json; use rustc_session::config::{CrateType, Input, OutputFilenames, OutputType}; use rustc_session::cstore::{MetadataLoader, MetadataLoaderDyn}; -use rustc_session::lint; use rustc_session::output::{filename_for_input, filename_for_metadata}; use rustc_session::search_paths::PathKind; use rustc_session::{Limit, Session}; @@ -349,23 +348,8 @@ pub fn configure_and_expand( ecx.check_unused_macros(); }); - let mut missing_fragment_specifiers: Vec<_> = ecx - .sess - .parse_sess - .missing_fragment_specifiers - .borrow() - .iter() - .map(|(span, node_id)| (*span, *node_id)) - .collect(); - missing_fragment_specifiers.sort_unstable_by_key(|(span, _)| *span); - let recursion_limit_hit = ecx.reduced_recursion_limit.is_some(); - for (span, node_id) in missing_fragment_specifiers { - let lint = lint::builtin::MISSING_FRAGMENT_SPECIFIER; - let msg = "missing fragment specifier"; - resolver.lint_buffer().buffer_lint(lint, node_id, span, msg); - } if cfg!(windows) { env::set_var("PATH", &old_path); } |
