summary refs log tree commit diff
path: root/src/libsyntax/print
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/print
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/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 54ce06f61ef..f8d01fee950 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -2379,7 +2379,7 @@ impl<'a> State<'a> {
                 self.print_expr_maybe_paren(e, parser::PREC_POSTFIX)?;
                 self.s.word("?")?
             }
-            ast::ExprKind::Catch(ref blk) => {
+            ast::ExprKind::TryBlock(ref blk) => {
                 self.head("do catch")?;
                 self.s.space()?;
                 self.print_block_with_attrs(blk, attrs)?