Enum rustc::lint::LintSource [] [src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

How a lint level was set.

Variants

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Lint level was set by an attribute.

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Lint level was set by a command-line flag.

Trait Implementations

impl Clone for LintSource
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LintSource
[src]

impl PartialEq 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 Eq for LintSource
[src]

impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LintSource
[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Auto Trait Implementations

impl !Send for LintSource

impl !Sync for LintSource