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

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>)
Expand description

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

Warning(String, Option<String>)
Expand description

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)>)
Expand description

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.