Enum rune::diagnostics::WarningDiagnosticKind
source · #[non_exhaustive]pub enum WarningDiagnosticKind {
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>,
},
UnnecessarySemiColon {
span: Span,
},
}
Expand description
The kind of a WarningDiagnostic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotUsed
Fields
Item identified by the span is not used.
LetPatternMightPanic
Warning that an unconditional let pattern will panic if it doesn’t match.
TemplateWithoutExpansions
Encountered a template string without an expansion.
RemoveTupleCallParams
Fields
Suggestion that call parameters could be removed.
UnnecessarySemiColon
An unecessary semi-colon is used.
Trait Implementations§
source§impl Clone for WarningDiagnosticKind
impl Clone for WarningDiagnosticKind
source§fn clone(&self) -> WarningDiagnosticKind
fn clone(&self) -> WarningDiagnosticKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WarningDiagnosticKind
impl Debug for WarningDiagnosticKind
source§impl Display for WarningDiagnosticKind
impl Display for WarningDiagnosticKind
impl Copy for WarningDiagnosticKind
Auto Trait Implementations§
impl RefUnwindSafe for WarningDiagnosticKind
impl Send for WarningDiagnosticKind
impl Sync for WarningDiagnosticKind
impl Unpin for WarningDiagnosticKind
impl UnwindSafe for WarningDiagnosticKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more