Skip to content

Conversation

ThibsG
Copy link
Contributor

@ThibsG ThibsG commented Apr 11, 2021

Previously, this lint didn't check into impl block when it was implementing a trait.
Recent improvements (#6924) have moved this check and some impl blocks are now checked but they shouldn't, such as in #7032.

Fixes #7032

changelog: Fix FP when not taking self in impl block for [wrong_self_convention] lint

@rust-highfive
Copy link

r? @giraffate

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 11, 2021
Copy link
Contributor

@giraffate giraffate left a comment

Choose a reason for hiding this comment

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

It looks good, thanks!

@ThibsG Can you update changelog? This fixes FP, so I don't think changelog: none is appropriate.

@ThibsG
Copy link
Contributor Author

ThibsG commented Apr 12, 2021

Yes of course, I was get used to let the reviewer set the appropriate text for changelog (mostly to keep coherence I think) 😄

@giraffate
Copy link
Contributor

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Apr 12, 2021

📌 Commit 3ce6f0d has been approved by giraffate

@bors
Copy link
Contributor

bors commented Apr 12, 2021

⌛ Testing commit 3ce6f0d with merge 411c0df...

@flip1995
Copy link
Member

@giraffate as a team member you should now be able to change the PR body description on your own, so that you don't have to wait on the author.

@flip1995
Copy link
Member

@ThibsG There is no real syntax for this line. The only thing that helps (me) when writing the changelog is when the lint name is put into brackets [] AND backticks ` `, so [`lint_name`].

@giraffate
Copy link
Contributor

Oh, thanks for teaching me that!

@bors
Copy link
Contributor

bors commented Apr 12, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 411c0df to master...

@bors bors merged commit 411c0df into rust-lang:master Apr 12, 2021
@ThibsG ThibsG deleted the WrongSelfFix branch April 12, 2021 14:34
bors added a commit that referenced this pull request Apr 19, 2021
…effen

Update pull request template

A follow-up of <#7064 (comment)>.

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong_self_convention false positive?
5 participants