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 5ae7c98 commit 177d4cdCopy full SHA for 177d4cd
compiler/rustc_ast/src/visitors.rs
@@ -234,6 +234,8 @@ macro_rules! make_ast_visitor {
234
($t: ty) => { if_mut_ty!(P<$t>, $t) }
235
}
236
237
+ // TODO: if still unused, remove
238
+ #[allow(unused)]
239
macro_rules! deref_P {
240
($p: expr) => { if_mut_expr!($p.deref_mut(), $p) }
241
@@ -564,9 +566,9 @@ macro_rules! make_ast_visitor {
564
566
565
567
pub fn walk_fn_decl<$($lt,)? V: $trait$(<$lt>)?>(
568
vis: &mut V,
- decl: ref_t!(P!(FnDecl))
569
+ decl: ref_t!(FnDecl)
570
) -> result!(V) {
- let FnDecl { inputs, output } = deref_P!(decl);
571
+ let FnDecl { inputs, output } = decl;
572
visit_list!(vis, visit_param, flat_map_param, inputs);
573
try_v!(vis.visit_fn_ret_ty(output));
574
return_result!(V)
0 commit comments