diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-07-21 18:47:02 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-08-19 16:30:53 -0700 |
| commit | f2445fb5075fa35d9b387d40bf6053007e63361e (patch) | |
| tree | 82c5b10a462c2a0ab686b5913d7c8a1c564f8bf9 /src/libsyntax/util | |
| parent | f28f648a9699db67b86735f97d609c3dd06f9ded (diff) | |
| download | rust-f2445fb5075fa35d9b387d40bf6053007e63361e.tar.gz rust-f2445fb5075fa35d9b387d40bf6053007e63361e.zip | |
Rename `Catch` variants to `TryBlock`
(Not `Try` since `QuestionMark` is using that.)
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index 67bc6f947b5..6866806cd7c 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -273,7 +273,7 @@ pub enum ExprPrecedence { Loop, Match, Block, - Catch, + TryBlock, Struct, Async, } @@ -332,7 +332,7 @@ impl ExprPrecedence { ExprPrecedence::Loop | ExprPrecedence::Match | ExprPrecedence::Block | - ExprPrecedence::Catch | + ExprPrecedence::TryBlock | ExprPrecedence::Async | ExprPrecedence::Struct => PREC_PAREN, } |
