about summary refs log tree commit diff
path: root/src/libsyntax/fold.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-03-14 10:40:09 +0000
committerbors <bors@rust-lang.org>2017-03-14 10:40:09 +0000
commit6f10e2f63de720468e2b4bfcb275e4b90b1f9870 (patch)
tree11f51d7f07c5a74ab22e20b7f3556c4c0191fe66 /src/libsyntax/fold.rs
parentfa53235cc4364fe085ccba720237d19b669c2f8b (diff)
parentb1aa99352a69e328094e096bbbd1741b68c0667f (diff)
downloadrust-6f10e2f63de720468e2b4bfcb275e4b90b1f9870.tar.gz
rust-6f10e2f63de720468e2b4bfcb275e4b90b1f9870.zip
Auto merge of #39921 - cramertj:add-catch-to-ast, r=nikomatsakis
Add catch {} to AST

Part of #39849. Builds on #39864.
Diffstat (limited to 'src/libsyntax/fold.rs')
-rw-r--r--src/libsyntax/fold.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs
index aa968f03d68..9f11d0173d6 100644
--- a/src/libsyntax/fold.rs
+++ b/src/libsyntax/fold.rs
@@ -1269,6 +1269,7 @@ pub fn noop_fold_expr<T: Folder>(Expr {id, node, span, attrs}: Expr, folder: &mu
                 };
             }
             ExprKind::Try(ex) => ExprKind::Try(folder.fold_expr(ex)),
+            ExprKind::Catch(body) => ExprKind::Catch(folder.fold_block(body)),
         },
         id: folder.new_id(id),
         span: folder.new_span(span),