remove unused derives and variants

This commit is contained in:
Andy Russell 2019-06-26 21:15:13 -04:00
parent d3e2cec292
commit e991abd004
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
7 changed files with 56 additions and 68 deletions

View file

@ -737,9 +737,6 @@ fn fmt_type(t: &clean::Type, f: &mut fmt::Formatter<'_>, use_absolute: bool) ->
}
}
}
clean::Unique(..) => {
panic!("should have been cleaned")
}
}
}

View file

@ -110,7 +110,6 @@ impl From<clean::TypeKind> for ItemType {
clean::TypeKind::Module => ItemType::Module,
clean::TypeKind::Static => ItemType::Static,
clean::TypeKind::Const => ItemType::Constant,
clean::TypeKind::Variant => ItemType::Variant,
clean::TypeKind::Typedef => ItemType::Typedef,
clean::TypeKind::Foreign => ItemType::ForeignType,
clean::TypeKind::Macro => ItemType::Macro,

View file

@ -5188,9 +5188,6 @@ fn collect_paths_for_type(first_ty: clean::Type) -> Vec<String> {
clean::Type::Array(ty, _) => {
work.push_back(*ty);
},
clean::Type::Unique(ty) => {
work.push_back(*ty);
},
clean::Type::RawPointer(_, ty) => {
work.push_back(*ty);
},