[][src]Struct rustc_mir::borrow_check::used_muts::GatherUsedMutsVisitor

struct GatherUsedMutsVisitor<'visit, 'cx, 'tcx> {
    temporary_used_locals: FxHashSet<Local>,
    never_initialized_mut_locals: &'visit mut FxHashSet<Local>,
    mbcx: &'visit mut MirBorrowckCtxt<'cx, 'tcx>,
}

MIR visitor for collecting used mutable variables. The 'visit lifetime represents the duration of the MIR walk.

Fields

temporary_used_locals: FxHashSet<Local>never_initialized_mut_locals: &'visit mut FxHashSet<Local>mbcx: &'visit mut MirBorrowckCtxt<'cx, 'tcx>

Implementations

impl<'_, '_, '_> GatherUsedMutsVisitor<'_, '_, '_>[src]

fn remove_never_initialized_mut_locals(&mut self, into: Place<'_>)[src]

Trait Implementations

impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tcx>[src]

Auto Trait Implementations

impl<'visit, 'cx, 'tcx> !RefUnwindSafe for GatherUsedMutsVisitor<'visit, 'cx, 'tcx>

impl<'visit, 'cx, 'tcx> !Send for GatherUsedMutsVisitor<'visit, 'cx, 'tcx>

impl<'visit, 'cx, 'tcx> !Sync for GatherUsedMutsVisitor<'visit, 'cx, 'tcx>

impl<'visit, 'cx, 'tcx> Unpin for GatherUsedMutsVisitor<'visit, 'cx, 'tcx> where
    'cx: 'visit,
    'tcx: 'visit, 

impl<'visit, 'cx, 'tcx> !UnwindSafe for GatherUsedMutsVisitor<'visit, 'cx, '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]