Rename ItemKind::Ty to ItemKind::TyAlias

This commit is contained in:
varkor 2019-08-02 11:02:08 +01:00
parent 460072ebee
commit 8aa45c65d8
31 changed files with 52 additions and 52 deletions

View file

@ -1397,7 +1397,7 @@ impl<'l, 'tcx> Visitor<'l> for DumpVisitor<'l, 'tcx> {
self.process_mod(item);
visit::walk_mod(self, m);
}
Ty(ref ty, ref ty_params) => {
TyAlias(ref ty, ref ty_params) => {
let qualname = format!("::{}",
self.tcx.def_path_str(self.tcx.hir().local_def_id_from_node_id(item.id)));
let value = ty_to_string(&ty);

View file

@ -438,7 +438,7 @@ impl Sig for ast::Item {
refs: vec![],
})
}
ast::ItemKind::Ty(ref ty, ref generics) => {
ast::ItemKind::TyAlias(ref ty, ref generics) => {
let text = "type ".to_owned();
let mut sig = name_and_generics(text, offset, generics, self.id, self.ident, scx)?;