We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2ffa4 commit dd0f41fCopy full SHA for dd0f41f
compiler/rustc_middle/src/ty/sty.rs
@@ -2436,8 +2436,9 @@ impl<'tcx> Ty<'tcx> {
2436
},
2437
2438
// "Bound" types appear in canonical queries when the
2439
- // closure type is not yet known
2440
- Bound(..) | Param(_) | Infer(_) => None,
+ // closure type is not yet known, and `Placeholder` and `Param`
+ // may be encountered in generic `AsyncFnKindHelper` goals.
2441
+ Bound(..) | Placeholder(_) | Param(_) | Infer(_) => None,
2442
2443
Error(_) => Some(ty::ClosureKind::Fn),
2444
0 commit comments