]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #62241 - Centril:fix-async-unsafe-order, r=petrochenkov
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 30 Jun 2019 19:57:30 +0000 (21:57 +0200)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2019 19:57:30 +0000 (21:57 +0200)
Always parse 'async unsafe fn' + properly ban in 2015

Parse `async unsafe fn` not `unsafe async fn` in implementations. We also take the opportunity to properly ban `async fn` in Rust 2015 when they are inside implementations.

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

cc https://github.com/rust-lang/rust/pull/61319, https://github.com/rust-lang/rust/issues/62121, and https://github.com/rust-lang/rust/issues/62149.

r? @petrochenkov


Trivial merge