Enum rustc_typeck::lint::LintSource
[−]
[src]
pub enum LintSource { Default, Node(Symbol, Span), CommandLine(Symbol), }
🔬 This is a nightly-only experimental API. (
rustc_private
)How a lint level was set.
Variants
Default
🔬 This is a nightly-only experimental API. (
rustc_private
)Lint is at the default level as declared in rustc or a plugin.
Node(Symbol, Span)
🔬 This is a nightly-only experimental API. (
rustc_private
)Lint level was set by an attribute.
CommandLine(Symbol)
🔬 This is a nightly-only experimental API. (
rustc_private
)Lint level was set by a command-line flag.
Trait Implementations
impl PartialEq<LintSource> for LintSource
[src]
fn eq(&self, __arg_0: &LintSource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LintSource) -> bool
This method tests for !=
.
impl Clone for LintSource
[src]
fn clone(&self) -> LintSource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more