Enum rustc_mir::const_eval::error::ConstEvalErrKind [−][src]
pub enum ConstEvalErrKind {
NeedsRfc(String),
PtrToIntCast,
ConstAccessesStatic,
ModifiedGlobal,
AssertFailure(AssertKind<ConstInt>),
Panic {
msg: Symbol,
line: u32,
col: u32,
file: Symbol,
},
Abort(String),
}Expand description
The CTFE machine has some custom error kinds.
Variants
NeedsRfc(String)AssertFailure(AssertKind<ConstInt>)Abort(String)Trait Implementations
Performs the conversion.
If true, emit a hard error instead of going through the CONST_ERR lint
Auto Trait Implementations
impl RefUnwindSafe for ConstEvalErrKindimpl Send for ConstEvalErrKindimpl Sync for ConstEvalErrKindimpl Unpin for ConstEvalErrKindimpl UnwindSafe for ConstEvalErrKindBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes