Skip to content

Commit

Permalink
Rollup merge of #109354 - Swatinem:rm-closureid, r=compiler-errors
Browse files Browse the repository at this point in the history
Remove the `NodeId` of `ast::ExprKind::Async`

This is a followup to rust-lang/rust#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.
  • Loading branch information
GuillaumeGomez committed Mar 27, 2023
2 parents 809dd77 + 3ef194c commit 5cbb08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pub(crate) fn format_expr(
))
}
}
ast::ExprKind::Async(capture_by, _node_id, ref block) => {
ast::ExprKind::Async(capture_by, ref block) => {
let mover = if capture_by == ast::CaptureBy::Value {
"move "
} else {
Expand Down

0 comments on commit 5cbb08d

Please sign in to comment.