Enum rustc::lint::LintSource
[−]
[src]
pub enum LintSource {
Default,
Node(Span),
CommandLine,
}Unstable (
rustc_private)How a lint level was set.
Variants
DefaultUnstable (
rustc_private)Lint is at the default level as declared in rustc or a plugin.
Node(Span)Unstable (
rustc_private)Lint level was set by an attribute.
CommandLineUnstable (
rustc_private)Lint level was set by a command-line flag.
Trait Implementations
Derived Implementations
impl Eq for LintSource[src]
impl PartialEq 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 Copy for LintSource[src]
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