Struct rustc_typeck::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 self) -> &'t [(&'static Lint, bool)]

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

fn register_pass(&mut self, sess: Option<&Session>, from_plugin: bool, pass: Box<LintPass + 'static>)

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

fn register_renamed(&mut self, old_name: &str, new_name: &str)

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