mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-20 11:37:32 +00:00
![]() 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`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |