rustc_middle::mir::pretty

Function dump_mir_with_options

source
pub fn dump_mir_with_options<'tcx, F>(
    tcx: TyCtxt<'tcx>,
    pass_num: bool,
    pass_name: &str,
    disambiguator: &dyn Display,
    body: &Body<'tcx>,
    extra_data: F,
    options: PrettyPrintMirOptions,
)
where F: FnMut(PassWhere, &mut dyn Write) -> Result<()>,
Expand description

If the session is properly configured, dumps a human-readable representation of the MIR, with the given pretty-printing options.

See dump_mir for more details.