Enum rustc_mir_transform::errors::AssertLint
source · pub(crate) enum AssertLint<P> {
ArithmeticOverflow(Span, AssertKind<P>),
UnconditionalPanic(Span, AssertKind<P>),
}
Variants§
ArithmeticOverflow(Span, AssertKind<P>)
UnconditionalPanic(Span, AssertKind<P>)
Implementations§
Trait Implementations§
source§impl<'a, P: Debug> DecorateLint<'a, ()> for AssertLint<P>
impl<'a, P: Debug> DecorateLint<'a, ()> for AssertLint<P>
source§fn decorate_lint<'b>(
self,
diag: &'b mut DiagnosticBuilder<'a, ()>
) -> &'b mut DiagnosticBuilder<'a, ()>
fn decorate_lint<'b>( self, diag: &'b mut DiagnosticBuilder<'a, ()> ) -> &'b mut DiagnosticBuilder<'a, ()>
Decorate and emit a lint.
fn msg(&self) -> DiagnosticMessage
Auto Trait Implementations§
impl<P> RefUnwindSafe for AssertLint<P>where P: RefUnwindSafe,
impl<P> !Send for AssertLint<P>
impl<P> !Sync for AssertLint<P>
impl<P> Unpin for AssertLint<P>where P: Unpin,
impl<P> UnwindSafe for AssertLint<P>where P: UnwindSafe,
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.