diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-07-21 20:59:44 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-08-19 16:53:05 -0700 |
| commit | 9e64ce179903e610197e1d201a53471e9feb69f2 (patch) | |
| tree | 54c5857eb12273f67b7b92d03dff6cf3f5cfb4e2 /src/libsyntax/print | |
| parent | 1c906093f93ca55994bded24fa0f9c99b8d1a681 (diff) | |
Parse try blocks with the try keyword instead of do catch placeholder
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f8d01fee950..14e7b08172b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2380,7 +2380,7 @@ impl<'a> State<'a> { self.s.word("?")? } ast::ExprKind::TryBlock(ref blk) => { - self.head("do catch")?; + self.head("try")?; self.s.space()?; self.print_block_with_attrs(blk, attrs)? } |
