Struct rustc_mir::transform::dest_prop::Replacements [−][src]
Fields
map: IndexVec<Local, Option<Place<'tcx>>>Expand description
Maps locals to their replacement.
kill: BitSet<Local>Expand description
Whose locals’ live ranges to kill.
Implementations
impl<'tcx> Replacements<'tcx>[src]
impl<'tcx> Replacements<'tcx>[src]fn new(locals: usize) -> Self[src]
fn push(&mut self, candidate: CandidateAssignment<'tcx>)[src]
fn flatten(&mut self, tcx: TyCtxt<'tcx>)[src]
fn flatten(&mut self, tcx: TyCtxt<'tcx>)[src]Applies the stored replacements to all replacements, until no replacements would result in locals that need further replacements when applied.
fn for_src(&self, src: Local) -> Option<Place<'tcx>>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Replacements<'tcx>
impl<'tcx> !Send for Replacements<'tcx>
impl<'tcx> !Sync for Replacements<'tcx>
impl<'tcx> Unpin for Replacements<'tcx>
impl<'tcx> !UnwindSafe for Replacements<'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]