Skip to content

Commit

Permalink
Revert "Handle TyAlias in projected_ty"
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola authored Jul 16, 2023
1 parent 996e054 commit 467f5f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/hir-ty/src/mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ impl<V, T> ProjectionElem<V, T> {
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);
Expand All @@ -168,7 +167,6 @@ impl<V, T> ProjectionElem<V, T> {
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);
Expand Down

0 comments on commit 467f5f4

Please sign in to comment.