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)

State of a temporary during collection and promotion.

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

No references to this temp.

🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

Any other combination of assignments/uses.

🔬 This is a nightly-only experimental API. (rustc_private)

This temp was part of an rvalue which got extracted during promotion and needs cleanup.

Methods

impl TempState
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

impl Copy for TempState
[src]

impl Clone for TempState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TempState
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TempState
[src]

impl Debug for TempState
[src]

Formats the value using the given formatter.