Don't go through the formatting infrastructure just to get the name of a phase
This commit is contained in:
parent
744a97b98c
commit
c2166ec628
3 changed files with 15 additions and 25 deletions
|
@ -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(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue