about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2018-07-21 20:59:44 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2018-08-19 16:53:05 -0700
commit9e64ce179903e610197e1d201a53471e9feb69f2 (patch)
tree54c5857eb12273f67b7b92d03dff6cf3f5cfb4e2 /src/libsyntax_pos
parent1c906093f93ca55994bded24fa0f9c99b8d1a681 (diff)
downloadrust-9e64ce179903e610197e1d201a53471e9feb69f2.tar.gz
rust-9e64ce179903e610197e1d201a53471e9feb69f2.zip
Parse try blocks with the try keyword instead of do catch placeholder
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/hygiene.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs
index 56901917450..364c640debb 100644
--- a/src/libsyntax_pos/hygiene.rs
+++ b/src/libsyntax_pos/hygiene.rs
@@ -609,7 +609,7 @@ impl CompilerDesugaringKind {
         Symbol::intern(match self {
             CompilerDesugaringKind::Async => "async",
             CompilerDesugaringKind::QuestionMark => "?",
-            CompilerDesugaringKind::TryBlock => "do catch",
+            CompilerDesugaringKind::TryBlock => "try block",
             CompilerDesugaringKind::ExistentialReturnType => "existential type",
             CompilerDesugaringKind::ForLoop => "for loop",
         })