Enum rustc_mir::transform::promote_consts::Candidate[][src]

pub enum Candidate {
    Ref(Location),
    Argument {
        bb: BasicBlock,
        index: usize,
    },
}
🔬 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?

A "root candidate" for promotion, which will become the returned value in a promoted MIR, unless it's a subset of a larger candidate.

Variants

🔬 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?

Borrow of a constant temporary.

🔬 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?

Currently applied to function calls where the callee has the unstable #[rustc_args_required_const] attribute as well as the SIMD shuffle intrinsic. The intrinsic requires the arguments are indeed constant and the attribute currently provides the semantic requirement that arguments must be constant.

Fields of Argument

🔬 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 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 Debug for Candidate
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Candidate

impl Sync for Candidate