[][src]Struct rustc_mir::dataflow::impls::MaybeRequiresStorage

pub struct MaybeRequiresStorage<'mir, 'tcx> {
    body: &'mir Body<'tcx>,
    borrowed_locals: RefCell<ResultsRefCursor<'mir, 'mir, 'tcx, MaybeBorrowedLocals>>,
}

Dataflow analysis that determines whether each local requires storage at a given location; i.e. whether its storage can go away without being observed.

Fields

body: &'mir Body<'tcx>borrowed_locals: RefCell<ResultsRefCursor<'mir, 'mir, 'tcx, MaybeBorrowedLocals>>

Implementations

impl<'mir, 'tcx> MaybeRequiresStorage<'mir, 'tcx>[src]

pub fn new(
    body: &'mir Body<'tcx>,
    borrowed_locals: &'mir Results<'tcx, MaybeBorrowedLocals>
) -> Self
[src]

impl<'mir, 'tcx> MaybeRequiresStorage<'mir, 'tcx>[src]

pub(in dataflow::impls::storage_liveness) fn check_for_move(
    &self,
    trans: &mut impl GenKill<Local>,
    loc: Location
)
[src]

Kill locals that are fully moved and have not been borrowed.

Trait Implementations

impl<'mir, 'tcx> AnalysisDomain<'tcx> for MaybeRequiresStorage<'mir, 'tcx>[src]

type Domain = BitSet<Local>

The type that holds the dataflow state at any given point in the program.

impl<'mir, 'tcx> GenKillAnalysis<'tcx> for MaybeRequiresStorage<'mir, 'tcx>[src]

type Idx = Local

Auto Trait Implementations

impl<'mir, 'tcx> !RefUnwindSafe for MaybeRequiresStorage<'mir, 'tcx>

impl<'mir, 'tcx> !Send for MaybeRequiresStorage<'mir, 'tcx>

impl<'mir, 'tcx> !Sync for MaybeRequiresStorage<'mir, 'tcx>

impl<'mir, 'tcx> Unpin for MaybeRequiresStorage<'mir, 'tcx> where
    'tcx: 'mir, 

impl<'mir, 'tcx> !UnwindSafe for MaybeRequiresStorage<'mir, '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]