Skip to content

Commit 0fafd61

Browse files
committed
save-analysis: Visit bounds in opaque types
1 parent b4151dd commit 0fafd61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_save_analysis/dump_visitor.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1356,10 +1356,10 @@ impl<'l, 'tcx> Visitor<'l> for DumpVisitor<'l, 'tcx> {
13561356
self.visit_ty(&ty);
13571357
self.process_generic_params(ty_params, &qualname, item.id);
13581358
}
1359-
OpaqueTy(ref _bounds, ref ty_params) => {
1359+
OpaqueTy(ref bounds, ref ty_params) => {
13601360
let qualname = format!("::{}",
13611361
self.tcx.def_path_str(self.tcx.hir().local_def_id_from_node_id(item.id)));
1362-
// FIXME do something with _bounds
1362+
13631363
let value = String::new();
13641364
if !self.span.filter_generated(item.ident.span) {
13651365
let span = self.span_from_span(item.ident.span);
@@ -1385,6 +1385,7 @@ impl<'l, 'tcx> Visitor<'l> for DumpVisitor<'l, 'tcx> {
13851385
);
13861386
}
13871387

1388+
self.process_bounds(bounds);
13881389
self.process_generic_params(ty_params, &qualname, item.id);
13891390
}
13901391
Mac(_) => (),

0 commit comments

Comments
 (0)