Struct rustc_mir_transform::generator::TransformVisitor [−][src]
struct TransformVisitor<'tcx> {
tcx: TyCtxt<'tcx>,
state_adt_ref: &'tcx AdtDef,
state_substs: SubstsRef<'tcx>,
discr_ty: Ty<'tcx>,
remap: FxHashMap<Local, (Ty<'tcx>, VariantIdx, usize)>,
storage_liveness: IndexVec<BasicBlock, Option<BitSet<Local>>>,
suspension_points: Vec<SuspensionPoint<'tcx>>,
always_live_locals: AlwaysLiveLocals,
new_ret_local: Local,
}
Fields
tcx: TyCtxt<'tcx>
state_adt_ref: &'tcx AdtDef
state_substs: SubstsRef<'tcx>
discr_ty: Ty<'tcx>
remap: FxHashMap<Local, (Ty<'tcx>, VariantIdx, usize)>
storage_liveness: IndexVec<BasicBlock, Option<BitSet<Local>>>
suspension_points: Vec<SuspensionPoint<'tcx>>
always_live_locals: AlwaysLiveLocals
new_ret_local: Local
Implementations
fn make_state(
&self,
idx: VariantIdx,
val: Operand<'tcx>,
source_info: SourceInfo
) -> impl Iterator<Item = Statement<'tcx>>
Trait Implementations
fn visit_place(
&mut self,
place: &mut Place<'tcx>,
_context: PlaceContext,
_location: Location
)
fn visit_assign(
&mut self,
place: &mut Place<'tcx>,
rvalue: &mut Rvalue<'tcx>,
location: Location
)
fn visit_ascribe_user_ty(
&mut self,
place: &mut Place<'tcx>,
variance: &mut Variance,
user_ty: &mut UserTypeProjection,
location: Location
)
fn process_projection(
&mut self,
projection: &'a [ProjectionElem<Local, &'tcx TyS<'tcx>>],
location: Location
) -> Option<Vec<ProjectionElem<Local, &'tcx TyS<'tcx>>, Global>>
fn process_projection_elem(
&mut self,
elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
location: Location
) -> Option<ProjectionElem<Local, &'tcx TyS<'tcx>>>
fn visit_user_type_annotation(
&mut self,
index: UserTypeAnnotationIndex,
ty: &mut CanonicalUserTypeAnnotation<'tcx>
)
fn super_assign(
&mut self,
place: &mut Place<'tcx>,
rvalue: &mut Rvalue<'tcx>,
location: Location
)
fn super_ascribe_user_ty(
&mut self,
place: &mut Place<'tcx>,
_variance: &mut Variance,
user_ty: &mut UserTypeProjection,
location: Location
)
fn super_user_type_annotation(
&mut self,
_index: UserTypeAnnotationIndex,
ty: &mut CanonicalUserTypeAnnotation<'tcx>
)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TransformVisitor<'tcx>
impl<'tcx> !Send for TransformVisitor<'tcx>
impl<'tcx> !Sync for TransformVisitor<'tcx>
impl<'tcx> Unpin for TransformVisitor<'tcx>
impl<'tcx> !UnwindSafe for TransformVisitor<'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: 152 bytes