about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-09 13:58:49 +1000
committerGitHub <noreply@github.com>2025-08-09 13:58:49 +1000
commitd0ddeb5bfccabe3710684a8bbea2988afd73d9f3 (patch)
treed86d61461cbba26022b79089274314d75426c0cd /compiler/rustc_interface
parent354ef5420485aac0f25164eec904130f074129b8 (diff)
parent0239e464876c8785e8601712220f17d9c58bcba6 (diff)
downloadrust-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.rs2
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!(