Skip to content

Remove special casing for old obsolete syntax#21088

Merged
bors merged 2 commits into
rust-lang:masterfrom
aochagavia:obsolete
Jan 16, 2015
Merged

Remove special casing for old obsolete syntax#21088
bors merged 2 commits into
rust-lang:masterfrom
aochagavia:obsolete

Conversation

@aochagavia

Copy link
Copy Markdown
Contributor

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

Fixes #20599

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

Comment thread src/libsyntax/parse/mod.rs Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@alexcrichton @sfackler I have updated the PR!

Comment thread src/libsyntax/parse/parser.rs Outdated

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

Thanks! Just one small nit and otherwise r=me

@aochagavia

Copy link
Copy Markdown
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
lnicola pushed a commit to lnicola/rust that referenced this pull request Nov 24, 2025
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