Enum rustc_middle::mir::AssertKind [−][src]
pub enum AssertKind<O> {
BoundsCheck {
len: O,
index: O,
},
Overflow(BinOp, O, O),
OverflowNeg(O),
DivisionByZero(O),
RemainderByZero(O),
ResumedAfterReturn(GeneratorKind),
ResumedAfterPanic(GeneratorKind),
}Expand description
Information about an assertion failure.
Variants
Overflow(BinOp, O, O)Tuple Fields of Overflow
ResumedAfterReturn(GeneratorKind)Tuple Fields of ResumedAfterReturn
ResumedAfterPanic(GeneratorKind)Tuple Fields of ResumedAfterPanic
Implementations
Getting a description does not require O to be printable, and does not
require allocation.
The caller is expected to handle BoundsCheck separately.
Trait Implementations
impl<'__ctx, O> HashStable<StableHashingContext<'__ctx>> for AssertKind<O> where
O: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, O> HashStable<StableHashingContext<'__ctx>> for AssertKind<O> where
O: HashStable<StableHashingContext<'__ctx>>,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<O> RefUnwindSafe for AssertKind<O> where
O: RefUnwindSafe,
impl<O> Send for AssertKind<O> where
O: Send,
impl<O> Sync for AssertKind<O> where
O: Sync,
impl<O> Unpin for AssertKind<O> where
O: Unpin,
impl<O> UnwindSafe for AssertKind<O> where
O: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
This method turns the parameters of a DepNodeConstructor into an opaque Fingerprint to be used in DepNode. Not all DepNodeParams support being turned into a Fingerprint (they don’t need to if the corresponding DepNode is anonymous). Read more
This method tries to recover the query key from the given DepNode,
something which is needed when forcing DepNodes during red-green
evaluation. The query system will only call this method if
fingerprint_style() is not FingerprintStyle::Opaque.
It is always valid to return None here, in which case incremental
compilation will treat the query as having changed instead of forcing it. 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.