Skip to content

Commit eefc169

Browse files
committed
Nest typeck tables when processing struct member types
1 parent 7b3cd1b commit eefc169

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: src/librustc_save_analysis/dump_visitor.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,14 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
532532
);
533533
}
534534

535-
for field in def.fields() {
536-
self.process_struct_field_def(field, item.id);
537-
self.visit_ty(&field.ty);
538-
}
535+
self.nest_tables(item.id, |v| {
536+
for field in def.fields() {
537+
v.process_struct_field_def(field, item.id);
538+
v.visit_ty(&field.ty);
539+
}
539540

540-
self.process_generic_params(ty_params, &qualname, item.id);
541+
v.process_generic_params(ty_params, &qualname, item.id);
542+
});
541543
}
542544

543545
fn process_enum(

0 commit comments

Comments
 (0)