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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§