Skip to content

Commit 6aa0631

Browse files
committed
Remove P<> from visit_local
1 parent 7390470 commit 6aa0631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_ast/src/mut_visit.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub trait MutVisitor: Sized {
254254
walk_parenthesized_parameter_data(self, p);
255255
}
256256

257-
fn visit_local(&mut self, l: &mut P<Local>) {
257+
fn visit_local(&mut self, l: &mut Local) {
258258
walk_local(self, l);
259259
}
260260

@@ -675,8 +675,8 @@ fn walk_parenthesized_parameter_data<T: MutVisitor>(vis: &mut T, args: &mut Pare
675675
vis.visit_span(inputs_span);
676676
}
677677

678-
fn walk_local<T: MutVisitor>(vis: &mut T, local: &mut P<Local>) {
679-
let Local { id, pat, ty, kind, span, colon_sp, attrs, tokens } = local.deref_mut();
678+
fn walk_local<T: MutVisitor>(vis: &mut T, local: &mut Local) {
679+
let Local { id, pat, ty, kind, span, colon_sp, attrs, tokens } = local;
680680
vis.visit_id(id);
681681
visit_attrs(vis, attrs);
682682
vis.visit_pat(pat);

0 commit comments

Comments
 (0)