Enum rustc_const_eval::transform::promote_consts::TempState [−][src]
pub enum TempState {
Undefined,
Defined {
location: Location,
uses: usize,
},
Unpromotable,
PromotedOut,
}
Expand description
State of a temporary during collection and promotion.
Variants
No references to this temp.
One direct assignment and any number of direct uses. A borrow of this temp is promotable if the assigned value is qualified as constant.
Any other combination of assignments/uses.
This temp was part of an rvalue which got extracted during promotion and needs cleanup.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TempState
impl UnwindSafe for TempState
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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: 24 bytes
Size for each variant:
Undefined
: 0 bytesDefined
: 24 bytesUnpromotable
: 0 bytesPromotedOut
: 0 bytes