File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments