Skip to content

Commit 177d4cd

Browse files
committed
Remove P! from walk_fn_decl
1 parent 5ae7c98 commit 177d4cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_ast/src/visitors.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ macro_rules! make_ast_visitor {
234234
($t: ty) => { if_mut_ty!(P<$t>, $t) }
235235
}
236236

237+
// TODO: if still unused, remove
238+
#[allow(unused)]
237239
macro_rules! deref_P {
238240
($p: expr) => { if_mut_expr!($p.deref_mut(), $p) }
239241
}
@@ -564,9 +566,9 @@ macro_rules! make_ast_visitor {
564566

565567
pub fn walk_fn_decl<$($lt,)? V: $trait$(<$lt>)?>(
566568
vis: &mut V,
567-
decl: ref_t!(P!(FnDecl))
569+
decl: ref_t!(FnDecl)
568570
) -> result!(V) {
569-
let FnDecl { inputs, output } = deref_P!(decl);
571+
let FnDecl { inputs, output } = decl;
570572
visit_list!(vis, visit_param, flat_map_param, inputs);
571573
try_v!(vis.visit_fn_ret_ty(output));
572574
return_result!(V)

0 commit comments

Comments
 (0)