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

Fix FP for boxed_local lint in default trait fn impl #6571

Merged
merged 1 commit into from
Jan 9, 2021

Conversation

ThibsG
Copy link
Contributor

@ThibsG ThibsG commented Jan 9, 2021

Fix FP on default trait function implementation on boxed_local lint.

Maybe I checked too much when looking if self is carrying Self in its bound type.
I can't find a good test case for this, so it could be too much conservative.
Let me know if you think only detecting self parameter is enough.

Fixes: #4804

changelog: none

@rust-highfive
Copy link

r? @phansch

(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 Jan 9, 2021
@phansch
Copy link
Member

phansch commented Jan 9, 2021

@bors r+ thanks!

I can't find a good test case for this, so it could be too much conservative.

For the time being, I'd rather be a bit more conservative when fixing things, so this looks good to me 👍

@bors
Copy link
Contributor

bors commented Jan 9, 2021

📌 Commit 8a6fea4 has been approved by phansch

@bors
Copy link
Contributor

bors commented Jan 9, 2021

⌛ Testing commit 8a6fea4 with merge ee0598e...

@bors
Copy link
Contributor

bors commented Jan 9, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: phansch
Pushing ee0598e to master...

@bors bors merged commit ee0598e into rust-lang:master Jan 9, 2021
@ThibsG ThibsG deleted the BoxedLocalTrait branch January 9, 2021 16:56
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.

False positive for boxed local in default Trait method implementation
4 participants