Enum rustc_mir::transform::promote_consts::TempState
[−]
[src]
pub enum TempState {
Undefined,
Defined {
location: Location,
uses: usize,
},
Unpromotable,
PromotedOut,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
State of a temporary during collection and promotion.
Variants
Undefined🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
No references to this temp.
Defined🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
One direct assignment and any number of direct uses. A borrow of this temp is promotable if the assigned value is qualified as constant.
Fields of Defined
location: Location | 🔬 This is a nightly-only experimental API. ( |
uses: usize | 🔬 This is a nightly-only experimental API. ( |
Unpromotable🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Any other combination of assignments/uses.
PromotedOut🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
This temp was part of an rvalue which got extracted during promotion and needs cleanup.
Methods
impl TempState[src]
impl TempStatepub fn is_promotable(&self) -> bool[src]
pub fn is_promotable(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Copy for TempState[src]
impl Copy for TempStateimpl Clone for TempState[src]
impl Clone for TempStatefn clone(&self) -> TempState[src]
fn clone(&self) -> TempStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for TempState[src]
impl PartialEq for TempStatefn eq(&self, __arg_0: &TempState) -> bool[src]
fn eq(&self, __arg_0: &TempState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TempState) -> bool[src]
fn ne(&self, __arg_0: &TempState) -> boolThis method tests for !=.
impl Eq for TempState[src]
impl Eq for TempStateimpl Debug for TempState[src]
impl Debug for TempState