1
Fork 0

Rebase fallout.

This commit is contained in:
Camille GILLOT 2020-11-26 22:26:52 +01:00
parent 12a3024c57
commit d6b22fa534
2 changed files with 6 additions and 0 deletions

View file

@ -487,6 +487,11 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
visit::walk_assoc_item(self, item, ctxt);
}
fn visit_foreign_item(&mut self, item: &'tcx ForeignItem) {
self.lctx.allocate_hir_id_counter(item.id);
visit::walk_foreign_item(self, item);
}
fn visit_ty(&mut self, t: &'tcx Ty) {
match t.kind {
// Mirrors the case in visit::walk_ty