-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove special casing for old obsolete syntax #21088
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
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -33,7 +33,6 @@ pub mod attr; | |||
|
|||
pub mod common; | |||
pub mod classify; | |||
pub mod obsolete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may not want to remove this module entirely, it's a useful pattern which we can continue to move obsolete parsing to over time. The contents of the module can certainly be trimmed down, however.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about it... Do you think this module will be useful after reaching post 1.0, when no backwards-incompatible changes are allowed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it'd be useful at all after 1.0, but we may make some more syntax tweaks in the period before 1.0 where this would still be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I guess we would also want to keep the latest special cases (enum variants: ClosureType, ForSized, Sized, ProcType, ProcExpr). I will update the PR with this changes.
Thanks for the feedback!
@alexcrichton @sfackler I have updated the PR! |
@@ -4454,13 +4395,6 @@ impl<'a> Parser<'a> { | |||
eself | |||
} | |||
token::Tilde => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this whole arm can be deleted actually
Thanks! Just one small nit and otherwise r=me |
@alexcrichton Done! |
Only the most recent changes (since November 2014) get a special error. Fixes rust-lang#20599
Only the most recent changes (since November 2014) get a special error.
Fixes #20599