diff options
| author | varkor <github@varkor.com> | 2019-08-02 11:02:08 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-08-04 20:13:37 +0100 |
| commit | 8aa45c65d897570696830ea0675fa2faa989c536 (patch) | |
| tree | 79e51869df46d4fc4b6e8ad253c46a0fe59e66df /src/libsyntax/ast.rs | |
| parent | 460072ebeed5a2463109894592ac172b47cdfb74 (diff) | |
| download | rust-8aa45c65d897570696830ea0675fa2faa989c536.tar.gz rust-8aa45c65d897570696830ea0675fa2faa989c536.zip | |
Rename `ItemKind::Ty` to `ItemKind::TyAlias`
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 246c8f4b91f..c8fb19f9eb5 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -2345,7 +2345,7 @@ pub enum ItemKind { /// A type alias (`type` or `pub type`). /// /// E.g., `type Foo = Bar<u8>;`. - Ty(P<Ty>, Generics), + TyAlias(P<Ty>, Generics), /// An opaque `impl Trait` type alias. /// /// E.g., `type Foo = impl Bar + Boo;`. @@ -2402,7 +2402,7 @@ impl ItemKind { ItemKind::Mod(..) => "module", ItemKind::ForeignMod(..) => "foreign module", ItemKind::GlobalAsm(..) => "global asm", - ItemKind::Ty(..) => "type alias", + ItemKind::TyAlias(..) => "type alias", ItemKind::OpaqueTy(..) => "opaque type", ItemKind::Enum(..) => "enum", ItemKind::Struct(..) => "struct", |
