[−][src]Enum rustc_lint::context::CheckLintNameResult

pub enum CheckLintNameResult<'a> {
    Ok(&'a [LintId]),
    NoLint(Option<Symbol>),
    Warning(String, Option<String>),
    Tool(Result<&'a [LintId], (Option<&'a [LintId]>, String)>),
}

Variants

Ok(&'a [LintId])
NoLint(Option<Symbol>)

Lint doesn't exist. Potentially contains a suggestion for a correct lint name.

Warning(String, Option<String>)

The lint is either renamed or removed. This is the warning message, and an optional new name (None if removed).

Tool(Result<&'a [LintId], (Option<&'a [LintId]>, String)>)

The lint is from a tool. If the Option is None, then either the lint does not exist in the tool or the code was not compiled with the tool and therefore the lint was never added to the LintStore. Otherwise the LintId will be returned as if it where a rustc lint.

Auto Trait Implementations

impl<'a> RefUnwindSafe for CheckLintNameResult<'a>

impl<'a> Send for CheckLintNameResult<'a>

impl<'a> Sync for CheckLintNameResult<'a>

impl<'a> Unpin for CheckLintNameResult<'a>

impl<'a> UnwindSafe for CheckLintNameResult<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.