Struct rustc::lint::levels::LintLevelMap [−][src]
pub struct LintLevelMap { sets: LintLevelSets, id_to_set: FxHashMap<HirId, u32>, }
🔬 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?
Fields
sets: LintLevelSets
🔬 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?
id_to_set: FxHashMap<HirId, u32>
🔬 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?
Methods
impl LintLevelMap
[src]
impl LintLevelMap
pub fn level_and_source(
&self,
lint: &'static Lint,
id: HirId,
session: &Session
) -> Option<(Level, LintSource)>
[src]
pub fn level_and_source(
&self,
lint: &'static Lint,
id: HirId,
session: &Session
) -> Option<(Level, LintSource)>
🔬 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?
If the id
was previously registered with register_id
when building
this LintLevelMap
this returns the corresponding lint level and source
of the lint level for the lint provided.
If the id
was not previously registered, returns None
. If None
is
returned then the parent of id
should be acquired and this function
should be called again.
pub fn lint_level_set(&self, id: HirId) -> Option<u32>
[src]
pub fn lint_level_set(&self, id: HirId) -> Option<u32>
🔬 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?
Returns if this id
has lint level information.
Trait Implementations
impl<'a> HashStable<StableHashingContext<'a>> for LintLevelMap
[src]
impl<'a> HashStable<StableHashingContext<'a>> for LintLevelMap
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
🔬 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?
Auto Trait Implementations
impl !Send for LintLevelMap
impl !Send for LintLevelMap
impl !Sync for LintLevelMap
impl !Sync for LintLevelMap