Skip to content

[should_implement_trait] Also lint default method #9546

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

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

kraktus
Copy link
Contributor

@kraktus kraktus commented Sep 27, 2022

close #8550

changelog: FP: [should_implement_trait]: Now also works for default methods

@rust-highfive
Copy link

r? @xFrednet

(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 Sep 27, 2022
@kraktus kraktus marked this pull request as draft September 27, 2022 21:11
@kraktus kraktus force-pushed the default_not_default_trait branch 2 times, most recently from 353d8d3 to 7289835 Compare September 28, 2022 06:39
@kraktus kraktus marked this pull request as ready for review September 28, 2022 06:53
@xFrednet
Copy link
Member

Looks good to me, and this finally fixes a long-standing bug. Thank you for the update!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 28, 2022

📌 Commit 7289835 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 28, 2022

⌛ Testing commit 7289835 with merge 0f6932a...

@bors
Copy link
Contributor

bors commented Sep 28, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 0f6932a to master...

@bors bors merged commit 0f6932a into rust-lang:master Sep 28, 2022
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.

Warn if function name default() is used without implementing the Default trait
4 participants