We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Z hir-stats
1 parent 2fa5340 commit 36ba8eeCopy full SHA for 36ba8ee
src/librustc_passes/hir_stats.rs
@@ -125,6 +125,11 @@ impl<'v> hir_visit::Visitor<'v> for StatCollector<'v> {
125
self.visit_impl_item(nested_impl_item)
126
}
127
128
+ fn visit_nested_body(&mut self, body_id: hir::BodyId) {
129
+ let nested_body = self.krate.unwrap().body(body_id);
130
+ self.visit_body(nested_body)
131
+ }
132
+
133
fn visit_item(&mut self, i: &'v hir::Item) {
134
self.record("Item", Id::Node(i.id), i);
135
hir_visit::walk_item(self, i)
0 commit comments