Commit Graph

2637 Commits

Author SHA1 Message Date
David Tolnay
8a2a0d6fc6
Remove extern crate proc_macro from docs 2020-06-09 20:46:54 -07:00
David Tolnay
fc21110dd3
Add link from Parse trait doc to parse module 2020-06-09 20:39:01 -07:00
David Tolnay
ec205a83fd
Release 1.0.31 2020-06-09 20:27:52 -07:00
David Tolnay
a3b67e4212
Merge pull request #849 from dtolnay/eparse
Rewrite parse_without_eager_brace doc with clarification of grammar ambiguity
2020-06-09 20:27:16 -07:00
David Tolnay
a03ec12122
Rewrite parse_without_eager_brace doc with better examples 2020-06-09 20:16:39 -07:00
David Tolnay
e2a5120572
Merge pull request #848 from udoprog/parse-without-eager-brace
Make expr_no_struct public as Expr::parse_without_eager_brace
2020-06-09 20:16:30 -07:00
John-John Tedro
2a9200dfaf Make expr_no_struct public as Expr::parse_without_eager_brace
Allows for parsing custom macro content in various places.

Fixes #515, #789
2020-06-08 18:47:06 +02:00
David Tolnay
cf76afd114
Update test suite to nightly-2020-06-01 2020-05-31 19:34:23 -07:00
David Tolnay
89658fc242
Release 1.0.30 2020-05-31 10:08:59 -07:00
David Tolnay
dd68696574
Merge pull request 843 from Aaron1011/feature/multiple-empty 2020-05-30 22:05:43 -07:00
Aaron Hill
405f1bb90c
Handle multiple nested None-delimited groups
When rust-lang/rust#72388 re-lands, we may accumulate several 'layers'
of `None`-delimited groups. This commit ensures that we 'unwrap' all of
the layers, allowing consumers to avoid needing to handle these cases.
2020-05-30 21:54:37 -04:00
David Tolnay
7a81558977
Merge pull request #842 from dtolnay/group
Parse Expr::Struct containing None-delimited ident name
2020-05-30 16:44:20 -07:00
David Tolnay
d300698d53
Parse Expr::Struct containing None-delimited ident name 2020-05-30 16:12:51 -07:00
David Tolnay
44c523ad16
Add test for struct init expr containing macro metavariable 2020-05-30 16:12:15 -07:00
David Tolnay
46a183d334
Resolve match_wildcard_for_single_variants pedantic lints 2020-05-29 19:13:16 -07:00
David Tolnay
b30011c1ff
Release 1.0.29 2020-05-29 18:56:46 -07:00
David Tolnay
d97a10964c
Merge pull request #839 from dtolnay/ty
Parse Type::Path containing None-delimited group segment
2020-05-29 16:57:51 -07:00
David Tolnay
ad937a6776
Parse Type::Path containing None-delimited group segment 2020-05-29 16:23:59 -07:00
David Tolnay
d9e61a5ebe
Add test for Type containing macro metavariable 2020-05-29 16:23:28 -07:00
David Tolnay
03d11c95b1
Merge pull request #838 from dtolnay/macro
Parse macro call expr with None-delimited path
2020-05-29 16:18:25 -07:00
David Tolnay
6f215cc590
Parse macro call expr with None-delimited path 2020-05-29 16:08:23 -07:00
David Tolnay
db6569cc38
Add test for macro call expr with macro metavariable 2020-05-29 16:08:03 -07:00
David Tolnay
0ba7272585
Release 1.0.28 2020-05-29 09:20:01 -07:00
David Tolnay
f45b2d8fea
Merge pull request #836 from dtolnay/vis
Parse empty None-delimited group as inherited visibility
2020-05-29 00:35:19 -07:00
David Tolnay
98c6b8a5aa
Parse empty None-delimited group as inherited visibility 2020-05-29 00:23:43 -07:00
David Tolnay
e8b896a6f5
Add test with empty group $vis visibility 2020-05-29 00:23:43 -07:00
David Tolnay
66116435ca
Update rustc used for codegen build 2020-05-26 15:56:55 -07:00
David Tolnay
535bed0e57
Collapse Verbatim representation in snapshot tests 2020-05-26 15:42:39 -07:00
David Tolnay
fb242347db
Release 1.0.27 2020-05-26 15:23:21 -07:00
David Tolnay
e1139e37a4
Wrap long token streams in tests 2020-05-26 15:23:00 -07:00
David Tolnay
680ebee419
Make TokenStream explicit in snapshot tests 2020-05-26 15:23:00 -07:00
David Tolnay
8496c33eec
Merge pull request #834 from dtolnay/group
Parse trailer exprs where the lhs is a Group
2020-05-26 15:22:47 -07:00
David Tolnay
b247d62faf
Remove fixed fixme 2020-05-26 15:11:47 -07:00
David Tolnay
aa6052b0ad
Update Group attrs snapshot 2020-05-26 15:11:38 -07:00
David Tolnay
be29b2585b
Respect precedence around Group when parsing attrs 2020-05-26 15:11:14 -07:00
David Tolnay
81394dd5ad
Add test for attributes surrounding group expr 2020-05-26 15:08:46 -07:00
David Tolnay
c144538e05
Add snapshot test for group with trailer expr 2020-05-26 15:07:43 -07:00
David Tolnay
7caca26653
Parse trailer exprs where the lhs is a Group 2020-05-26 15:07:42 -07:00
David Tolnay
ee9747cb0f
Add test for fn call with interpolated fn name 2020-05-26 15:07:42 -07:00
David Tolnay
0b9d0df041
Clean up path test using quote 2020-05-26 15:07:33 -07:00
David Tolnay
33d56ca9d1
Add snapshot tests for interpolated leading component 2020-05-26 14:35:59 -07:00
David Tolnay
243142aed1
Release 1.0.26 2020-05-26 11:34:21 -07:00
David Tolnay
2cd1223fcb
Fix bad copy/paste in test_path 2020-05-26 11:34:02 -07:00
David Tolnay
de24d5979d
Merge pull request #832 from dtolnay/group
Parse macro metavariable in leading component of path
2020-05-26 11:32:44 -07:00
David Tolnay
ee81d0641e
Add a sponsors link 2020-05-26 11:25:57 -07:00
David Tolnay
855536a260
Parse macro metavariable in leading component of path 2020-05-26 11:21:27 -07:00
David Tolnay
1283daca8e
Add test for path with interpolated leading component 2020-05-26 11:21:26 -07:00
David Tolnay
6d5c90ddf7
Update test suite to nightly-2020-05-26 2020-05-25 20:22:08 -07:00
David Tolnay
8e9bf86480
Release 1.0.25 2020-05-25 12:15:27 -07:00
David Tolnay
cb04cea5ad
Merge pull request #831 from dtolnay/test
Don't make playground try to build `--features test`
2020-05-25 12:14:47 -07:00