Skip to content

Commit 87969ff

Browse files
authored
Rollup merge of #141999 - nnethercote:precise-ident, r=compiler-errors
Visit the ident in `PreciseCapturingNonLifetimeArg`. It's currently skipped, presumably by accident. r? `@BoxyUwU`
2 parents 23ba088 + f9c2a45 commit 87969ff

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)