Fix truncate of 'bound params stack' by using the correct length
This commit is contained in:
parent
f0e99827f8
commit
e559867d86
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue