Enum rune::WarningKind[][src]

pub enum WarningKind {
    NotUsed {
        span: Span,
        context: Option<Span>,
    },
    LetPatternMightPanic {
        span: Span,
        context: Option<Span>,
    },
    TemplateWithoutExpansions {
        span: Span,
        context: Option<Span>,
    },
    RemoveTupleCallParams {
        span: Span,
        variant: Span,
        context: Option<Span>,
    },
    UnecessarySemiColon {
        span: Span,
    },
}

Compilation warning kind.

Variants

NotUsed

Item identified by the span is not used.

Fields of NotUsed

span: Span

The span that is not used.

context: Option<Span>

The context in which the value was not used.

LetPatternMightPanic

Warning that an unconditional let pattern will panic if it doesn’t match.

Fields of LetPatternMightPanic

span: Span

The span of the pattern.

context: Option<Span>

The context in which it is used.

TemplateWithoutExpansions

Encountered a template string without an expansion.

Fields of TemplateWithoutExpansions

span: Span

Span that caused the error.

context: Option<Span>

The context in which it is used.

RemoveTupleCallParams

Suggestion that call parameters could be removed.

Fields of RemoveTupleCallParams

span: Span

The span of the call.

variant: Span

The span of the variant being built.

context: Option<Span>

The context in which it is used.

UnecessarySemiColon

An unecessary semi-colon is used.

Fields of UnecessarySemiColon

span: Span

Span where the semi-colon is.

Trait Implementations

impl Clone for WarningKind[src]

impl Copy for WarningKind[src]

impl Debug for WarningKind[src]

impl Display for WarningKind[src]

impl Error for WarningKind[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.