Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Dec 24, 2020

No description provided.

@matklad
Copy link
Contributor

matklad commented Dec 24, 2020 via email

T!['{'] => {
T!['['] | T!['('] => {
token_tree(p);
p.expect(T![;]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, TIL.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only {}, []; and (); macro invocations are allowed to produce items, hence you also need the semi here.

@lnicola
Copy link
Member

lnicola commented Dec 24, 2020

bors r+

@lnicola
Copy link
Member

lnicola commented Dec 24, 2020

bors r-

@bors
Copy link
Contributor

bors bot commented Dec 24, 2020

Canceled.

@Veykril
Copy link
Member Author

Veykril commented Dec 24, 2020

bors r=matklad,lnicola

@bors
Copy link
Contributor

bors bot commented Dec 24, 2020

@bors bors bot merged commit 1487f2f into rust-lang:master Dec 24, 2020
@Veykril Veykril deleted the macroparse branch May 20, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants