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

Add detailed error explanation for E0501 #33294

Merged
merged 1 commit into from
May 5, 2016
Merged

Conversation

timothy-mcroy
Copy link

#32777

r? @GuillaumeGomez

Bring on the nits!

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

the closure goes out of scope.

Example of erroneous code:
```compile_fail
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need an extra line before the code block.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed.

@timothy-mcroy
Copy link
Author

@GuillaumeGomez - request for more critiques.

capturing.

Example of erroneous code:
```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.

Missing empty line before this one.

@GuillaumeGomez
Copy link
Member

It's globally good except for the few nits I reported. Also, could try to rewrite a bit the initial explanation please? Like I said, a lot of words are repeated and it makes the reading a bit harder than necessary.

Thanks!

@timothy-mcroy
Copy link
Author

I think I took care of the repetition problem. Let me know if it's still not up to snuff!

@GuillaumeGomez
Copy link
Member

The new explanation is good. Just remaining a nit to fix (the missing empty line) and we're good to merge! Once fixed, don't forget to squash your commits please.

@timothy-mcroy
Copy link
Author

Alright. I squashed the commits after fixing the missing empty line. Right after pushing, I noticed another missing newline and had to do it again. 😦

@GuillaumeGomez
Copy link
Member

All good. Thanks for your work!

r=me @steveklabnik

@steveklabnik
Copy link
Member

@bors: r=GuillaumeGomez rollup

@bors
Copy link
Contributor

bors commented May 2, 2016

📌 Commit 3f49920 has been approved by GuillaumeGomez

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 2, 2016
Add detailed error explanation for E0501

r? @GuillaumeGomez

Bring on the nits!
Manishearth added a commit to Manishearth/rust that referenced this pull request May 3, 2016
Add detailed error explanation for E0501

r? @GuillaumeGomez

Bring on the nits!
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
@bors bors merged commit 3f49920 into rust-lang:master May 5, 2016
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.

7 participants