Skip to content
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

E0269: add suggestion to check for trailing semicolons #33324

Merged
merged 1 commit into from
May 3, 2016

Conversation

birkenfeld
Copy link
Contributor

In situations where the value of the last expression must be inferred,
rustc will not emit the "you might need to remove the semicolon" warning,
so at least note this in the extended description.

Fixes: #30497

@rust-highfive
Copy link
Collaborator

r? @jroesch

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

returning an appropriate value or panicking if necessary. Check if you need
to remove a semicolon from the last expression, like in this case:

```compile_fail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace "compile_fail" by "ignore" please.

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented May 1, 2016

Thanks for your work! Please replace and squash. Then it's good to get merged!

In situations where the value of the last expression must be inferred,
rustc will not emit the "you might need to remove the semicolon" warning,
so at least note this in the extended description.

Fixes: rust-lang#30497
@GuillaumeGomez
Copy link
Member

r=me @steveklabnik

@Manishearth
Copy link
Member

@bors r=GuillaumeGomez

@bors
Copy link
Contributor

bors commented May 2, 2016

📌 Commit 0e89f55 has been approved by GuillaumeGomez

Manishearth added a commit to Manishearth/rust that referenced this pull request May 2, 2016
…Gomez

E0269: add suggestion to check for trailing semicolons

In situations where the value of the last expression must be inferred,
rustc will not emit the "you might need to remove the semicolon" warning,
so at least note this in the extended description.

Fixes: rust-lang#30497
bors added a commit that referenced this pull request May 2, 2016
Rollup of 14 pull requests

- Successful merges: #32756, #33129, #33225, #33260, #33309, #33320, #33323, #33324, #33325, #33330, #33332, #33334, #33335, #33346
- Failed merges:
Manishearth added a commit to Manishearth/rust that referenced this pull request May 3, 2016
…Gomez

E0269: add suggestion to check for trailing semicolons

In situations where the value of the last expression must be inferred,
rustc will not emit the "you might need to remove the semicolon" warning,
so at least note this in the extended description.

Fixes: rust-lang#30497
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #32756, #33129, #33225, #33260, #33309, #33320, #33323, #33324, #33325, #33330, #33332, #33334, #33335, #33346
- Failed merges:
@bors bors merged commit 0e89f55 into rust-lang:master May 3, 2016
@birkenfeld birkenfeld deleted the issue-30497 branch May 3, 2016 07:13
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.

6 participants