Skip to content

Commit

Permalink
Nest typeck tables when processing struct member types
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Oct 13, 2019
1 parent 7b3cd1b commit eefc169
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/librustc_save_analysis/dump_visitor.rs
Expand Up @@ -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(
Expand Down

0 comments on commit eefc169

Please sign in to comment.