Enum rustc::lint::LintSourceUnstable [-] [+] [src]

pub enum LintSource {
    Default,
    Node(Span),
    CommandLine,
    ReleaseChannel,
}

How a lint level was set.

Variants

Default

Lint is at the default level as declared in rustc or a plugin.

Node

Lint level was set by an attribute.

CommandLine

Lint level was set by a command-line flag.

ReleaseChannel

Lint level was set by the release channel.

Trait Implementations

Derived Implementations

impl Eq for LintSource

fn assert_receiver_is_total_eq(&self)

impl PartialEq for LintSource

fn eq(&self, __arg_0: &LintSource) -> bool

fn ne(&self, __arg_0: &LintSource) -> bool

impl Copy for LintSource

impl Clone for LintSource

fn clone(&self) -> LintSource

fn clone_from(&mut self, source: &Self)