Struct rustc_monomorphize::polymorphize::MarkUsedGenericParams [−][src]
struct MarkUsedGenericParams<'a, 'tcx> {
tcx: TyCtxt<'tcx>,
def_id: DefId,
unused_parameters: &'a mut FiniteBitSet<u32>,
}
Expand description
Visitor used to aggregate generic parameter uses.
Fields
tcx: TyCtxt<'tcx>
def_id: DefId
unused_parameters: &'a mut FiniteBitSet<u32>
Implementations
Invoke unused_generic_params
on a body contained within the current item (e.g.
a closure, generator or constant).
Trait Implementations
Supplies the tcx
for an unevaluated anonymous constant in case its default substs
are not yet supplied. Read more
fn visit_binder<T>(
&mut self,
t: &Binder<'tcx, T>
) -> ControlFlow<Self::BreakTy, ()> where
T: TypeFoldable<'tcx>,
fn visit_unevaluated_const(
&mut self,
uv: Unevaluated<'tcx, Option<Promoted>>
) -> ControlFlow<Self::BreakTy, ()>
fn visit_ascribe_user_ty(
&mut self,
place: &Place<'tcx>,
variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn visit_projection(
&mut self,
place_ref: PlaceRef<'tcx>,
context: PlaceContext,
location: Location
)
fn visit_projection_elem(
&mut self,
local: Local,
proj_base: &[ProjectionElem<Local, &'tcx TyS<'tcx>>],
elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
context: PlaceContext,
location: Location
)
fn super_projection(
&mut self,
place_ref: PlaceRef<'tcx>,
context: PlaceContext,
location: Location
)
fn super_projection_elem(
&mut self,
_local: Local,
_proj_base: &[ProjectionElem<Local, &'tcx TyS<'tcx>>],
elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
_context: PlaceContext,
location: Location
)
fn visit_user_type_annotation(
&mut self,
index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation<'tcx>
)
fn super_ascribe_user_ty(
&mut self,
place: &Place<'tcx>,
_variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn super_user_type_annotation(
&mut self,
_index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation<'tcx>
)
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes