[−][src]Struct rustc_mir::transform::const_prop::CanConstProp

pub(in transform::const_prop) struct CanConstProp {
    can_const_prop: IndexVec<Local, ConstPropMode>,
    found_assignment: BitSet<Local>,
    local_kinds: IndexVec<Local, LocalKind>,
}

Fields

can_const_prop: IndexVec<Local, ConstPropMode>found_assignment: BitSet<Local>local_kinds: IndexVec<Local, LocalKind>

Implementations

impl CanConstProp[src]

pub(in transform::const_prop) fn check<'tcx>(
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    body: &Body<'tcx>
) -> IndexVec<Local, ConstPropMode>
[src]

Returns true if local can be propagated

Trait Implementations

impl<'tcx> Visitor<'tcx> for CanConstProp[src]

Auto Trait Implementations

impl RefUnwindSafe for CanConstProp

impl Send for CanConstProp

impl Sync for CanConstProp

impl Unpin for CanConstProp

impl UnwindSafe for CanConstProp

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]