Fix WF for AsyncFnKindHelper in new trait solver
This commit is contained in:
@@ -2436,8 +2436,9 @@ impl<'tcx> Ty<'tcx> {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// "Bound" types appear in canonical queries when the
|
// "Bound" types appear in canonical queries when the
|
||||||
// closure type is not yet known
|
// closure type is not yet known, and `Placeholder` and `Param`
|
||||||
Bound(..) | Param(_) | Infer(_) => None,
|
// may be encountered in generic `AsyncFnKindHelper` goals.
|
||||||
|
Bound(..) | Placeholder(_) | Param(_) | Infer(_) => None,
|
||||||
|
|
||||||
Error(_) => Some(ty::ClosureKind::Fn),
|
Error(_) => Some(ty::ClosureKind::Fn),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user