diff options
| author | Without Boats <boats@mozilla.com> | 2018-05-16 22:55:18 -0700 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-06-21 22:29:47 -0700 |
| commit | 18ff7d091a07706b87c131bf3efc226993916f88 (patch) | |
| tree | 733af2f6f405efc1f1c3f79471a61c9c1d128cd4 /src/rustllvm/RustWrapper.cpp | |
| parent | 4b17d31f1147f840231c43b1ac1478a497af20df (diff) | |
| download | rust-18ff7d091a07706b87c131bf3efc226993916f88.tar.gz rust-18ff7d091a07706b87c131bf3efc226993916f88.zip | |
Parse async fn header.
This is gated on edition 2018 & the `async_await` feature gate. The parser will accept `async fn` and `async unsafe fn` as fn items. Along the same lines as `const fn`, only `async unsafe fn` is permitted, not `unsafe async fn`.The parser will not accept `async` functions as trait methods. To do a little code clean up, four fields of the function type struct have been merged into the new `FnHeader` struct: constness, asyncness, unsafety, and ABI. Also, a small bug in HIR printing is fixed: it previously printed `const unsafe fn` as `unsafe const fn`, which is grammatically incorrect.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
