rust/compiler/rustc_expand
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 Do not get proc_macro from the sysroot in rustc 2025-05-27 15:49:28 +00:00
messages.ftl Note the version and PR of removed features when using it 2025-06-09 17:10:58 +08:00