rustc_lint::levels

Trait LintLevelsProvider

Source
pub trait LintLevelsProvider {
    // Required methods
    fn current_specs(&self) -> &FxIndexMap<LintId, LevelAndSource>;
    fn insert(&mut self, id: LintId, lvl: 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) -> &FxIndexMap<LintId, LevelAndSource>

Source

fn insert(&mut self, id: LintId, lvl: LevelAndSource)

Source

fn get_lint_level(&self, lint: &'static Lint, sess: &Session) -> LevelAndSource

Source

fn push_expectation( &mut self, id: LintExpectationId, expectation: LintExpectation, )

Implementors§