about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/passes.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-06-24 10:11:52 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-24 13:05:51 +1000
commit8b1abd6578dea3e7632014b38dbc0acadb5f0861 (patch)
tree3dd875e6bdf5f258df6c2d53b0f29e799df077d4 /compiler/rustc_interface/src/passes.rs
parent111e9bc64bbdce14122e3676978f2ceefa5bff1a (diff)
downloadrust-8b1abd6578dea3e7632014b38dbc0acadb5f0861.tar.gz
rust-8b1abd6578dea3e7632014b38dbc0acadb5f0861.zip
Make stats code nicer.
Taking inspiration from `-Zmacro-stats`:
- Use "{prefix}" consistently.
- Use names for column widths.
- Write output in a single `eprint!` call, in an attempt to minimize
  interleaving of output from different rustc processes.
- Use `repeat` for the long `---` banners.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
-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 201b7e2b940..13c2a22172c 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -370,7 +370,7 @@ fn early_lint_checks(tcx: TyCtxt<'_>, (): ()) {
     let mut lint_buffer = resolver.lint_buffer.steal();
 
     if sess.opts.unstable_opts.input_stats {
-        input_stats::print_ast_stats(krate, "POST EXPANSION AST STATS", "ast-stats");
+        input_stats::print_ast_stats(krate);
     }
 
     // Needs to go *after* expansion to be able to check the results of macro expansion.