about summary refs log tree commit diff
path: root/src/libsyntax_pos/hygiene.rs
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_pos/hygiene.rs
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_pos/hygiene.rs')
-rw-r--r--src/libsyntax_pos/hygiene.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs
index 670fd5b872d..56901917450 100644
--- a/src/libsyntax_pos/hygiene.rs
+++ b/src/libsyntax_pos/hygiene.rs
@@ -595,7 +595,7 @@ impl ExpnFormat {
 #[derive(Clone, Copy, Hash, Debug, PartialEq, Eq, RustcEncodable, RustcDecodable)]
 pub enum CompilerDesugaringKind {
     QuestionMark,
-    Catch,
+    TryBlock,
     /// Desugaring of an `impl Trait` in return type position
     /// to an `existential type Foo: Trait;` + replacing the
     /// `impl Trait` with `Foo`.
@@ -609,7 +609,7 @@ impl CompilerDesugaringKind {
         Symbol::intern(match self {
             CompilerDesugaringKind::Async => "async",
             CompilerDesugaringKind::QuestionMark => "?",
-            CompilerDesugaringKind::Catch => "do catch",
+            CompilerDesugaringKind::TryBlock => "do catch",
             CompilerDesugaringKind::ExistentialReturnType => "existential type",
             CompilerDesugaringKind::ForLoop => "for loop",
         })