Fix some bad formatting in -Zmacro-stats output.

I also double-checked that everything looks good on some real-world
crates.
This commit is contained in:
Nicholas Nethercote
2025-08-08 14:10:54 +10:00
parent 347cd4e6cb
commit 0239e46487
2 changed files with 6 additions and 6 deletions

View File

@@ -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!(