diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-07-21 18:47:02 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2018-08-19 16:30:53 -0700 |
| commit | f2445fb5075fa35d9b387d40bf6053007e63361e (patch) | |
| tree | 82c5b10a462c2a0ab686b5913d7c8a1c564f8bf9 /src/libsyntax_pos/hygiene.rs | |
| parent | f28f648a9699db67b86735f97d609c3dd06f9ded (diff) | |
| download | rust-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.rs | 4 |
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", }) |
