]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/builder.rs
Use VariableKinds in Binders
[rust.git] / crates / hir_ty / src / builder.rs
index 372621f73786d734a29dfce43506e2aa444d0470..7b8603fd77e1475cd8cbd7b9004a8b897f0b37bf 100644 (file)
@@ -194,7 +194,7 @@ pub fn build(self) -> ProjectionTy {
 
 impl<T: TypeWalk + HasInterner<Interner = Interner>> TyBuilder<Binders<T>> {
     fn subst_binders(b: Binders<T>) -> Self {
-        let param_count = b.num_binders;
+        let param_count = b.binders.len(&Interner);
         TyBuilder::new(b, param_count)
     }