]> git.lizzy.rs Git - rust.git/commit
Add a second level to the AST size reporting.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 11 Aug 2022 04:37:21 +0000 (14:37 +1000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 11 Aug 2022 10:46:41 +0000 (20:46 +1000)
commit4f8a1702bab38730bf2386e2e3df57b63a768077
tree1b9e5b2dc974f040a13314f783fb4c9dd6bd7f5a
parent85c749266d1e9a38a9fd9c45ef417d0d464ef634
Add a second level to the AST size reporting.

This tells you which variants of the enums are most common, which is
very useful. I've only done it for the AST for now, HIR can be done
later.
compiler/rustc_passes/src/hir_stats.rs
src/test/ui/stats/hir-stats.rs
src/test/ui/stats/hir-stats.stderr