Skip to content

feat(fix): ignore todo! and unimplemented! in if_same_then_else #9006

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 10 commits into from
Jun 20, 2022

Conversation

kyoto7250
Copy link
Contributor

@kyoto7250 kyoto7250 commented Jun 16, 2022

close: #8836
take over: #8853

This PR adds check todo! and unimplemented! in if_same_then_else.
( I thought unimplemented should not be checked as well as todo!.)

Thank you in advance.

changelog: ignore todo! and unimplemented! in if_same_then_else

r? @Jarcho

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 16, 2022
@kyoto7250 kyoto7250 marked this pull request as ready for review June 16, 2022 13:03
@kyoto7250 kyoto7250 changed the title feat(fix): ignore todo! and unimplemented! in if_same_then_else feat(fix): ignore todo! and unimplemented! in if_same_then_else Jun 16, 2022
@kyoto7250 kyoto7250 requested a review from Jarcho June 17, 2022 01:42
Copy link
Contributor

@Jarcho Jarcho left a comment

Choose a reason for hiding this comment

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

This would be better added to SpanlessEq. That would fix the same issue in a couple other lints as well. I'll leave it up to you if you want to do that with this PR though.

@kyoto7250
Copy link
Contributor Author

@Jarcho

I did some commits.

Could I request another review?

@Jarcho
Copy link
Contributor

Jarcho commented Jun 20, 2022

Looks good.

@bors r+

@bors
Copy link
Contributor

bors commented Jun 20, 2022

📌 Commit 39ffda0 has been approved by Jarcho

@bors
Copy link
Contributor

bors commented Jun 20, 2022

⌛ Testing commit 39ffda0 with merge 93c6f9e...

@bors
Copy link
Contributor

bors commented Jun 20, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 93c6f9e to master...

@bors bors merged commit 93c6f9e into rust-lang:master Jun 20, 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.

clippy::if_same_then_else should ignore bodies containing todo!()
4 participants