Nest typeck tables when processing struct member types

This commit is contained in:
Igor Matuszewski 2019-10-13 01:45:48 +02:00
parent 7b3cd1b674
commit eefc1697c5

View file

@ -532,12 +532,14 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
);
}
for field in def.fields() {
self.process_struct_field_def(field, item.id);
self.visit_ty(&field.ty);
}
self.nest_tables(item.id, |v| {
for field in def.fields() {
v.process_struct_field_def(field, item.id);
v.visit_ty(&field.ty);
}
self.process_generic_params(ty_params, &qualname, item.id);
v.process_generic_params(ty_params, &qualname, item.id);
});
}
fn process_enum(