mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Revert "Handle TyAlias in projected_ty"
This commit is contained in:
parent
996e054f1e
commit
467f5f418e
1 changed files with 0 additions and 2 deletions
|
@ -151,7 +151,6 @@ impl<V, T> ProjectionElem<V, T> {
|
||||||
TyKind::Adt(_, subst) => {
|
TyKind::Adt(_, subst) => {
|
||||||
db.field_types(f.parent)[f.local_id].clone().substitute(Interner, 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");
|
never!("Only adt has field");
|
||||||
return TyKind::Error.intern(Interner);
|
return TyKind::Error.intern(Interner);
|
||||||
|
@ -168,7 +167,6 @@ impl<V, T> ProjectionElem<V, T> {
|
||||||
TyKind::Error.intern(Interner)
|
TyKind::Error.intern(Interner)
|
||||||
}),
|
}),
|
||||||
TyKind::Closure(id, subst) => closure_field(*id, subst, *f),
|
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");
|
never!("Only tuple or closure has tuple or closure field");
|
||||||
return TyKind::Error.intern(Interner);
|
return TyKind::Error.intern(Interner);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue