]> git.lizzy.rs Git - rust.git/commit
Add prefix to every line of `-Zhir-stats` output.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 26 Aug 2022 03:52:41 +0000 (13:52 +1000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 28 Aug 2022 20:35:14 +0000 (06:35 +1000)
commit9ee0192095b7c8f9a0030b06c67474155f8ea9a0
tree48944ead54cf0a342d0a0072bd5df8c397cd2ece
parent223d16ebbde1bd309c58e853b053e14318e56b0e
Add prefix to every line of `-Zhir-stats` output.

This is based on `-Zprint-type-sizes` which does the same thing. It
makes the output provenance clearer, and helps with post-processing.
E.g. if you have `-Zhir-stats` output from numerous compiler invocations
you can now easily extract the pre-expansion stats separately from the
post-expansion stats.
compiler/rustc_interface/src/passes.rs
compiler/rustc_passes/src/hir_stats.rs
src/test/ui/stats/hir-stats.stderr