Skip to content

Commit 6ecb9bf

Browse files
authored
Unrolled build for #141999
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 ff223d3 + f9c2a45 commit 6ecb9bf

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
@@ -1332,8 +1332,9 @@ pub fn walk_precise_capturing_arg<'v, V: Visitor<'v>>(
13321332
match *arg {
13331333
PreciseCapturingArg::Lifetime(lt) => visitor.visit_lifetime(lt),
13341334
PreciseCapturingArg::Param(param) => {
1335-
let PreciseCapturingNonLifetimeArg { hir_id, ident: _, res: _ } = param;
1336-
visitor.visit_id(hir_id)
1335+
let PreciseCapturingNonLifetimeArg { hir_id, ident, res: _ } = param;
1336+
try_visit!(visitor.visit_id(hir_id));
1337+
visitor.visit_ident(ident)
13371338
}
13381339
}
13391340
}

0 commit comments

Comments
 (0)