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. |
||
|---|---|---|
| .. | ||
| tt | ||
| base.rs | ||
| build.rs | ||
| derive.rs | ||
| expand.rs | ||
| placeholders.rs | ||
| quote.rs | ||
| source_util.rs | ||