about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2018-07-21 18:47:02 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2018-08-19 16:30:53 -0700
commitf2445fb5075fa35d9b387d40bf6053007e63361e (patch)
tree82c5b10a462c2a0ab686b5913d7c8a1c564f8bf9 /src/libsyntax/parse/parser.rs
parentf28f648a9699db67b86735f97d609c3dd06f9ded (diff)
downloadrust-f2445fb5075fa35d9b387d40bf6053007e63361e.tar.gz
rust-f2445fb5075fa35d9b387d40bf6053007e63361e.zip
Rename `Catch` variants to `TryBlock`
(Not `Try` since `QuestionMark` is using that.)
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 345464c6664..fdb9f80b7c6 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3458,7 +3458,7 @@ impl<'a> Parser<'a> {
     {
         let (iattrs, body) = self.parse_inner_attrs_and_block()?;
         attrs.extend(iattrs);
-        Ok(self.mk_expr(span_lo.to(body.span), ExprKind::Catch(body), attrs))
+        Ok(self.mk_expr(span_lo.to(body.span), ExprKind::TryBlock(body), attrs))
     }
 
     // `match` token already eaten