Enum rustc_lint::middle::const_eval::ErrKind [−] [src]

pub enum ErrKind {
    CannotCast,
    CannotCastTo(&'static str),
    InvalidOpForBools(BinOp_),
    InvalidOpForFloats(BinOp_),
    InvalidOpForIntUint(BinOp_),
    InvalidOpForUintInt(BinOp_),
    NegateOnString,
    NegateOnBoolean,
    NegateOnBinary,
    NegateOnStruct,
    NegateOnTuple,
    NotOnFloat,
    NotOnString,
    NotOnBinary,
    NotOnStruct,
    NotOnTuple,
    NegateWithOverflow(i64),
    AddiWithOverflow(i64, i64),
    SubiWithOverflow(i64, i64),
    MuliWithOverflow(i64, i64),
    AdduWithOverflow(u64, u64),
    SubuWithOverflow(u64, u64),
    MuluWithOverflow(u64, u64),
    DivideByZero,
    DivideWithOverflow,
    ModuloByZero,
    ModuloWithOverflow,
    ShiftLeftWithOverflow,
    ShiftRightWithOverflow,
    MissingStructField,
    NonConstPath,
    ExpectedConstTuple,
    ExpectedConstStruct,
    TupleIndexOutOfBounds,
    MiscBinaryOp,
    MiscCatchAll,
}
Unstable

Variants

CannotCast
Unstable
CannotCastTo
Unstable
InvalidOpForBools
Unstable
InvalidOpForFloats
Unstable
InvalidOpForIntUint
Unstable
InvalidOpForUintInt
Unstable
NegateOnString
Unstable
NegateOnBoolean
Unstable
NegateOnBinary
Unstable
NegateOnStruct
Unstable
NegateOnTuple
Unstable
NotOnFloat
Unstable
NotOnString
Unstable
NotOnBinary
Unstable
NotOnStruct
Unstable
NotOnTuple
Unstable
NegateWithOverflow
Unstable
AddiWithOverflow
Unstable
SubiWithOverflow
Unstable
MuliWithOverflow
Unstable
AdduWithOverflow
Unstable
SubuWithOverflow
Unstable
MuluWithOverflow
Unstable
DivideByZero
Unstable
DivideWithOverflow
Unstable
ModuloByZero
Unstable
ModuloWithOverflow
Unstable
ShiftLeftWithOverflow
Unstable
ShiftRightWithOverflow
Unstable
MissingStructField
Unstable
NonConstPath
Unstable
ExpectedConstTuple
Unstable
ExpectedConstStruct
Unstable
TupleIndexOutOfBounds
Unstable
MiscBinaryOp
Unstable
MiscCatchAll
Unstable

Trait Implementations

Derived Implementations

impl Clone for ErrKind

fn clone(&self) -> ErrKind

fn clone_from(&mut self, source: &Self)