Enum rustc::lint::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?
How a lint level was set.
Variants
Default
🔬 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.
Node(Name, Span)
🔬 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.
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?
Lint level was set by a command-line flag.
Trait Implementations
impl Clone for LintSource
[src]
impl Clone for LintSource
fn clone(&self) -> LintSource
[src]
fn clone(&self) -> LintSource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for LintSource
[src]
impl Copy for LintSource
impl PartialEq for LintSource
[src]
impl PartialEq for LintSource
fn eq(&self, __arg_0: &LintSource) -> bool
[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
[src]
fn ne(&self, __arg_0: &LintSource) -> bool
This method tests for !=
.
impl Eq for LintSource
[src]
impl Eq for LintSource
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LintSource
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LintSource
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 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 !Send for LintSource
impl !Sync for LintSource
impl !Sync for LintSource