diff options
| author | bors <bors@rust-lang.org> | 2019-08-04 20:03:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-04 20:03:28 +0000 |
| commit | d3f8a0b5dfddfe443d9db1f1da18348dbceb0e47 (patch) | |
| tree | d878818a562a332fbb4f63b954c69bcb0621c72d /src/libsyntax/ext | |
| parent | f01b9f803b59f170f5dabaaa8aedc96abe45bfea (diff) | |
| parent | fd819d02d7bf4f93d0b06849b9f0984a85281956 (diff) | |
| download | rust-d3f8a0b5dfddfe443d9db1f1da18348dbceb0e47.tar.gz rust-d3f8a0b5dfddfe443d9db1f1da18348dbceb0e47.zip | |
Auto merge of #63213 - varkor:itemkind-tyalias, r=Centril
Rename `ItemKind::Ty` to `ItemKind::TyAlias` The current name is not entirely clear without context and `TyAlias` is consistent with `ItemKind::TraitAlias`.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index b4b15ba31b7..59e13fdc8f1 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -858,7 +858,7 @@ impl<'a> ExtCtxt<'a> { pub fn item_ty_poly(&self, span: Span, name: Ident, ty: P<ast::Ty>, generics: Generics) -> P<ast::Item> { - self.item(span, name, Vec::new(), ast::ItemKind::Ty(ty, generics)) + self.item(span, name, Vec::new(), ast::ItemKind::TyAlias(ty, generics)) } pub fn item_ty(&self, span: Span, name: Ident, ty: P<ast::Ty>) -> P<ast::Item> { |
