Skip to content

Commit 5cbb08d

Browse files
Rollup merge of rust-lang#109354 - Swatinem:rm-closureid, r=compiler-errors
Remove the `NodeId` of `ast::ExprKind::Async` This is a followup to rust-lang#104833 (review). In my original attempt, I was using `LoweringContext::expr`, which was not correct as it creates a fresh `DefId`. It now uses the correct `DefId` for the wrapping `Expr`, and also makes forwarding `#[track_caller]` attributes more explicit.
2 parents 809dd77 + 3ef194c commit 5cbb08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ pub(crate) fn format_expr(
366366
))
367367
}
368368
}
369-
ast::ExprKind::Async(capture_by, _node_id, ref block) => {
369+
ast::ExprKind::Async(capture_by, ref block) => {
370370
let mover = if capture_by == ast::CaptureBy::Value {
371371
"move "
372372
} else {

0 commit comments

Comments
 (0)