Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for yield expressions #186

Merged
merged 1 commit into from
Jul 10, 2017
Merged

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
@@ -190,6 +190,7 @@ tokens! {
(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