Struct rustc::lint::LintStoreUnstable [-] [+] [src]

pub struct LintStore {
    // some fields omitted
}

Information about the registered lints.

This is basically the subset of Context that we can build early in the compile pipeline.

Methods

impl LintStore

fn new() -> LintStore

fn get_lints<'t>(&'t self) -> &'t [(&'static Lint, bool)]

fn get_lint_groups<'t>(&'t self) -> Vec<(&'static str, Vec<LintId>, bool)>

fn register_pass(&mut self, sess: Option<&Session>, from_plugin: bool, pass: LintPassObject)

fn register_group(&mut self, sess: Option<&Session>, from_plugin: bool, name: &'static str, to: Vec<LintId>)

fn register_builtin(&mut self, sess: Option<&Session>)

fn process_command_line(&mut self, sess: &Session)