Module rustc_mir::transform::check_consts::ops [−][src]
Expand description
Concrete error types for all operations which may be invalid in a certain const context.
Modules
Structs
A borrow of a type that contains an UnsafeCell somewhere. The borrow might escape to
the final value of the constant, and thus we cannot allow this (for now). We may allow
it in the future for static items.
A function call where the callee is a pointer.
A function call where the callee is not marked as const.
A call to a #[unstable] const fn or #[rustc_const_unstable] function.
This op is for &mut borrows in the trailing expression of a constant
which uses the “enclosing scopes rule” to leak its locals into anonymous
static or const items.
A call to a panic() lang item where the first argument is not a &str.
An access to a (non-thread-local) static.
An access to a thread-local static.
A borrow of a type that contains an UnsafeCell somewhere. The borrow never escapes to
the final value of the constant.
Enums
Traits
An operation that is not always allowed in a const context.