From f2445fb5075fa35d9b387d40bf6053007e63361e Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Sat, 21 Jul 2018 18:47:02 -0700 Subject: Rename `Catch` variants to `TryBlock` (Not `Try` since `QuestionMark` is using that.) --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') 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 -- cgit 1.4.1-3-g733a5