[−][src]Struct rustc_mir::transform::dest_prop::Replacements

pub(in transform::dest_prop) struct Replacements<'tcx> {
    map: IndexVec<Local, Option<Place<'tcx>>>,
    kill: BitSet<Local>,
}

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]

pub(in transform::dest_prop) fn push(
    &mut self,
    candidate: CandidateAssignment<'tcx>
)
[src]

pub(in transform::dest_prop) 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.

pub(in transform::dest_prop) 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> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]