Nest typeck tables when processing struct member types
This commit is contained in:
parent
7b3cd1b674
commit
eefc1697c5
1 changed files with 7 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue