We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddef5b6 commit c3df51aCopy full SHA for c3df51a
compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs
@@ -1101,13 +1101,12 @@ 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::Bound(_, _) | ty::Placeholder(_) | ty::Infer(_) => {
+ bug!("Encountered unexpected type in `ConstructorSet::for_ty`: {ty:?}")
+ }
1111
}
1112
1113
0 commit comments