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

tweak let_and_return diagnostic #4137

Merged
merged 1 commit into from
May 27, 2019
Merged

tweak let_and_return diagnostic #4137

merged 1 commit into from
May 27, 2019

Conversation

euclio
Copy link
Contributor

@euclio euclio commented May 24, 2019

changelog: let_and_return: label the unnecessary let binding and convert the note to a structured
suggestion

Label the unnecessary let binding and convert the note to structured
suggestion.
|
note: this expression can be directly returned
--> $DIR/let_return.rs:12:17
LL |
Copy link
Contributor

Choose a reason for hiding this comment

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

heh, I guess we should teach rustc not to print whitespace only or empty lines

@oli-obk
Copy link
Contributor

oli-obk commented May 25, 2019

@bors r+

@bors
Copy link
Contributor

bors commented May 25, 2019

📌 Commit effea41 has been approved by oli-obk

@bors
Copy link
Contributor

bors commented May 25, 2019

⌛ Testing commit effea41 with merge da808a4...

bors added a commit that referenced this pull request May 25, 2019
tweak `let_and_return` diagnostic

changelog: `let_and_return`: label the unnecessary let binding and convert the note to a structured
suggestion
@bors
Copy link
Contributor

bors commented May 25, 2019

💔 Test failed - status-appveyor

@flip1995
Copy link
Member

@bors retry

bors added a commit that referenced this pull request May 27, 2019
tweak `let_and_return` diagnostic

changelog: `let_and_return`: label the unnecessary let binding and convert the note to a structured
suggestion
@bors
Copy link
Contributor

bors commented May 27, 2019

⌛ Testing commit effea41 with merge 7b501f0...

@bors
Copy link
Contributor

bors commented May 27, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 7b501f0 to master...

@bors bors merged commit effea41 into rust-lang:master May 27, 2019
@euclio euclio deleted the let-return branch May 28, 2019 17:17
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