@@ -20,8 +20,8 @@ use crate::{
2020 GenericPredicates ,
2121 db:: HirDatabase ,
2222 next_solver:: {
23- Clause , Clauses , DbInterner , EarlyBinder , GenericArgs , ParamEnv , StoredEarlyBinder ,
24- StoredTy , TraitRef , Ty , TyKind , fold:: fold_tys, generics:: Generics ,
23+ AliasTy , Clause , Clauses , DbInterner , EarlyBinder , GenericArgs , ParamEnv ,
24+ StoredEarlyBinder , StoredTy , TraitRef , Ty , TyKind , fold:: fold_tys, generics:: Generics ,
2525 } ,
2626} ;
2727
@@ -342,7 +342,7 @@ fn extend_assoc_type_bounds<'db>(
342342 type Result = ( ) ;
343343
344344 fn visit_ty ( & mut self , t : Ty < ' db > ) -> Self :: Result {
345- if let TyKind :: Alias ( AliasTyKind :: Projection , _ ) = t. kind ( ) {
345+ if let TyKind :: Alias ( AliasTy { kind : AliasTyKind :: Projection { .. } , .. } ) = t. kind ( ) {
346346 self . assoc_type_bounds . push (
347347 TraitRef :: new_from_args (
348348 self . interner ,
@@ -546,49 +546,49 @@ struct WithGenerics<'a, T: Trait, const N: usize>(&'a [T; N], T::Assoc);
546546 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
547547 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
548548 Clause(Binder { value: TraitPredicate(#1: Debug, polarity:Positive), bound_vars: [] })
549- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Debug, polarity:Positive), bound_vars: [] })
549+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Debug, polarity:Positive), bound_vars: [] })
550550
551551 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
552552 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
553553 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
554554 Clause(Binder { value: TraitPredicate(#1: Clone, polarity:Positive), bound_vars: [] })
555- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Clone, polarity:Positive), bound_vars: [] })
555+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Clone, polarity:Positive), bound_vars: [] })
556556
557557 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
558558 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
559559 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
560560 Clause(Binder { value: TraitPredicate(#1: Copy, polarity:Positive), bound_vars: [] })
561- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Copy, polarity:Positive), bound_vars: [] })
561+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Copy, polarity:Positive), bound_vars: [] })
562562
563563 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
564564 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
565565 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
566566 Clause(Binder { value: TraitPredicate(#1: PartialEq<[#1]>, polarity:Positive), bound_vars: [] })
567- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): PartialEq<[Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. })]>, polarity:Positive), bound_vars: [] })
567+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): PartialEq<[Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. })]>, polarity:Positive), bound_vars: [] })
568568
569569 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
570570 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
571571 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
572572 Clause(Binder { value: TraitPredicate(#1: Eq, polarity:Positive), bound_vars: [] })
573- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Eq, polarity:Positive), bound_vars: [] })
573+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Eq, polarity:Positive), bound_vars: [] })
574574
575575 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
576576 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
577577 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
578578 Clause(Binder { value: TraitPredicate(#1: PartialOrd<[#1]>, polarity:Positive), bound_vars: [] })
579- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): PartialOrd<[Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. })]>, polarity:Positive), bound_vars: [] })
579+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): PartialOrd<[Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. })]>, polarity:Positive), bound_vars: [] })
580580
581581 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
582582 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
583583 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
584584 Clause(Binder { value: TraitPredicate(#1: Ord, polarity:Positive), bound_vars: [] })
585- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Ord, polarity:Positive), bound_vars: [] })
585+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Ord, polarity:Positive), bound_vars: [] })
586586
587587 Clause(Binder { value: TraitPredicate(#1: Trait, polarity:Positive), bound_vars: [] })
588588 Clause(Binder { value: ConstArgHasType(#2, usize), bound_vars: [] })
589589 Clause(Binder { value: TraitPredicate(#1: Sized, polarity:Positive), bound_vars: [] })
590590 Clause(Binder { value: TraitPredicate(#1: Hash, polarity:Positive), bound_vars: [] })
591- Clause(Binder { value: TraitPredicate(Alias(Projection, AliasTy { args: [#1], def_id: TypeAliasId("Assoc"), .. }): Hash, polarity:Positive), bound_vars: [] })
591+ Clause(Binder { value: TraitPredicate(Alias(AliasTy { args: [#1], kind: Projection { def_id: TypeAliasId("Assoc") } , .. }): Hash, polarity:Positive), bound_vars: [] })
592592
593593 "# ] ] ,
594594 ) ;
0 commit comments