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
Ref(Location)
🔬 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.
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?
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
bb: BasicBlock | 🔬 This is a nightly-only experimental API. ( |
index: usize | 🔬 This is a nightly-only experimental API. ( |