diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-09 13:58:49 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-09 13:58:49 +1000 |
| commit | d0ddeb5bfccabe3710684a8bbea2988afd73d9f3 (patch) | |
| tree | d86d61461cbba26022b79089274314d75426c0cd /compiler/rustc_interface | |
| parent | 354ef5420485aac0f25164eec904130f074129b8 (diff) | |
| parent | 0239e464876c8785e8601712220f17d9c58bcba6 (diff) | |
| download | rust-d0ddeb5bfccabe3710684a8bbea2988afd73d9f3.tar.gz rust-d0ddeb5bfccabe3710684a8bbea2988afd73d9f3.zip | |
Rollup merge of #145082 - nnethercote:macro-stats-fix-widths, r=petrochenkov
Fix some bad formatting in `-Zmacro-stats` output. r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 8dec8069bc7..8bbd0e61492 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -371,7 +371,7 @@ fn print_macro_stats(ecx: &ExtCtxt<'_>) { // The name won't abut or overlap with the uses value, but it does // overlap with the empty part of the uses column. Shrink the width // of the uses column to account for the excess name length. - uses_w = uses_with_underscores.len() + 1 + uses_w -= name.len() - name_w; }; _ = writeln!( |
