rust/compiler/rustc_hir
Matthias Krüger 967085ecdf
Rollup merge of #105250 - Swatinem:async-rm-resumety, r=oli-obk
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.

fixes https://github.com/rust-lang/rust/issues/104828 and https://github.com/rust-lang/rust/pull/104321#issuecomment-1336363077

r? `@oli-obk`
2022-12-06 16:54:54 +01:00
..
src Rollup merge of #105250 - Swatinem:async-rm-resumety, r=oli-obk 2022-12-06 16:54:54 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00