Exhaustivelly match TyKind in consider_builtin_async_destruct_candidate

This commit is contained in:
Daria Sukhonina 2024-04-22 15:41:08 +03:00
parent e239e73a77
commit 0881e3e531

View File

@ -855,7 +855,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for NormalizesTo<'tcx> {
goal.predicate.self_ty() goal.predicate.self_ty()
), ),
_ => bug!( ty::Pat(..) | ty::Dynamic(..) | ty::Coroutine(..) | ty::CoroutineWitness(..) => bug!(
"`consider_builtin_async_destruct_candidate` is not yet implemented for type: {self_ty:?}" "`consider_builtin_async_destruct_candidate` is not yet implemented for type: {self_ty:?}"
), ),
}; };