Skip to content

Commit dd0f41f

Browse files
Fix WF for AsyncFnKindHelper in new trait solver
1 parent dc2ffa4 commit dd0f41f

File tree

1 file changed

+3
-2
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+3
-2
lines changed

compiler/rustc_middle/src/ty/sty.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2436,8 +2436,9 @@ impl<'tcx> Ty<'tcx> {
24362436
},
24372437

24382438
// "Bound" types appear in canonical queries when the
2439-
// closure type is not yet known
2440-
Bound(..) | Param(_) | Infer(_) => None,
2439+
// closure type is not yet known, and `Placeholder` and `Param`
2440+
// may be encountered in generic `AsyncFnKindHelper` goals.
2441+
Bound(..) | Placeholder(_) | Param(_) | Infer(_) => None,
24412442

24422443
Error(_) => Some(ty::ClosureKind::Fn),
24432444

0 commit comments

Comments
 (0)