We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddef5b6 commit 76018cdCopy full SHA for 76018cd
compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs
@@ -1101,13 +1101,14 @@ impl ConstructorSet {
1101
| ty::Dynamic(_, _, _)
1102
| ty::Closure(_, _)
1103
| ty::Coroutine(_, _, _)
1104
- | ty::CoroutineWitness(_, _)
1105
| ty::Alias(_, _)
1106
| ty::Param(_)
1107
| ty::Bound(_, _)
1108
| ty::Placeholder(_)
1109
- | ty::Infer(_)
1110
| ty::Error(_) => Self::Unlistable,
+ ty::CoroutineWitness(_, _) | ty::Infer(_) => {
+ bug!("Encountered unexpected type in `ConstructorSet::for_ty`: {ty:?}")
1111
+ }
1112
}
1113
1114
0 commit comments