1
Fork 0

Stop emitting lints during lowering.

This commit is contained in:
Camille GILLOT 2021-07-31 22:50:43 +02:00
parent c10a1cebe7
commit 4b598d3f75
3 changed files with 15 additions and 24 deletions

View file

@ -57,7 +57,6 @@ use rustc_hir::intravisit;
use rustc_hir::{ConstArg, GenericArg, ItemLocalId, ParamName, TraitCandidate};
use rustc_index::vec::{Idx, IndexVec};
use rustc_query_system::ich::StableHashingContext;
use rustc_session::lint::LintBuffer;
use rustc_session::parse::feature_err;
use rustc_session::utils::{FlattenNonterminals, NtToTokenstream};
use rustc_session::Session;
@ -180,8 +179,6 @@ pub trait ResolverAstLowering {
fn definitions(&self) -> &Definitions;
fn lint_buffer(&mut self) -> &mut LintBuffer;
fn next_node_id(&mut self) -> NodeId;
fn take_trait_map(&mut self, node: NodeId) -> Option<Vec<hir::TraitCandidate>>;