Skip to content

Conversation

@alexcrichton
Copy link
Collaborator

This adds support for yield expressions as added in rust-lang/rust#43076

@alexcrichton alexcrichton requested a review from mystor July 10, 2017 16:48
(pub struct Use => "use"),
(pub struct Where => "where"),
(pub struct While => "while"),
(pub struct Yield => "yield"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we consider adding more tokens here for other keywords reserved for future use? It seems weird that we had to add this to our tokens list when it was already a reserved keyword in rust.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems fine to me yeah!

@alexcrichton alexcrichton merged commit 5640be2 into dtolnay:master Jul 10, 2017
@alexcrichton alexcrichton deleted the yield branch July 10, 2017 17:01
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.

2 participants