From f2445fb5075fa35d9b387d40bf6053007e63361e Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Sat, 21 Jul 2018 18:47:02 -0700 Subject: Rename `Catch` variants to `TryBlock` (Not `Try` since `QuestionMark` is using that.) --- src/libsyntax_pos/hygiene.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax_pos') 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", }) -- cgit 1.4.1-3-g733a5