Skip to content

Commit 9652937

Browse files
committed
Remove P<> from visit_local
1 parent bb8368f commit 9652937

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_ast/src/mut_visit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub trait MutVisitor: Sized {
222222
walk_parenthesized_parameter_data(self, p);
223223
}
224224

225-
fn visit_local(&mut self, l: &mut P<Local>) {
225+
fn visit_local(&mut self, l: &mut Local) {
226226
walk_local(self, l);
227227
}
228228

@@ -605,8 +605,8 @@ fn walk_parenthesized_parameter_data<T: MutVisitor>(vis: &mut T, args: &mut Pare
605605
vis.visit_span(inputs_span);
606606
}
607607

608-
fn walk_local<T: MutVisitor>(vis: &mut T, local: &mut P<Local>) {
609-
let Local { id, pat, ty, kind, span, colon_sp, attrs, tokens } = local.deref_mut();
608+
fn walk_local<T: MutVisitor>(vis: &mut T, local: &mut Local) {
609+
let Local { id, pat, ty, kind, span, colon_sp, attrs, tokens } = local;
610610
vis.visit_id(id);
611611
visit_attrs(vis, attrs);
612612
vis.visit_pat(pat);

0 commit comments

Comments
 (0)