[−][src]Module rustc_mir::transform::check_consts::ops

Concrete error types for all operations which may be invalid in a certain const context.

Structs

CellBorrow
FnCallIndirect

A function call where the callee is a pointer.

FnCallNonConst

A function call where the callee is not marked as const.

FnCallUnstable

A call to a #[unstable] const fn or #[rustc_const_unstable] function.

HeapAllocation
InlineAsm
LiveDrop
MutAddressOf
MutBorrow
MutDeref
Panic
RawPtrComparison
RawPtrDeref
RawPtrToIntCast
StaticAccess

An access to a (non-thread-local) static.

ThreadLocalAccess

An access to a thread-local static.

UnionAccess

Traits

NonConstOp

An operation that is not always allowed in a const context.

Functions

non_const

Emits an error if op is not allowed in the given const context.