]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51580 - cramertj:async-await, r=eddyb
authorbors <bors@rust-lang.org>
Sat, 23 Jun 2018 09:02:45 +0000 (09:02 +0000)
committerbors <bors@rust-lang.org>
Sat, 23 Jun 2018 09:02:45 +0000 (09:02 +0000)
async/await

This PR implements `async`/`await` syntax for `async fn` in Rust 2015 and `async` closures and `async` blocks in Rust 2018 (tracking issue: https://github.com/rust-lang/rust/issues/50547). Limitations: non-`move` async closures with arguments are currently not supported, nor are `async fn` with multiple different input lifetimes. These limitations are not fundamental and will be removed in the future, however I'd like to go ahead and get this PR merged so we can start experimenting with this in combination with futures 0.3.

Based on https://github.com/rust-lang/rust/pull/51414.
cc @petrochenkov for parsing changes.
r? @eddyb

1  2 
src/librustc/middle/resolve_lifetime.rs
src/libsyntax/parse/mod.rs
src/libsyntax/parse/parser.rs

Simple merge
Simple merge