Trait rustc_lint::levels::LintLevelsProvider
source · pub trait LintLevelsProvider {
fn current_specs(&self) -> &FxHashMap<LintId, LevelAndSource>;
fn current_specs_mut(&mut self) -> &mut FxHashMap<LintId, LevelAndSource>;
fn get_lint_level(
&self,
lint: &'static Lint,
sess: &Session
) -> LevelAndSource;
fn push_expectation(
&mut self,
_id: LintExpectationId,
_expectation: LintExpectation
) { ... }
}
Required Methods
source
fn current_specs(&self) -> &FxHashMap<LintId, LevelAndSource>
source
fn current_specs_mut(&mut self) -> &mut FxHashMap<LintId, LevelAndSource>
source
fn get_lint_level(&self, lint: &'static Lint, sess: &Session) -> LevelAndSource
Provided Methods
sourcefn push_expectation(