Commit Graph

2043 Commits

Author SHA1 Message Date
David Tolnay
bf752ef807
Update generated code 2019-07-28 17:21:10 -07:00
David Tolnay
7eab8a8e35
Reserve attributes in pattern syntax tree 2019-07-28 17:20:22 -07:00
David Tolnay
fd09409800
Update generated code 2019-07-28 17:14:52 -07:00
David Tolnay
ae32af4b4d
Split FnArg and ClosureArg data structures 2019-07-28 17:14:52 -07:00
David Tolnay
d67149e7a4
Fix attr parsing without clone-impls 2019-07-28 16:43:21 -07:00
David Tolnay
865f1e62f0
Update generated code 2019-07-28 16:40:26 -07:00
David Tolnay
e80823d46e
Collapse Item::Macro2 rules into one tokenstream 2019-07-28 16:40:17 -07:00
David Tolnay
d85c6302c9
Remove unused attribute parsing code 2019-07-28 16:31:07 -07:00
David Tolnay
28eec8e9c1
Update Meta::Path snapshots 2019-07-28 16:03:22 -07:00
David Tolnay
d6c7db3edf
Update generated code 2019-07-28 16:03:22 -07:00
David Tolnay
a7e6f4366a
Parse paths in Meta
Closes #597.
2019-07-28 16:03:20 -07:00
David Tolnay
478e97c208
Sort the variants of Pat 2019-07-28 15:27:11 -07:00
David Tolnay
6ecf1f2f30
Eliminate Token![await] from generated fold.rs
To work with rustc 1.31 - 1.35.
2019-07-28 15:20:46 -07:00
David Tolnay
8e30f8860f
Update use of first() in trace-var 2019-07-28 14:27:22 -07:00
David Tolnay
669b56a377
Unpin nightly for rustfmt build
Issue has been fixed.
2019-07-28 14:26:11 -07:00
David Tolnay
2486a08cf9
Update generated code with leading verts 2019-07-28 14:25:38 -07:00
David Tolnay
c4fc63048b
Add leading vert for Local and ExprLet 2019-07-28 14:24:24 -07:00
David Tolnay
0669515990
Update generated code with multiple patterns in for-loop 2019-07-28 14:08:04 -07:00
David Tolnay
f16c7d42c8
Allow multiple patterns in for-loop 2019-07-28 14:07:15 -07:00
David Tolnay
5ab472f351
Update codegen parse to handle new first/last 2019-07-28 14:07:15 -07:00
David Tolnay
da4c75f218
Fix detection of trailing ... in variadic ItemFn 2019-07-28 13:58:34 -07:00
David Tolnay
d919fb64d6
Change Punctuated::first/last/last_mut to return T only 2019-07-28 13:43:53 -07:00
David Tolnay
015b523650
Work around await in macro_rules bug 2019-07-28 13:37:22 -07:00
David Tolnay
1a95070dd4
Use color-backtrace in codegen crate 2019-07-28 13:34:01 -07:00
David Tolnay
8eb5e9df69
Merge pull request #676 from dtolnay/await
Add expr variant for dot-await syntax
2019-07-28 12:11:15 -07:00
David Tolnay
c2b156941d
Add snapshot test for parsing await expr 2019-07-28 11:48:19 -07:00
David Tolnay
c1a86a1a95
Parse await expression 2019-07-28 11:44:00 -07:00
David Tolnay
31117d2c96
Codegen for await expression 2019-07-28 11:38:49 -07:00
David Tolnay
67a5df2c81
Add expr variant for await expression 2019-07-28 11:38:00 -07:00
David Tolnay
366b80c80f
Add token type for await keyword 2019-07-28 11:37:36 -07:00
David Tolnay
cf702cb699
Run codegen to pick up sorted variants 2019-07-28 11:37:05 -07:00
David Tolnay
8f7c5cd376
Parse extern crate as underscore 2019-07-28 11:28:23 -07:00
David Tolnay
d872b82f19
Sort the variants of Expr 2019-07-28 11:23:16 -07:00
David Tolnay
6d2e8dae20
Sort the variants of Item 2019-07-28 11:18:21 -07:00
David Tolnay
13054dcba9
Sort the variants of Type 2019-07-28 11:16:15 -07:00
David Tolnay
997527b904
Update unicode-xid to unicode 12.1.0 2019-07-28 11:12:47 -07:00
David Tolnay
425359f581
Remove Attribute::interpret_meta 2019-07-28 11:11:28 -07:00
David Tolnay
9b98fcec15
Remove FnArg::Ignored variant 2019-07-28 11:04:23 -07:00
David Tolnay
375a3bf324
Update test suite to nightly-2019-07-28 2019-07-28 11:01:04 -07:00
David Tolnay
a2b60c5ac5
Pin the right travis build for rustfmt 2019-07-28 09:49:54 -07:00
David Tolnay
9e46aef491
Implement IntoIterator for Fields 2019-07-28 09:44:03 -07:00
David Tolnay
dedd1dbfa8
Remove P type parameter of punctuated::IntoIter 2019-07-28 09:42:12 -07:00
David Tolnay
d34d4c04b5
Format with rustfmt 2919-07-16 2019-07-28 09:38:02 -07:00
David Tolnay
4e687bddef
Exclude Token macro from rustfmt 2019-07-28 09:37:29 -07:00
David Tolnay
9a765c61d5
Revert "Adjust codegen's parse of Token macro"
This reverts commit fa15450b37.
2019-07-28 09:06:57 -07:00
David Tolnay
776c364230
Rename tts to tokens in syntax tree 2019-07-28 09:06:57 -07:00
David Tolnay
0d22ab974d
Temporarily pin to a nightly that can build rustfmt 2019-07-28 08:56:32 -07:00
David Tolnay
a8bdedc85b
Take argument of Path::is_ident as reference
The common usage of path.is_ident("...") is not affected, but this
enables path.is_ident(&ident) which wasn't possible before due to that
PartialEq impl being absent.
2019-07-27 23:27:04 -07:00
David Tolnay
e7173e7ead
Remove build.rs from publish
There are no longer cfgs that need to be enabled based on compiler
version. The only cfg is for running `cargo test` from a clone of the
git repo. We can avoid publishing build.rs to save ~1 second of compile
time when compiling syn as a dependency.
2019-07-27 23:22:36 -07:00
David Tolnay
91b211fe1c
Remove parsing of rustc minor version 2019-07-27 23:21:48 -07:00