Struct rustc::lint::LintStore
[−]
[src]
pub struct LintStore { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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]
pub fn new() -> LintStore
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_lints<'t>(&'t self) -> &'t [(&'static Lint, bool)]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_lint_groups<'t>(&'t self) -> Vec<(&'static str, Vec<LintId>, bool)>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_early_pass(
&mut self,
sess: Option<&Session>,
from_plugin: bool,
pass: EarlyLintPassObject
)
[src]
&mut self,
sess: Option<&Session>,
from_plugin: bool,
pass: EarlyLintPassObject
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_late_pass(
&mut self,
sess: Option<&Session>,
from_plugin: bool,
pass: LateLintPassObject
)
[src]
&mut self,
sess: Option<&Session>,
from_plugin: bool,
pass: LateLintPassObject
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_future_incompatible(
&mut self,
sess: Option<&Session>,
lints: Vec<FutureIncompatibleInfo>
)
[src]
&mut self,
sess: Option<&Session>,
lints: Vec<FutureIncompatibleInfo>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn future_incompatible(&self, id: LintId) -> Option<&FutureIncompatibleInfo>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_group(
&mut self,
sess: Option<&Session>,
from_plugin: bool,
name: &'static str,
to: Vec<LintId>
)
[src]
&mut self,
sess: Option<&Session>,
from_plugin: bool,
name: &'static str,
to: Vec<LintId>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_renamed(&mut self, old_name: &str, new_name: &str)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn register_removed(&mut self, name: &str, reason: &str)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn find_lints(&self, lint_name: &str) -> Result<Vec<LintId>, FindLintError>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn check_lint_name_cmdline(
&self,
sess: &Session,
lint_name: &str,
level: Level
)
[src]
&self,
sess: &Session,
lint_name: &str,
level: Level
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Checks the validity of lint names derived from the command line
pub fn check_lint_name(&self, lint_name: &str) -> CheckLintNameResult
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Checks the name of a lint for its existence, and whether it was renamed or removed. Generates a DiagnosticBuilder containing a warning for renamed and removed lints. This is over both lint names from attributes and those passed on the command line. Since it emits non-fatal warnings and there are two lint passes that inspect attributes, this is only run from the late pass to avoid printing duplicate warnings.