diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-04 12:33:49 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-04 12:33:49 +1000 |
| commit | f9c2a454fd1d632ea90718306f7250e2b0db2514 (patch) | |
| tree | c4917ca26a6a82cc2e42ab6d8a7305070d723130 /compiler | |
| parent | a124fb3cb7291d75872934f411d81fe298379ace (diff) | |
Visit the ident in `PreciseCapturingNonLifetimeArg`.
It's currently skipped, presumably by accident.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir/src/intravisit.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_hir/src/intravisit.rs b/compiler/rustc_hir/src/intravisit.rs index b9932a7334e..d12050ea4bb 100644 --- a/compiler/rustc_hir/src/intravisit.rs +++ b/compiler/rustc_hir/src/intravisit.rs @@ -1333,8 +1333,9 @@ pub fn walk_precise_capturing_arg<'v, V: Visitor<'v>>( match *arg { PreciseCapturingArg::Lifetime(lt) => visitor.visit_lifetime(lt), PreciseCapturingArg::Param(param) => { - let PreciseCapturingNonLifetimeArg { hir_id, ident: _, res: _ } = param; - visitor.visit_id(hir_id) + let PreciseCapturingNonLifetimeArg { hir_id, ident, res: _ } = param; + try_visit!(visitor.visit_id(hir_id)); + visitor.visit_ident(ident) } } } |
