rust/compiler/rustc_interface
Nicholas Nethercote 376cbc3787 Introduce -Zmacro-stats.
It collects data about macro expansions and prints them in a table after
expansion finishes. It's very useful for detecting macro bloat,
especially for proc macros.

Details:
- It measures code snippets by pretty-printing them and then measuring
  lines and bytes. This required a bunch of additional pretty-printing
  plumbing, in `rustc_ast_pretty` and `rustc_expand`.
- The measurement is done in `MacroExpander::expand_invoc`.
- The measurements are stored in `ExtCtxt::macro_stats`.
2025-06-12 21:17:17 +10:00
..
src Introduce -Zmacro-stats. 2025-06-12 21:17:17 +10:00
Cargo.toml Remove the use of Rayon iterators 2025-04-10 22:05:06 +02:00
messages.ftl Remove attribute #[rustc_error] 2025-03-30 01:32:21 +03:00