Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f4b5c7c

Browse files
committed
Auto merge of rust-lang#15291 - rust-lang:revert-15288-15143, r=lnicola
Revert "Handle TyAlias in projected_ty" Reverts rust-lang/rust-analyzer#15288
2 parents 996e054 + 467f5f4 commit f4b5c7c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/hir-ty/src/mir.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ impl<V, T> ProjectionElem<V, T> {
151151
TyKind::Adt(_, subst) => {
152152
db.field_types(f.parent)[f.local_id].clone().substitute(Interner, subst)
153153
}
154-
TyKind::Alias(inner) => inner.clone().intern(Interner),
155154
_ => {
156155
never!("Only adt has field");
157156
return TyKind::Error.intern(Interner);
@@ -168,7 +167,6 @@ impl<V, T> ProjectionElem<V, T> {
168167
TyKind::Error.intern(Interner)
169168
}),
170169
TyKind::Closure(id, subst) => closure_field(*id, subst, *f),
171-
TyKind::Alias(inner) => inner.clone().intern(Interner),
172170
_ => {
173171
never!("Only tuple or closure has tuple or closure field");
174172
return TyKind::Error.intern(Interner);

0 commit comments

Comments
 (0)