We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b17d5 commit 98b8d5bCopy full SHA for 98b8d5b
compiler/rustc_ast/src/mut_visit.rs
@@ -119,7 +119,7 @@ pub trait MutVisitor: Sized {
119
walk_flat_map_item(self, i)
120
}
121
122
- fn visit_fn_decl(&mut self, d: &mut P<FnDecl>) {
+ fn visit_fn_decl(&mut self, d: &mut FnDecl) {
123
walk_fn_decl(self, d);
124
125
@@ -898,8 +898,8 @@ fn walk_fn<T: MutVisitor>(vis: &mut T, kind: FnKind<'_>) {
898
899
900
901
-fn walk_fn_decl<T: MutVisitor>(vis: &mut T, decl: &mut P<FnDecl>) {
902
- let FnDecl { inputs, output } = decl.deref_mut();
+fn walk_fn_decl<T: MutVisitor>(vis: &mut T, decl: &mut FnDecl) {
+ let FnDecl { inputs, output } = decl;
903
inputs.flat_map_in_place(|param| vis.flat_map_param(param));
904
walk_fn_ret_ty(vis, output);
905
0 commit comments