Struct rustc::lint::LintStore [] [src]

pub struct LintStore {
    // some fields omitted
}
Unstable (rustc_private)

Information about the registered lints.

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

Methods

impl LintStore
[src]

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_early_pass(&mut self, sess: Option<&Session>, from_plugin: bool, pass: EarlyLintPassObject)

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

fn register_future_incompatible(&mut self, sess: Option<&Session>, lints: Vec<FutureIncompatibleInfo>)

fn future_incompatible(&self, id: LintId) -> Option<&FutureIncompatibleInfo>

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 register_removed(&mut self, name: &str, reason: &str)

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