[−][src]Struct rustc_mir::transform::check_consts::resolver::TransferFunction

pub(in transform::check_consts::resolver) struct TransferFunction<'a, 'mir, 'tcx, Q> {
    ccx: &'a ConstCx<'mir, 'tcx>,
    qualifs_per_local: &'a mut BitSet<Local>,
    _qualif: PhantomData<Q>,
}

A Visitor that propagates qualifs between locals. This defines the transfer function of FlowSensitiveAnalysis.

This transfer does nothing when encountering an indirect assignment. Consumers should rely on the MaybeMutBorrowedLocals dataflow pass to see if a Local may have become qualified via an indirect assignment or function call.

Fields

ccx: &'a ConstCx<'mir, 'tcx>qualifs_per_local: &'a mut BitSet<Local>_qualif: PhantomData<Q>

Implementations

impl<Q, 'a, 'mir, 'tcx> TransferFunction<'a, 'mir, 'tcx, Q> where
    Q: Qualif, 
[src]

pub(in transform::check_consts::resolver) fn new(
    ccx: &'a ConstCx<'mir, 'tcx>,
    qualifs_per_local: &'a mut BitSet<Local>
) -> Self
[src]

pub(in transform::check_consts::resolver) fn initialize_state(
    &mut self
)
[src]

pub(in transform::check_consts::resolver) fn assign_qualif_direct(
    &mut self,
    place: &Place<'tcx>,
    value: bool
)
[src]

pub(in transform::check_consts::resolver) fn apply_call_return_effect(
    &mut self,
    _block: BasicBlock,
    _func: &Operand<'tcx>,
    _args: &[Operand<'tcx>],
    return_place: Place<'tcx>
)
[src]

Trait Implementations

impl<Q, 'tcx, '_, '_> Visitor<'tcx> for TransferFunction<'_, '_, 'tcx, Q> where
    Q: Qualif, 
[src]

Auto Trait Implementations

impl<'a, 'mir, 'tcx, Q> !RefUnwindSafe for TransferFunction<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> !Send for TransferFunction<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> !Sync for TransferFunction<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> Unpin for TransferFunction<'a, 'mir, 'tcx, Q> where
    Q: Unpin,
    'mir: 'a,
    'tcx: 'a, 

impl<'a, 'mir, 'tcx, Q> !UnwindSafe for TransferFunction<'a, 'mir, 'tcx, Q>

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]