[−][src]Struct rustc_middle::lint::LintLevelMap

pub struct LintLevelMap {
    pub sets: LintLevelSets,
    pub id_to_set: FxHashMap<HirId, u32>,
}

Fields

sets: LintLevelSetsid_to_set: FxHashMap<HirId, u32>

Implementations

impl LintLevelMap[src]

pub fn level_and_source(
    &self,
    lint: &'static Lint,
    id: HirId,
    session: &Session
) -> Option<LevelSource>
[src]

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

impl<'a> HashStable<StableHashingContext<'a>> for LintLevelMap[src]

Auto Trait Implementations

impl RefUnwindSafe for LintLevelMap[src]

impl !Send for LintLevelMap[src]

impl !Sync for LintLevelMap[src]

impl Unpin for LintLevelMap[src]

impl UnwindSafe for LintLevelMap[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]