Skip to content

Commit 0881e3e

Browse files
committed
Exhaustivelly match TyKind in consider_builtin_async_destruct_candidate
1 parent e239e73 commit 0881e3e

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/solve/normalizes_to

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for NormalizesTo<'tcx> {
855855
goal.predicate.self_ty()
856856
),
857857

858-
_ => bug!(
858+
ty::Pat(..) | ty::Dynamic(..) | ty::Coroutine(..) | ty::CoroutineWitness(..) => bug!(
859859
"`consider_builtin_async_destruct_candidate` is not yet implemented for type: {self_ty:?}"
860860
),
861861
};

0 commit comments

Comments
 (0)