Struct rustc_mir::transform::promote_consts::PromoteTemps [−][src]
Expand description
A MirPass for promotion.
Promotion is the extraction of promotable temps into separate MIR bodies. This pass also emits
errors when promotion of #[rustc_args_required_const] arguments fails.
After this pass is run, promoted_fragments will hold the MIR body corresponding to each
newly created Constant.
Fields
promoted_fragments: Cell<IndexVec<Promoted, Body<'tcx>>>Trait Implementations
impl<'tcx> Default for PromoteTemps<'tcx>[src]
impl<'tcx> Default for PromoteTemps<'tcx>[src]fn default() -> PromoteTemps<'tcx>[src]
fn default() -> PromoteTemps<'tcx>[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for PromoteTemps<'tcx>
impl<'tcx> !Send for PromoteTemps<'tcx>
impl<'tcx> !Sync for PromoteTemps<'tcx>
impl<'tcx> Unpin for PromoteTemps<'tcx>
impl<'tcx> !UnwindSafe for PromoteTemps<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]