diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-24 22:27:25 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-06 02:22:58 +0000 | 
| commit | a82bae2172499864c12a1d0b412931ad884911f7 (patch) | |
| tree | c7299fdfd83be3818fcffdb86639146c9d29bb69 /compiler/rustc_const_eval/src/transform/validate.rs | |
| parent | c567eddec2c628d4f13707866731e1b2013ad236 (diff) | |
| download | rust-a82bae2172499864c12a1d0b412931ad884911f7.tar.gz rust-a82bae2172499864c12a1d0b412931ad884911f7.zip | |
Teach typeck/borrowck/solvers how to deal with async closures
Diffstat (limited to 'compiler/rustc_const_eval/src/transform/validate.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index d3230a2455d..c4542aaa7b2 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -58,6 +58,7 @@ impl<'tcx> MirPass<'tcx> for Validator { let body_abi = match body_ty.kind() { ty::FnDef(..) => body_ty.fn_sig(tcx).abi(), ty::Closure(..) => Abi::RustCall, + ty::CoroutineClosure(..) => Abi::RustCall, ty::Coroutine(..) => Abi::Rust, _ => { span_bug!(body.span, "unexpected body ty: {:?} phase {:?}", body_ty, mir_phase) | 
