Skip to content

Commit 5fe88ab

Browse files
committed
save-analysis: Nest tables when processing impl items
1 parent ea45150 commit 5fe88ab

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/librustc_save_analysis/dump_visitor.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -669,15 +669,18 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
669669
}
670670
}
671671
}
672-
self.visit_ty(&typ);
673-
if let &Some(ref trait_ref) = trait_ref {
674-
self.process_path(trait_ref.ref_id, &trait_ref.path);
675-
}
676-
self.process_generic_params(generics, "", item.id);
677-
for impl_item in impl_items {
678-
let map = &self.tcx.hir();
679-
self.process_impl_item(impl_item, map.local_def_id_from_node_id(item.id));
680-
}
672+
673+
let map = &self.tcx.hir();
674+
self.nest_tables(item.id, |v| {
675+
v.visit_ty(&typ);
676+
if let &Some(ref trait_ref) = trait_ref {
677+
v.process_path(trait_ref.ref_id, &trait_ref.path);
678+
}
679+
v.process_generic_params(generics, "", item.id);
680+
for impl_item in impl_items {
681+
v.process_impl_item(impl_item, map.local_def_id_from_node_id(item.id));
682+
}
683+
});
681684
}
682685

683686
fn process_trait(

0 commit comments

Comments
 (0)