about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-06-24 12:45:56 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-24 13:07:14 +1000
commitb2a57e6b428689d8b6a9881f8ccdfd30d76767bc (patch)
tree1501df13b7d3c111911ba77cbeaccd8b2081ba50 /compiler/rustc_interface
parent1e7e1732caa369221913e3d50af19324e0afa869 (diff)
downloadrust-b2a57e6b428689d8b6a9881f8ccdfd30d76767bc.tar.gz
rust-b2a57e6b428689d8b6a9881f8ccdfd30d76767bc.zip
Tweak `-Zinput-stats` and `-Zmeta-stats` output.
To make it match `-Zmacro-stats`, and work better if you have enabled it
for multiple crates.
- Print each crate's name.
- Print a `===` banner at the start and end for separation.
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 13c2a22172c..ae7f0c4a823 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);
+        input_stats::print_ast_stats(tcx, krate);
     }
 
     // Needs to go *after* expansion to be able to check the results of macro expansion.