Teach typeck/borrowck/solvers how to deal with async closures
This commit is contained in:
@@ -822,6 +822,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||
let upvar_args = match closure_ty.kind() {
|
||||
ty::Closure(_, args) => ty::UpvarArgs::Closure(args),
|
||||
ty::Coroutine(_, args) => ty::UpvarArgs::Coroutine(args),
|
||||
ty::CoroutineClosure(_, args) => ty::UpvarArgs::CoroutineClosure(args),
|
||||
_ => return,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user