Enum rustc_middle::lint::LintLevelSource [−][src]
pub enum LintLevelSource {
Default,
Node(Symbol, Span, Option<Symbol>),
CommandLine(Symbol, Level),
}Expand description
How a lint level was set.
Variants
Lint is at the default level as declared in rustc or a plugin.
Lint level was set by an attribute.
Lint level was set by a command-line flag.
The provided Level is the level specified on the command line.
(The actual level may be lower due to --cap-lints.)
Implementations
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for LintLevelSourceimpl !Send for LintLevelSourceimpl !Sync for LintLevelSourceimpl Unpin for LintLevelSourceimpl UnwindSafe for LintLevelSourceBlanket Implementations
Mutably borrows from an owned value. Read more
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: 20 bytes