diff options
| author | Frank King <frankking1729@gmail.com> | 2024-01-18 14:35:14 +0800 |
|---|---|---|
| committer | Frank King <frankking1729@gmail.com> | 2024-02-12 12:47:31 +0800 |
| commit | 822d6dc5fd01356a8d07cfeb06b2a0a244bfe2da (patch) | |
| tree | 5f5e6e104405b2dba8f030be6ae8da581fd49be5 /src | |
| parent | 7660d6bf2c4e02b4f809b99f35c0f290e6171d45 (diff) | |
| download | rust-822d6dc5fd01356a8d07cfeb06b2a0a244bfe2da.tar.gz rust-822d6dc5fd01356a8d07cfeb06b2a0a244bfe2da.zip | |
Fix compile error in rustdoc.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index b697f945f20..0b705df2a60 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1892,15 +1892,8 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))), // Rustdoc handles `TyKind::Err`s by turning them into `Type::Infer`s. TyKind::Infer | TyKind::Err(_) | TyKind::Typeof(..) | TyKind::InferDelegation(..) => Infer, - TyKind::AnonAdt(item_id) => { - let path = external_path( - cx, - item_id.owner_id.def_id.to_def_id(), - false, - ThinVec::new(), - ty::Binder::dummy(ty::GenericArgs::empty()), - ); - Type::Path { path } + TyKind::AnonAdt(..) => { + unimplemented!("Anonymous structs or unions are not supported yet") } } } |
