Skip to content

Issue 28157 bad semicolon #29215

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
Oct 24, 2015
Merged

Conversation

fhahn
Copy link
Contributor

@fhahn fhahn commented Oct 21, 2015

PR for #28157. At the moment, rustc emits a warning when a bare semicolon is encountered (could also be a fail, but I think this is a backwards incompatible change).

Also I am not sure where the best place for a test for that warning would be. Seems run-pass tests do not check warnings.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@fhahn fhahn force-pushed the issue-28157-bad-semicolon branch from 5c9d218 to ca784f3 Compare October 21, 2015 21:53
@alexcrichton
Copy link
Member

As a language change, I think that this may want some more visibility before moving forward. I would personally consider 28157 as "wontfix", but I'm sure others will have opinions as well!

@fhahn fhahn force-pushed the issue-28157-bad-semicolon branch 2 times, most recently from 4f1f989 to bcd4400 Compare October 23, 2015 22:35
@fhahn fhahn force-pushed the issue-28157-bad-semicolon branch from bcd4400 to 107b4aa Compare October 23, 2015 22:35
@fhahn
Copy link
Contributor Author

fhahn commented Oct 23, 2015

I've updated the PR to just include the commit that removes a few bare semicolons. I did not end up removing semicolons from macros.

@alexcrichton
Copy link
Member

@bors: r+ 1e62bd2

Thanks!

bors added a commit that referenced this pull request Oct 24, 2015
PR for #28157. At the moment, `rustc` emits a warning when a bare semicolon is encountered (could also be a fail, but I think this is a backwards incompatible change).

Also I am not sure where the best place for a test for that warning would be. Seems run-pass tests do not check warnings.
@bors
Copy link
Collaborator

bors commented Oct 24, 2015

⌛ Testing commit 1e62bd2 with merge 8d86d1a...

@bors bors merged commit 1e62bd2 into rust-lang:master Oct 24, 2015
@fhahn fhahn deleted the issue-28157-bad-semicolon branch October 26, 2015 16:32
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.

4 participants