1
Fork 0

Don't go through the formatting infrastructure just to get the name of a phase

This commit is contained in:
Oli Scherer 2022-12-01 08:31:54 +00:00
parent 744a97b98c
commit c2166ec628
3 changed files with 15 additions and 25 deletions

View file

@ -184,7 +184,7 @@ pub fn dump_mir_for_phase_change<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>) {
mir::dump_mir(
tcx,
Some(&format_args!("{:03}-000", phase_index)),
&format!("{}", body.phase),
body.phase.name(),
&"after",
body,
|_, _| Ok(()),