[−][src]Enum rustc_mir::transform::promote_consts::Candidate
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)Borrow of a constant temporary, candidate for lifetime extension.
Repeat(Location)Promotion of the x in [x; 32].
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: BasicBlockindex: usizeconst operand in asm!.
Fields of InlineAsm
bb: BasicBlockindex: usizeImplementations
impl Candidate[src]
pub(in transform::promote_consts) fn forces_explicit_promotion(
&self
) -> bool[src]
&self
) -> bool
Returns true if we should use the "explicit" rules for promotability for this Candidate.
pub(in transform::promote_consts) fn source_info(
&self,
body: &Body<'_>
) -> SourceInfo[src]
&self,
body: &Body<'_>
) -> SourceInfo
Trait Implementations
impl Clone for Candidate[src]
impl Copy for Candidate[src]
impl Debug for Candidate[src]
impl Eq for Candidate[src]
impl PartialEq<Candidate> for Candidate[src]
impl StructuralEq for Candidate[src]
impl StructuralPartialEq for Candidate[src]
Auto Trait Implementations
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnwindSafe for Candidate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.