]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_save_analysis/dump_visitor.rs
Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis
[rust.git] / src / librustc_save_analysis / dump_visitor.rs
index 9b08f709f342faa95e04af1354cfbde18b61dfa5..e63e31e03c9f021c95cf89c119349934247b4f7d 100644 (file)
@@ -1102,7 +1102,6 @@ fn process_impl_item(&mut self, impl_item: &'tcx hir::ImplItem<'tcx>, impl_id: D
                     impl_item.span,
                 );
             }
-            hir::ImplItemKind::OpaqueTy(..) => {}
             hir::ImplItemKind::TyAlias(ref ty) => {
                 // FIXME: uses of the assoc type should ideally point to this
                 // 'def' and the name here should be a ref to the def in the
@@ -1380,7 +1379,7 @@ fn visit_ty(&mut self, t: &'tcx hir::Ty<'tcx>) {
                     v.visit_expr(&map.body(anon_const.body).value)
                 });
             }
-            hir::TyKind::Def(item_id, _) => {
+            hir::TyKind::OpaqueDef(item_id, _) => {
                 let item = self.tcx.hir().item(item_id.id);
                 self.nest_tables(self.tcx.hir().local_def_id(item_id.id), |v| v.visit_item(item));
             }