@@ -52,7 +52,7 @@ use crate::{
52
52
FnSubst , ImplTrait , ImplTraitId , ImplTraits , Interner , Lifetime , LifetimeData ,
53
53
LifetimeOutlives , PlaceholderIndex , PolyFnSig , ProgramClause , ProjectionTy ,
54
54
QuantifiedWhereClause , QuantifiedWhereClauses , Substitution , TraitEnvironment , TraitRef ,
55
- TraitRefExt , Ty , TyBuilder , TyKind , VariableKind , VariableKinds , WhereClause , all_super_traits,
55
+ TraitRefExt , Ty , TyBuilder , TyKind , VariableKinds , WhereClause , all_super_traits,
56
56
chalk_db:: generic_predicate_to_inline_bound,
57
57
consteval:: { intern_const_ref, path_to_const, unknown_const, unknown_const_as_generic} ,
58
58
db:: HirDatabase ,
@@ -519,15 +519,7 @@ impl<'a> TyLoweringContext<'a> {
519
519
520
520
let assoc_type_binders = VariableKinds :: from_iter (
521
521
Interner ,
522
- method_generics. iter_id ( ) . map ( |param_id| match param_id {
523
- GenericParamId :: TypeParamId ( _) => {
524
- VariableKind :: Ty ( chalk_ir:: TyVariableKind :: General )
525
- }
526
- GenericParamId :: ConstParamId ( param_id) => {
527
- VariableKind :: Const ( self . db . const_param_ty ( param_id) )
528
- }
529
- GenericParamId :: LifetimeParamId ( _) => VariableKind :: Lifetime ,
530
- } ) ,
522
+ variable_kinds_from_generics ( self . db , method_generics. iter_id ( ) ) ,
531
523
) ;
532
524
533
525
let returned_subst = self . subst_for_generics ( ) ;
0 commit comments