commit | 0c7fed6e8a9020cbeb4f9bf415f2313cdca37d7e | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Aug 24 15:56:24 2018 -0400 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Aug 24 15:56:42 2018 -0400 |
tree | c9688f17b5edd490551c20167344df0517ceedba | |
parent | 9cc2f0964d4fa1443893f9f50338db5b8b478f77 [diff] [blame] |
Skip try blocks in bracket fold
diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index dd8edea..b272d49 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs
@@ -234,6 +234,12 @@ span: DUMMY_SP, attrs: ThinVec::new(), }, + ExprKind::TryBlock(_) => 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) }