about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorWithout Boats <boats@mozilla.com>2018-05-16 22:55:18 -0700
committerTaylor Cramer <cramertj@google.com>2018-06-21 22:29:47 -0700
commit18ff7d091a07706b87c131bf3efc226993916f88 (patch)
tree733af2f6f405efc1f1c3f79471a61c9c1d128cd4 /src/test/incremental/thinlto
parent4b17d31f1147f840231c43b1ac1478a497af20df (diff)
downloadrust-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/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions