]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69033 - jonas-schievink:resume-with-context, r=tmandry
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 21 Mar 2020 04:33:15 +0000 (05:33 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Mar 2020 04:33:15 +0000 (05:33 +0100)
commitef7c8a158f5bb36e3f5b96eacc196061e8ab9d10
treef480ee62934374e6458d5da35bf480d2e60336a2
parent4b91729df22015bd412f6fc0fa397785d1e2159c
parentdb0126a7c251f4cca39ad4c50527e88c97190992
Rollup merge of #69033 - jonas-schievink:resume-with-context, r=tmandry

Use generator resume arguments in the async/await lowering

This removes the TLS requirement from async/await and enables it in `#![no_std]` crates.

Closes https://github.com/rust-lang/rust/issues/56974

I'm not confident the HIR lowering is completely correct, there seem to be quite a few undocumented invariants in there. The `async-std` and tokio test suites are passing with these changes though.
src/librustc_ast_lowering/item.rs
src/librustc_ast_lowering/lib.rs
src/librustc_span/symbol.rs