[−][src]Trait rustc_mir_build::build::scope::DropTreeBuilder

pub(in build::scope) trait DropTreeBuilder<'tcx> {
    pub(in build::scope) fn make_block(
        cfg: &mut CFG<'tcx>
    ) -> BasicBlock;
pub(in build::scope) fn add_entry(
        cfg: &mut CFG<'tcx>,
        from: BasicBlock,
        to: BasicBlock
    ); }

A trait that determined how DropTree creates its blocks and links to any entry nodes.

Required methods

pub(in build::scope) fn make_block(
    cfg: &mut CFG<'tcx>
) -> BasicBlock
[src]

Create a new block for the tree. This should call either cfg.start_new_block() or cfg.start_new_cleanup_block().

pub(in build::scope) fn add_entry(
    cfg: &mut CFG<'tcx>,
    from: BasicBlock,
    to: BasicBlock
)
[src]

Links a block outside the drop tree, from, to the block to inside the drop tree.

Loading content...

Implementors

impl<'tcx> DropTreeBuilder<'tcx> for ExitScopes[src]

impl<'tcx> DropTreeBuilder<'tcx> for GeneratorDrop[src]

impl<'tcx> DropTreeBuilder<'tcx> for Unwind[src]

Loading content...