diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-10-13 07:33:34 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-10-13 07:33:34 +0000 |
| commit | 3df9afcae781c2d9db5a2cb9acde9be5ae753285 (patch) | |
| tree | 1078a18d67f7d2c5dc52c0314be0ba3f9f725c75 | |
| parent | 2a9217601c0e5ae83fa8bca6797137a6d2f7e4e5 (diff) | |
| download | rust-3df9afcae781c2d9db5a2cb9acde9be5ae753285.tar.gz rust-3df9afcae781c2d9db5a2cb9acde9be5ae753285.zip | |
rustdoc: don't ICE on `TyKind::Typeof`
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 8d556a962d9..7f82dfbd3d6 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1543,8 +1543,7 @@ 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 => Infer, - TyKind::Typeof(..) => panic!("unimplemented type {:?}", ty.kind), + TyKind::Infer | TyKind::Err | TyKind::Typeof(..) => Infer, } } |
