Fix truncate of 'bound params stack' by using the correct length

This commit is contained in:
Audun Halland 2021-09-29 03:18:56 +02:00
parent f0e99827f8
commit e559867d86

View file

@ -377,7 +377,7 @@ fn find_type_parameters(
trait_ref: &'a ast::PolyTraitRef,
modifier: &'a ast::TraitBoundModifier,
) {
let stack_len = trait_ref.bound_generic_params.len();
let stack_len = self.bound_generic_params_stack.len();
self.bound_generic_params_stack
.extend(trait_ref.bound_generic_params.clone().into_iter());