ret.extend(build_impls(cx, did));
clean::EnumItem(build_enum(cx, did))
}
+ Def::TyForeign(did) => {
+ record_extern_fqn(cx, did, clean::TypeKind::Foreign);
+ ret.extend(build_impls(cx, did));
+ clean::ForeignTypeItem
+ }
// Never inline enum variants but leave them shown as reexports.
Def::Variant(..) => return None,
// Assume that enum variants and struct types are reexported next to
}
}
- // If this is a defaulted impl, then bail out early here
- if tcx.is_default_impl(did) {
+ // If this is an auto impl, then bail out early here
+ if tcx.is_auto_impl(did) {
return ret.push(clean::Item {
- inner: clean::DefaultImplItem(clean::DefaultImpl {
+ inner: clean::AutoImplItem(clean::AutoImpl {
// FIXME: this should be decoded
unsafety: hir::Unsafety::Normal,
trait_: match associated_trait.as_ref().unwrap().clean(cx) {