Function rustc_driver::pretty::call_with_pp_support
source · fn call_with_pp_support<'tcx, A, F>(
ppmode: &PpSourceMode,
sess: &'tcx Session,
tcx: Option<TyCtxt<'tcx>>,
f: F
) -> Awhere
F: FnOnce(&dyn PrinterSupport) -> A,
Expand description
Constructs a PrinterSupport
object and passes it to f
.