]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #66935 - petrochenkov:attrtok2, r=Centril
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 3 Dec 2019 10:07:05 +0000 (11:07 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2019 10:07:05 +0000 (11:07 +0100)
syntax: Unify macro and attribute arguments in AST

The unified form (`ast::MacArgs`) represents parsed arguments instead of an unstructured token stream that was previously used for attributes.
It also tracks some spans and delimiter kinds better for fn-like macros and macro definitions.

I've been talking about implementing this with @nnethercote in https://github.com/rust-lang/rust/pull/65750#issuecomment-546517322.
The parsed representation is closer to `MetaItem` and requires less token juggling during conversions, so it potentially may be faster.

r? @Centril


No differences found