summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2022-09-30 10:45:02 -0300
committerSantiago Pastorino <spastorino@gmail.com>2022-09-30 15:12:01 -0300
commitb2bef02bcdc322a42ccde2688f34dce01a0cbb50 (patch)
tree1c6f8774fce41b61709a410bd0c8ff4dea62cf74 /compiler/rustc_resolve/src
parent65445a571c11f07f4ca1ed0f63bad247ae295bd0 (diff)
downloadrust-b2bef02bcdc322a42ccde2688f34dce01a0cbb50.tar.gz
rust-b2bef02bcdc322a42ccde2688f34dce01a0cbb50.zip
create def ids for impl traits during ast lowering
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/def_collector.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/rustc_resolve/src/def_collector.rs b/compiler/rustc_resolve/src/def_collector.rs
index 7e83f2a7221..38a3c9dd71a 100644
--- a/compiler/rustc_resolve/src/def_collector.rs
+++ b/compiler/rustc_resolve/src/def_collector.rs
@@ -285,21 +285,6 @@ impl<'a, 'b> visit::Visitor<'a> for DefCollector<'a, 'b> {
     fn visit_ty(&mut self, ty: &'a Ty) {
         match ty.kind {
             TyKind::MacCall(..) => self.visit_macro_invoc(ty.id),
-            TyKind::ImplTrait(node_id, _) => {
-                let parent_def = match self.impl_trait_context {
-                    ImplTraitContext::Universal(item_def) => self.resolver.create_def(
-                        item_def,
-                        node_id,
-                        DefPathData::ImplTrait,
-                        self.expansion.to_expn_id(),
-                        ty.span,
-                    ),
-                    ImplTraitContext::Existential => {
-                        self.create_def(node_id, DefPathData::ImplTrait, ty.span)
-                    }
-                };
-                self.with_parent(parent_def, |this| visit::walk_ty(this, ty))
-            }
             _ => visit::walk_ty(self, ty),
         }
     }