rustc_middle::mir::traversal

Trait Customization

source
pub trait Customization<'tcx>: Copy {
    // Required method
    fn successors<'a>(_: &'a BasicBlockData<'tcx>, _: Self) -> Successors<'a>;
}
Expand description

Lets us plug in some additional logic and data into a Postorder traversal. Or not.

Required Methods§

source

fn successors<'a>(_: &'a BasicBlockData<'tcx>, _: Self) -> Successors<'a>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'tcx> Customization<'tcx> for (TyCtxt<'tcx>, Instance<'tcx>)

source§

fn successors<'a>( data: &'a BasicBlockData<'tcx>, (tcx, instance): (TyCtxt<'tcx>, Instance<'tcx>), ) -> Successors<'a>

source§

impl<'tcx> Customization<'tcx> for ()

source§

fn successors<'a>(data: &'a BasicBlockData<'tcx>, _: ()) -> Successors<'a>

Implementors§