From 0881e3e531b6fd879107d754f1e807cd591f2d48 Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Mon, 22 Apr 2024 15:41:08 +0300 Subject: [PATCH] Exhaustivelly match TyKind in consider_builtin_async_destruct_candidate --- compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs b/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs index e4d961a7f0c..7dda3411806 100644 --- a/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs +++ b/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs @@ -855,7 +855,7 @@ fn consider_builtin_async_destruct_candidate( 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:?}" ), };