Struct rustc_lint::levels::LintLevelSets
source · struct LintLevelSets {
list: IndexVec<LintStackIndex, LintSet>,
}
Expand description
Collection of lint levels for the whole crate. This is used by AST-based lints, which do not wait until we have built HIR to be emitted.
Fields§
§list: IndexVec<LintStackIndex, LintSet>
Linked list of specifications.
Implementations§
source§impl LintLevelSets
impl LintLevelSets
fn new() -> Self
fn get_lint_level(
&self,
lint: &'static Lint,
idx: LintStackIndex,
aux: Option<&FxHashMap<LintId, LevelAndSource>>,
sess: &Session
) -> LevelAndSource
fn raw_lint_id_level(
&self,
id: LintId,
idx: LintStackIndex,
aux: Option<&FxHashMap<LintId, LevelAndSource>>
) -> (Option<Level>, LintLevelSource)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LintLevelSets
impl !Send for LintLevelSets
impl !Sync for LintLevelSets
impl Unpin for LintLevelSets
impl UnwindSafe for LintLevelSets
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. 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: 24 bytes