Struct rustc_monomorphize::collector::MirNeighborCollector [−][src]
struct MirNeighborCollector<'a, 'tcx> {
tcx: TyCtxt<'tcx>,
body: &'a Body<'tcx>,
output: &'a mut Vec<Spanned<MonoItem<'tcx>>>,
instance: Instance<'tcx>,
}
Fields
tcx: TyCtxt<'tcx>
body: &'a Body<'tcx>
output: &'a mut Vec<Spanned<MonoItem<'tcx>>>
instance: Instance<'tcx>
Implementations
Trait Implementations
This does not walk the constant, as it has been handled entirely here and trying
to walk it would attempt to evaluate the ty::Const
inside, which doesn’t necessarily
work, as some constants cannot be represented in the type system.
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 MirNeighborCollector<'a, 'tcx>
impl<'a, 'tcx> !Send for MirNeighborCollector<'a, 'tcx>
impl<'a, 'tcx> !Sync for MirNeighborCollector<'a, 'tcx>
impl<'a, 'tcx> Unpin for MirNeighborCollector<'a, 'tcx> where
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for MirNeighborCollector<'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: 56 bytes