libsyntax: forbid visibility modifiers for enum variants#28440
Closed
matklad wants to merge 1 commit intorust-lang:masterfrom
Closed
libsyntax: forbid visibility modifiers for enum variants#28440matklad wants to merge 1 commit intorust-lang:masterfrom
matklad wants to merge 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
src/test/compile-fail/issue-28433.rs
Outdated
Contributor
Author
There was a problem hiding this comment.
How can I run this this test fater than make -j8 check?
Member
There was a problem hiding this comment.
I’d suggest waiting for travis build to finish for now.
Otherwise the fastest way without editing makefiles is to do make -j8 check-stage2-cfail TESTNAME=issue-28433 I think.
Member
|
cc @alexcrichton not sure if we'd want to warn for a bit before adjusting the parser. |
Member
|
I've started a crater build to help evaluate the impact here. I personally be fine just turning this into a hard error immediately and sending PRs to any affected crates to update the syntax. cc @rust-lang/lang, a semi-language-change but mostly just a bugfix |
nagisa
added a commit
to nagisa/rust
that referenced
this pull request
Sep 17, 2015
Member
bors
added a commit
that referenced
this pull request
Sep 18, 2015
Followup on #28440 Do not merge before the referenced PR is merged. I will fix the PR once that is merged (or close if it is not)
Kha
added a commit
to Kha/rustfmt
that referenced
this pull request
Sep 19, 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #28433
This just removes visibility parsing from the parser. No custom error message is provided: I guess default "expected identifier, found keyword
pub" is already good.So the
ast::Variant_visis alwaysInherited. I guess it would be possible to get rid of this field now, but I'm not sure that it is in scope of this PR.The tests are changed as follows: