Skip to content

Commit 822d6dc

Browse files
committed
Fix compile error in rustdoc.
1 parent 7660d6b commit 822d6dc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Diff for: src/librustdoc/clean/mod.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -1892,15 +1892,8 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
18921892
TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))),
18931893
// Rustdoc handles `TyKind::Err`s by turning them into `Type::Infer`s.
18941894
TyKind::Infer | TyKind::Err(_) | TyKind::Typeof(..) | TyKind::InferDelegation(..) => Infer,
1895-
TyKind::AnonAdt(item_id) => {
1896-
let path = external_path(
1897-
cx,
1898-
item_id.owner_id.def_id.to_def_id(),
1899-
false,
1900-
ThinVec::new(),
1901-
ty::Binder::dummy(ty::GenericArgs::empty()),
1902-
);
1903-
Type::Path { path }
1895+
TyKind::AnonAdt(..) => {
1896+
unimplemented!("Anonymous structs or unions are not supported yet")
19041897
}
19051898
}
19061899
}

0 commit comments

Comments
 (0)