Enum rustc_trans::lint::LintSource [] [src]

pub enum LintSource {
    Default,
    Node(SymbolSpan),
    CommandLine(Symbol),
}
🔬 This is a nightly-only experimental API. (rustc_private)

How a lint level was set.

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)

Lint level was set by an attribute.

🔬 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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for LintSource
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for LintSource
[src]

impl Copy for LintSource
[src]