Struct rustc_middle::lint::LintLevelMap [−][src]
pub struct LintLevelMap {
pub sets: LintLevelSets,
pub id_to_set: FxHashMap<HirId, u32>,
}Fields
sets: LintLevelSetsid_to_set: FxHashMap<HirId, u32>Implementations
pub fn level_and_source(
&self,
lint: &'static Lint,
id: HirId,
session: &Session
) -> Option<LevelAndSource>
pub fn level_and_source(
&self,
lint: &'static Lint,
id: HirId,
session: &Session
) -> Option<LevelAndSource>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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LintLevelMapimpl !Send for LintLevelMapimpl !Sync for LintLevelMapimpl Unpin for LintLevelMapimpl UnwindSafe for LintLevelMapBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes