diff options
| author | Michael Goulet <michael@errs.io> | 2024-02-11 22:09:28 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-11 22:09:52 +0000 | 
| commit | 87816378ab4190583df1b74bcfeacb8bc5dd4d70 (patch) | |
| tree | 72a32b37b738880a4f89bea4421bd8886b79c9eb /compiler/rustc_const_eval/src/interpret/util.rs | |
| parent | cb024ba6e386242c5bea20fcc613c7edbc48f290 (diff) | |
| download | rust-87816378ab4190583df1b74bcfeacb8bc5dd4d70.tar.gz rust-87816378ab4190583df1b74bcfeacb8bc5dd4d70.zip  | |
Fix async closures in CTFE
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/util.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/util.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/util.rs b/compiler/rustc_const_eval/src/interpret/util.rs index 416443f5f4d..52b79203d2b 100644 --- a/compiler/rustc_const_eval/src/interpret/util.rs +++ b/compiler/rustc_const_eval/src/interpret/util.rs @@ -34,6 +34,7 @@ where match *ty.kind() { ty::Param(_) => ControlFlow::Break(FoundParam), ty::Closure(def_id, args) + | ty::CoroutineClosure(def_id, args, ..) | ty::Coroutine(def_id, args, ..) | ty::FnDef(def_id, args) => { let instance = ty::InstanceDef::Item(def_id);  | 
