[−][src]Struct rustc_mir::transform::dest_prop::Replacements
Fields
map: IndexVec<Local, Option<Place<'tcx>>>Maps locals to their replacement.
kill: BitSet<Local>Whose locals' live ranges to kill.
Implementations
impl<'tcx> Replacements<'tcx>[src]
pub(in transform::dest_prop) fn new(
locals: usize
) -> Self[src]
locals: usize
) -> Self
pub(in transform::dest_prop) fn push(
&mut self,
candidate: CandidateAssignment<'tcx>
)[src]
&mut self,
candidate: CandidateAssignment<'tcx>
)
pub(in transform::dest_prop) fn flatten(
&mut self,
tcx: TyCtxt<'tcx>
)[src]
&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.
pub(in transform::dest_prop) fn for_src(
&self,
src: Local
) -> Option<Place<'tcx>>[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
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, 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.