about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-06 16:54:54 +0100
committerGitHub <noreply@github.com>2022-12-06 16:54:54 +0100
commit967085ecdf589ec92f528c71cfb9ace723cbabb1 (patch)
treecdbe7dfa85f4b4a9ac433c33ba493d7f65d8bf7b /compiler/rustc_interface/src
parent90d84ce3a23063a9c9e10705138e7c9fbcbb24f8 (diff)
parentcf031a3355f677ed1a44e31cbc2b2d84f3cb13b6 (diff)
downloadrust-967085ecdf589ec92f528c71cfb9ace723cbabb1.tar.gz
rust-967085ecdf589ec92f528c71cfb9ace723cbabb1.zip
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`
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions