Trait rustc_lint::levels::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;

    // Provided method
    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

Provided Methods§

source

fn push_expectation( &mut self, _id: LintExpectationId, _expectation: LintExpectation, )

Implementors§