From c8ead2e693a22fe94c6b3edeb3f49c7e6aec3912 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Tue, 31 Jan 2023 22:13:25 +0100 Subject: [PATCH 1/9] Remove the `NodeId` of `ast::ExprKind::Async` --- compiler/rustc_ast/src/ast.rs | 10 +-- compiler/rustc_ast/src/mut_visit.rs | 3 +- compiler/rustc_ast/src/visit.rs | 2 +- compiler/rustc_ast_lowering/src/expr.rs | 77 +++++++++---------- compiler/rustc_ast_lowering/src/item.rs | 7 +- .../rustc_ast_pretty/src/pprust/state/expr.rs | 2 +- .../src/assert/context.rs | 2 +- compiler/rustc_lint/src/early.rs | 3 +- compiler/rustc_parse/src/parser/expr.rs | 2 +- compiler/rustc_resolve/src/def_collector.rs | 4 +- .../clippy_lints/src/redundant_async_block.rs | 2 +- .../src/suspicious_operation_groupings.rs | 2 +- .../clippy/clippy_utils/src/ast_utils.rs | 2 +- src/tools/rustfmt/src/expr.rs | 2 +- 14 files changed, 56 insertions(+), 64 deletions(-) diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 5d164bc4b3cf5..ab8b7f632e8ef 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1426,13 +1426,9 @@ pub enum ExprKind { Block(P, Option