Skip to content

Commit 164d42c

Browse files
committed
manually normalize alias
1 parent 425d68f commit 164d42c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

crates/hir-ty/src/next_solver/interner.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,7 @@ impl<'db> inherent::AdtDef<DbInterner<'db>> for AdtDef {
626626
fn struct_tail_ty(
627627
self,
628628
interner: DbInterner<'db>,
629-
) -> Option<EarlyBinder<DbInterner<'db>, <DbInterner<'db> as rustc_type_ir::Interner>::Ty>>
630-
{
629+
) -> Option<EarlyBinder<DbInterner<'db>, Ty<'db>>> {
631630
let db = interner.db();
632631
let hir_def::AdtId::StructId(struct_id) = self.inner().id else {
633632
return None;
@@ -641,10 +640,7 @@ impl<'db> inherent::AdtDef<DbInterner<'db>> for AdtDef {
641640
fn all_field_tys(
642641
self,
643642
interner: DbInterner<'db>,
644-
) -> EarlyBinder<
645-
DbInterner<'db>,
646-
impl IntoIterator<Item = <DbInterner<'db> as rustc_type_ir::Interner>::Ty>,
647-
> {
643+
) -> EarlyBinder<DbInterner<'db>, impl IntoIterator<Item = Ty<'db>>> {
648644
let db = interner.db();
649645
// FIXME: this is disabled just to match the behavior with chalk right now
650646
let field_tys = |id: VariantId| {
@@ -682,8 +678,7 @@ impl<'db> inherent::AdtDef<DbInterner<'db>> for AdtDef {
682678
self,
683679
interner: DbInterner<'db>,
684680
sizedness: SizedTraitKind,
685-
) -> Option<EarlyBinder<DbInterner<'db>, <DbInterner<'db> as rustc_type_ir::Interner>::Ty>>
686-
{
681+
) -> Option<EarlyBinder<DbInterner<'db>, Ty<'db>>> {
687682
if self.is_struct() {
688683
let tail_ty = self.all_field_tys(interner).skip_binder().into_iter().last()?;
689684

0 commit comments

Comments
 (0)