[−][src]Struct rustc_mir::transform::inline::Integrator

pub(in transform::inline) 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>,
}

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: booltcx: TyCtxt<'tcx>callsite_span: Spanbody_span: Spanalways_live_locals: BitSet<Local>

Implementations

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

pub(in transform::inline) fn map_local(
    &self,
    local: Local
) -> Local
[src]

pub(in transform::inline) fn map_scope(
    &self,
    scope: SourceScope
) -> SourceScope
[src]

pub(in transform::inline) fn map_block(
    &self,
    block: BasicBlock
) -> BasicBlock
[src]

Trait Implementations

impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx>[src]

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

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]