diff options
Diffstat (limited to 'src/libsyntax_pos/hygiene.rs')
| -rw-r--r-- | src/libsyntax_pos/hygiene.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs index 1365ac396ff..6dd910fba82 100644 --- a/src/libsyntax_pos/hygiene.rs +++ b/src/libsyntax_pos/hygiene.rs @@ -489,6 +489,10 @@ pub enum CompilerDesugaringKind { DotFill, QuestionMark, Catch, + /// Desugaring of an `impl Trait` in return type position + /// to an `existential type Foo: Trait;` + replacing the + /// `impl Trait` with `Foo`. + ExistentialReturnType, } impl CompilerDesugaringKind { @@ -498,6 +502,7 @@ impl CompilerDesugaringKind { DotFill => "...", QuestionMark => "?", Catch => "do catch", + ExistentialReturnType => "existental type", }; Symbol::intern(s) } |
