Skip to content

Commit

Permalink
old_is_in_param -> old_in_param
Browse files Browse the repository at this point in the history
  • Loading branch information
levi-nz committed Feb 8, 2025
1 parent 4b27d6d commit 307c67d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,10 @@ impl Visit for Analyzer<'_> {
}

fn visit_param(&mut self, param: &Param) {
let old_is_in_param = self.in_param;
let old_in_param = self.in_param;
self.in_param = true;
param.visit_children_with(self);
self.in_param = old_is_in_param;
self.in_param = old_in_param;
}

fn visit_pat(&mut self, p: &Pat) {
Expand Down

0 comments on commit 307c67d

Please sign in to comment.