diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-11 17:23:56 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-11 17:24:01 -0400 |
| commit | af8d911d63d6b38ea2da36a330b035dd2e6f89a7 (patch) | |
| tree | ad39949e1071a021f16e808ecf00f6148dd0d488 /compiler/rustc_middle/src | |
| parent | 954419aab01264707f116899e77be682b02764ea (diff) | |
Also fix if in else
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/mir/pretty.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/mir/pretty.rs b/compiler/rustc_middle/src/mir/pretty.rs index a98e6943d68..d66d0be1009 100644 --- a/compiler/rustc_middle/src/mir/pretty.rs +++ b/compiler/rustc_middle/src/mir/pretty.rs @@ -208,12 +208,10 @@ fn dump_path<'tcx>( let pass_num = if tcx.sess.opts.unstable_opts.dump_mir_exclude_pass_number { String::new() + } else if pass_num { + format!(".{:03}-{:03}", body.phase.phase_index(), body.pass_count) } else { - if pass_num { - format!(".{:03}-{:03}", body.phase.phase_index(), body.pass_count) - } else { - ".-------".to_string() - } + ".-------".to_string() }; let crate_name = tcx.crate_name(source.def_id().krate); |
