Struct rustc_mir::borrow_check::invalidation::InvalidationGenerator[−][src]

struct InvalidationGenerator<'cx, 'tcx> {
    tcx: TyCtxt<'tcx>,
    all_facts: &'cx mut PoloniusFacts<RustcFacts>,
    location_table: &'cx LocationTable,
    body: &'cx Body<'tcx>,
    dominators: Dominators<BasicBlock>,
    borrow_set: &'cx BorrowSet<'tcx>,
}

Fields

tcx: TyCtxt<'tcx>all_facts: &'cx mut PoloniusFacts<RustcFacts>location_table: &'cx LocationTablebody: &'cx Body<'tcx>dominators: Dominators<BasicBlock>borrow_set: &'cx BorrowSet<'tcx>

Implementations

impl<'cx, 'tcx> InvalidationGenerator<'cx, 'tcx>[src]

fn mutate_place(
    &mut self,
    location: Location,
    place: Place<'tcx>,
    kind: AccessDepth,
    _mode: MutateMode
)
[src]

Simulates mutation of a place.

fn consume_operand(&mut self, location: Location, operand: &Operand<'tcx>)[src]

Simulates consumption of an operand.

fn consume_rvalue(&mut self, location: Location, rvalue: &Rvalue<'tcx>)[src]

fn access_place(
    &mut self,
    location: Location,
    place: Place<'tcx>,
    kind: (AccessDepth, ReadOrWrite),
    _is_local_mutation_allowed: LocalMutationIsAllowed
)
[src]

Simulates an access to a place.

fn check_access_for_conflict(
    &mut self,
    location: Location,
    place: Place<'tcx>,
    sd: AccessDepth,
    rw: ReadOrWrite
)
[src]

fn generate_invalidates(&mut self, b: BorrowIndex, l: Location)[src]

Generates a new invalidates(L, B) fact.

fn check_activations(&mut self, location: Location)[src]

Trait Implementations

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

Visits the whole MIR and generates invalidates() facts. Most of the code implementing this was stolen from borrow_check/mod.rs.

Auto Trait Implementations

impl<'cx, 'tcx> !RefUnwindSafe for InvalidationGenerator<'cx, 'tcx>

impl<'cx, 'tcx> !Send for InvalidationGenerator<'cx, 'tcx>

impl<'cx, 'tcx> !Sync for InvalidationGenerator<'cx, 'tcx>

impl<'cx, 'tcx> Unpin for InvalidationGenerator<'cx, 'tcx> where
    'tcx: 'cx, 

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