Struct rustc_mir_transform::inline::Integrator [−][src]
struct Integrator<'a, 'tcx> {
args: &'a [Local],
new_locals: RangeFrom<Local>,
new_scopes: RangeFrom<SourceScope>,
new_blocks: RangeFrom<BasicBlock>,
destination: Place<'tcx>,
return_block: Option<BasicBlock>,
cleanup_block: Option<BasicBlock>,
in_cleanup_block: bool,
tcx: TyCtxt<'tcx>,
callsite_span: Span,
body_span: Span,
always_live_locals: BitSet<Local>,
}
Expand description
Integrator.
Integrates blocks from the callee function into the calling function. Updates block indices, references to locals and other control flow stuff.
Fields
args: &'a [Local]
new_locals: RangeFrom<Local>
new_scopes: RangeFrom<SourceScope>
new_blocks: RangeFrom<BasicBlock>
destination: Place<'tcx>
return_block: Option<BasicBlock>
cleanup_block: Option<BasicBlock>
in_cleanup_block: bool
tcx: TyCtxt<'tcx>
callsite_span: Span
body_span: Span
always_live_locals: BitSet<Local>
Implementations
Trait Implementations
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<'a, 'tcx> !RefUnwindSafe for Integrator<'a, 'tcx>
impl<'a, 'tcx> !Send for Integrator<'a, 'tcx>
impl<'a, 'tcx> !Sync for Integrator<'a, 'tcx>
impl<'a, 'tcx> Unpin for Integrator<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for Integrator<'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: 112 bytes