rustc_middle::mir::pretty

Function write_mir_fn

Source
pub fn write_mir_fn<'tcx, F>(
    tcx: TyCtxt<'tcx>,
    body: &Body<'tcx>,
    extra_data: &mut F,
    w: &mut dyn Write,
    options: PrettyPrintMirOptions,
) -> Result<()>
where F: FnMut(PassWhere, &mut dyn Write) -> Result<()>,
Expand description

Write out a human-readable textual representation for the given function.