diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-03-27 18:56:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 18:56:19 +0200 |
| commit | 5cbb08db006e9746d0843e0387e5629777322367 (patch) | |
| tree | c9ea0928369da15daf082eb9d125a64d439be33b | |
| parent | 809dd77b8001f69bd5202f73d016f9ac8426b69e (diff) | |
| parent | 3ef194c14cda52c36110a02d7b812371d7b99884 (diff) | |
| download | rust-5cbb08db006e9746d0843e0387e5629777322367.tar.gz rust-5cbb08db006e9746d0843e0387e5629777322367.zip | |
Rollup merge of #109354 - Swatinem:rm-closureid, r=compiler-errors
Remove the `NodeId` of `ast::ExprKind::Async` This is a followup to https://github.com/rust-lang/rust/pull/104833#pullrequestreview-1314537416. 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.
| -rw-r--r-- | src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 7273402ec76..ac96bedf2fe 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -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 { |
