Store optional label in Expr::Block
diff --git a/tests/test_asyncness.rs b/tests/test_asyncness.rs
index 9cb7300..b73537b 100644
--- a/tests/test_asyncness.rs
+++ b/tests/test_asyncness.rs
@@ -59,6 +59,7 @@
output: ReturnType::Default,
body: Box::new(Expr::Block(ExprBlock {
attrs: vec![],
+ label: None,
block: Block {
brace_token: Default::default(),
stmts: vec![],
diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs
index dd8edea..a85bf27 100644
--- a/tests/test_precedence.rs
+++ b/tests/test_precedence.rs
@@ -228,12 +228,6 @@
impl Folder for BracketsFolder {
fn fold_expr(&mut self, e: P<Expr>) -> P<Expr> {
e.map(|e| match e.node {
- ExprKind::Block(_, label) if label.is_some() => Expr {
- id: ast::DUMMY_NODE_ID,
- node: ExprKind::Paren(P(e)),
- span: DUMMY_SP,
- attrs: ThinVec::new(),
- },
ExprKind::If(..) | ExprKind::Block(..) | ExprKind::IfLet(..) => {
fold::noop_fold_expr(e, self)
}