diff options
Diffstat (limited to 'crates/hir_ty/src/builder.rs')
-rw-r--r-- | crates/hir_ty/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/builder.rs b/crates/hir_ty/src/builder.rs index 372621f73..7b8603fd7 100644 --- a/crates/hir_ty/src/builder.rs +++ b/crates/hir_ty/src/builder.rs | |||
@@ -194,7 +194,7 @@ impl TyBuilder<TypeAliasId> { | |||
194 | 194 | ||
195 | impl<T: TypeWalk + HasInterner<Interner = Interner>> TyBuilder<Binders<T>> { | 195 | impl<T: TypeWalk + HasInterner<Interner = Interner>> TyBuilder<Binders<T>> { |
196 | fn subst_binders(b: Binders<T>) -> Self { | 196 | fn subst_binders(b: Binders<T>) -> Self { |
197 | let param_count = b.num_binders; | 197 | let param_count = b.binders.len(&Interner); |
198 | TyBuilder::new(b, param_count) | 198 | TyBuilder::new(b, param_count) |
199 | } | 199 | } |
200 | 200 | ||