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

@ -2802,7 +2802,7 @@ impl Clean<Type> for hir::Ty {
}
};
if let Some(&hir::ItemKind::Ty(ref ty, ref generics)) = alias {
if let Some(&hir::ItemKind::TyAlias(ref ty, ref generics)) = alias {
let provided_params = &path.segments.last().expect("segments were empty");
let mut ty_substs = FxHashMap::default();
let mut lt_substs = FxHashMap::default();

View file

@ -458,7 +458,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
om.unions.push(self.visit_union_data(item, ident.name, sd, gen)),
hir::ItemKind::Fn(ref fd, header, ref gen, body) =>
self.visit_fn(om, item, ident.name, &**fd, header, gen, body),
hir::ItemKind::Ty(ref ty, ref gen) => {
hir::ItemKind::TyAlias(ref ty, ref gen) => {
let t = Typedef {
ty,
gen,