Struct rustc_middle::mir::patch::MirPatch [−][src]
pub struct MirPatch<'tcx> {
patch_map: IndexVec<BasicBlock, Option<TerminatorKind<'tcx>>>,
new_blocks: Vec<BasicBlockData<'tcx>>,
new_statements: Vec<(Location, StatementKind<'tcx>)>,
new_locals: Vec<LocalDecl<'tcx>>,
resume_block: BasicBlock,
next_local: usize,
}
Expand description
This struct represents a patch to MIR, which can add new statements and basic blocks and patch over block terminators.
Fields
patch_map: IndexVec<BasicBlock, Option<TerminatorKind<'tcx>>>
new_blocks: Vec<BasicBlockData<'tcx>>
new_statements: Vec<(Location, StatementKind<'tcx>)>
new_locals: Vec<LocalDecl<'tcx>>
resume_block: BasicBlock
next_local: usize
Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for MirPatch<'tcx>
impl<'tcx> !UnwindSafe for MirPatch<'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