Skip to content

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

Merged
merged 2 commits into from
Jan 16, 2015
Merged

Remove special casing for old obsolete syntax #21088

merged 2 commits into from
Jan 16, 2015

Conversation

aochagavia
Copy link
Contributor

Only the most recent changes (since November 2014) get a special error.

Fixes #20599

@rust-highfive
Copy link
Contributor

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;
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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!

@aochagavia aochagavia changed the title Remove special casing for obsolete syntax Remove special casing for old obsolete syntax Jan 14, 2015
@aochagavia
Copy link
Contributor Author

@alexcrichton @sfackler I have updated the PR!

@@ -4454,13 +4395,6 @@ impl<'a> Parser<'a> {
eself
}
token::Tilde => {
Copy link
Member

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

@alexcrichton
Copy link
Member

Thanks! Just one small nit and otherwise r=me

@aochagavia
Copy link
Contributor Author

@alexcrichton Done!

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 15, 2015
Only the most recent changes (since November 2014) get a special error.

Fixes rust-lang#20599
@bors bors merged commit b23289e into rust-lang:master Jan 16, 2015
@aochagavia aochagavia deleted the obsolete branch February 13, 2015 13:42
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.

Remove some of the older obsolete syntax things
5 participants