Trait rustc::mir::transform::MirPass [] [src]

pub trait MirPass<'tcx>: Pass {
    fn run_pass<'a>(&mut self, tcx: TyCtxt<'a, 'tcx, 'tcx>, src: MirSource, mir: &mut Mir<'tcx>);

    fn run_pass_on_promoted<'a>(&mut self, tcx: TyCtxt<'a, 'tcx, 'tcx>, item_id: NodeId, index: usize, mir: &mut Mir<'tcx>) { ... }
}
Unstable (rustc_private)

A pass which inspects Mir of functions in isolation.

Required Methods

fn run_pass<'a>(&mut self, tcx: TyCtxt<'a, 'tcx, 'tcx>, src: MirSource, mir: &mut Mir<'tcx>)

Unstable (rustc_private)

Provided Methods

fn run_pass_on_promoted<'a>(&mut self, tcx: TyCtxt<'a, 'tcx, 'tcx>, item_id: NodeId, index: usize, mir: &mut Mir<'tcx>)

Unstable (rustc_private)

Implementors