1
Fork 0

Rollup merge of #120428 - petrochenkov:somehir2, r=compiler-errors

hir: Two preparatory changes for #120206

cc https://github.com/rust-lang/rust/pull/120206
r? ```@compiler-errors```
This commit is contained in:
Dylan DPC 2024-01-29 12:56:54 +00:00 committed by GitHub
commit eaa100204e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 33 additions and 39 deletions

View file

@ -328,11 +328,6 @@ impl<'v> hir_visit::Visitor<'v> for StatCollector<'v> {
hir_visit::walk_expr(self, e)
}
fn visit_let_expr(&mut self, lex: &'v hir::Let<'v>) {
self.record("Let", Id::Node(lex.hir_id), lex);
hir_visit::walk_let_expr(self, lex)
}
fn visit_expr_field(&mut self, f: &'v hir::ExprField<'v>) {
self.record("ExprField", Id::Node(f.hir_id), f);
hir_visit::walk_expr_field(self, f)