We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f86ac59 commit 7945d60Copy full SHA for 7945d60
compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs
@@ -172,7 +172,11 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
172
hir::CoroutineDesugaring::Async | hir::CoroutineDesugaring::AsyncGen,
173
_,
174
)) => (),
175
- _ => return,
+ None
176
+ | Some(
177
+ hir::CoroutineKind::Coroutine(_)
178
+ | hir::CoroutineKind::Desugared(hir::CoroutineDesugaring::Gen, _),
179
+ ) => return,
180
}
181
182
if let ObligationCauseCode::CompareImplItem { .. } = cause.code() {
0 commit comments