1
Fork 0

Replace usage of ResumeTy in async lowering with Context

Replaces using `ResumeTy` / `get_context` in favor of using `&'static mut Context<'_>`.

Usage of the `'static` lifetime here is technically "cheating", and replaces
the raw pointer in `ResumeTy` and the `get_context` fn that pulls the
correct lifetimes out of thin air.
This commit is contained in:
Arpad Borsos 2022-12-04 12:32:15 +01:00 committed by Arpad Borsos
parent ed61c139c2
commit cf031a3355
No known key found for this signature in database
GPG key ID: 570F20163159CB55
14 changed files with 70 additions and 43 deletions

View file

@ -165,6 +165,7 @@ symbols! {
Capture,
Center,
Clone,
Context,
Continue,
Copy,
Count,
@ -264,7 +265,6 @@ symbols! {
Relaxed,
Release,
Result,
ResumeTy,
Return,
Right,
Rust,
@ -754,7 +754,6 @@ symbols! {
generic_associated_types_extended,
generic_const_exprs,
generic_param_attrs,
get_context,
global_allocator,
global_asm,
globs,