rust/src/libsyntax/ext
Without Boats 18ff7d091a 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.
2018-06-21 22:29:47 -07:00
..
tt Enable fall through past $:lifetime matcher 2018-06-10 14:39:16 -07:00
base.rs resolve: Make sure indeterminate and inconsistent macro resolutions always generate errors 2018-05-30 22:21:50 +03:00
build.rs Parse async fn header. 2018-06-21 22:29:47 -07:00
derive.rs Add edition to expansion info 2018-05-17 23:13:08 +03:00
expand.rs Deny #[cfg] and #[cfg_attr] on generic parameters. 2018-06-02 05:11:33 +08:00
placeholders.rs rustc: Correctly pretty-print macro delimiters 2018-05-22 11:56:41 -07:00
quote.rs Represent lifetimes as two joint tokens in proc macros 2018-05-15 23:54:08 +03:00
source_util.rs Replace Rc with Lrc for shared data 2018-03-02 10:48:52 +01:00