Skip to main content

DynLintStore

Trait DynLintStore 

Source
pub trait DynLintStore:
    Any
    + DynSync
    + DynSend {
    // Required methods
    fn lint_groups_iter(&self) -> Box<dyn Iterator<Item = LintGroup> + '_>;
    fn check_lint_name(
        &self,
        lint_name: &str,
        tool_name: Option<Symbol>,
        registered_tools: &RegisteredTools,
    ) -> CheckLintNameResult<'_>;
    fn find_lints(&self, lint_name: &str) -> Option<&[LintId]>;
}

Required Methods§

Source

fn lint_groups_iter(&self) -> Box<dyn Iterator<Item = LintGroup> + '_>

Provides a way to access lint groups without depending on rustc_lint

Source

fn check_lint_name( &self, lint_name: &str, tool_name: Option<Symbol>, registered_tools: &RegisteredTools, ) -> CheckLintNameResult<'_>

Source

fn find_lints(&self, lint_name: &str) -> Option<&[LintId]>

Implementors§