Struct rustc_mir_transform::dest_prop::Replacements
source · Fields
map: IndexVec<Local, Option<Place<'tcx>>>
Maps locals to their replacement.
kill: BitSet<Local>
Whose locals’ live ranges to kill.
Implementations
sourceimpl<'tcx> Replacements<'tcx>
impl<'tcx> Replacements<'tcx>
fn new(locals: usize) -> Self
fn push(&mut self, candidate: CandidateAssignment<'tcx>)
sourcefn flatten(&mut self, tcx: TyCtxt<'tcx>)
fn flatten(&mut self, tcx: TyCtxt<'tcx>)
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>>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes