mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Exhaustivelly match TyKind in consider_builtin_async_destruct_candidate
This commit is contained in:
parent
e239e73a77
commit
0881e3e531
|
@ -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:?}"
|
||||
),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue