[−][src]Struct rustc_mir::monomorphize::polymorphize::MarkUsedGenericParams

pub(in monomorphize::polymorphize) struct MarkUsedGenericParams<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
    unused_parameters: &'a mut FiniteBitSet<u32>,
}

Visitor used to aggregate generic parameter uses.

Fields

tcx: TyCtxt<'tcx>def_id: DefIdunused_parameters: &'a mut FiniteBitSet<u32>

Implementations

impl<'a, 'tcx> MarkUsedGenericParams<'a, 'tcx>[src]

pub(in monomorphize::polymorphize) fn visit_child_body(
    &mut self,
    def_id: DefId,
    substs: SubstsRef<'tcx>
)
[src]

Invoke unused_generic_params on a body contained within the current item (e.g. a closure, generator or constant).

Trait Implementations

impl<'a, 'tcx> TypeVisitor<'tcx> for MarkUsedGenericParams<'a, 'tcx>[src]

impl<'a, 'tcx> Visitor<'tcx> for MarkUsedGenericParams<'a, 'tcx>[src]

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for MarkUsedGenericParams<'a, 'tcx>

impl<'a, 'tcx> !Send for MarkUsedGenericParams<'a, 'tcx>

impl<'a, 'tcx> !Sync for MarkUsedGenericParams<'a, 'tcx>

impl<'a, 'tcx> Unpin for MarkUsedGenericParams<'a, 'tcx>

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