Skip to content

Commit 3df9afc

Browse files
committed
rustdoc: don't ICE on TyKind::Typeof
1 parent 2a92176 commit 3df9afc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/clean/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
15431543
}
15441544
TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))),
15451545
// Rustdoc handles `TyKind::Err`s by turning them into `Type::Infer`s.
1546-
TyKind::Infer | TyKind::Err => Infer,
1547-
TyKind::Typeof(..) => panic!("unimplemented type {:?}", ty.kind),
1546+
TyKind::Infer | TyKind::Err | TyKind::Typeof(..) => Infer,
15481547
}
15491548
}
15501549

0 commit comments

Comments
 (0)