From 467f5f418e6d144af37da22d22c877a312cdeb6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 16 Jul 2023 09:34:35 +0300 Subject: [PATCH] Revert "Handle TyAlias in projected_ty" --- crates/hir-ty/src/mir.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/hir-ty/src/mir.rs b/crates/hir-ty/src/mir.rs index df53d239ca5be..dc846fc394710 100644 --- a/crates/hir-ty/src/mir.rs +++ b/crates/hir-ty/src/mir.rs @@ -151,7 +151,6 @@ impl ProjectionElem { TyKind::Adt(_, subst) => { db.field_types(f.parent)[f.local_id].clone().substitute(Interner, subst) } - TyKind::Alias(inner) => inner.clone().intern(Interner), _ => { never!("Only adt has field"); return TyKind::Error.intern(Interner); @@ -168,7 +167,6 @@ impl ProjectionElem { TyKind::Error.intern(Interner) }), TyKind::Closure(id, subst) => closure_field(*id, subst, *f), - TyKind::Alias(inner) => inner.clone().intern(Interner), _ => { never!("Only tuple or closure has tuple or closure field"); return TyKind::Error.intern(Interner);