save-analysis: Visit bounds in opaque types

This commit is contained in:
Igor Matuszewski 2019-09-13 15:41:10 +02:00
parent b4151dd321
commit 0fafd615e5

View File

@ -1356,10 +1356,10 @@ fn visit_item(&mut self, item: &'l ast::Item) {
self.visit_ty(&ty);
self.process_generic_params(ty_params, &qualname, item.id);
}
OpaqueTy(ref _bounds, ref ty_params) => {
OpaqueTy(ref bounds, ref ty_params) => {
let qualname = format!("::{}",
self.tcx.def_path_str(self.tcx.hir().local_def_id_from_node_id(item.id)));
// FIXME do something with _bounds
let value = String::new();
if !self.span.filter_generated(item.ident.span) {
let span = self.span_from_span(item.ident.span);
@ -1385,6 +1385,7 @@ fn visit_item(&mut self, item: &'l ast::Item) {
);
}
self.process_bounds(bounds);
self.process_generic_params(ty_params, &qualname, item.id);
}
Mac(_) => (),