Skip to content

Commit f9c2a45

Browse files
committed
Visit the ident in PreciseCapturingNonLifetimeArg.
It's currently skipped, presumably by accident.
1 parent a124fb3 commit f9c2a45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_hir/src/intravisit.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,9 @@ pub fn walk_precise_capturing_arg<'v, V: Visitor<'v>>(
13331333
match *arg {
13341334
PreciseCapturingArg::Lifetime(lt) => visitor.visit_lifetime(lt),
13351335
PreciseCapturingArg::Param(param) => {
1336-
let PreciseCapturingNonLifetimeArg { hir_id, ident: _, res: _ } = param;
1337-
visitor.visit_id(hir_id)
1336+
let PreciseCapturingNonLifetimeArg { hir_id, ident, res: _ } = param;
1337+
try_visit!(visitor.visit_id(hir_id));
1338+
visitor.visit_ident(ident)
13381339
}
13391340
}
13401341
}

0 commit comments

Comments
 (0)