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

skip todo!() in never_loop #11455

Merged
merged 3 commits into from Sep 4, 2023
Merged

skip todo!() in never_loop #11455

merged 3 commits into from Sep 4, 2023

Conversation

digama0
Copy link
Contributor

@digama0 digama0 commented Sep 3, 2023

As promised in #11450, here is an implementation which skips occurrences of the todo!() macro.

changelog: [never_loop]: skip loops containing todo!()

@rustbot
Copy link
Collaborator

rustbot commented Sep 3, 2023

r? @dswij

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 3, 2023
Copy link
Member

@Centri3 Centri3 left a comment

Choose a reason for hiding this comment

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

This should only skip todo! imo. unimplemented! is used for stuff that won't be implemented, not for WIP code.

clippy_lints/src/loops/never_loop.rs Outdated Show resolved Hide resolved
@digama0 digama0 changed the title skip todo / unimplemented in never_loop skip todo!() in never_loop Sep 3, 2023
@digama0 digama0 requested a review from Centri3 September 3, 2023 15:16
@Centri3
Copy link
Member

Centri3 commented Sep 3, 2023

This version LGTM. r=me once vec.rs has been blessed

Copy link
Member

@dswij dswij left a comment

Choose a reason for hiding this comment

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

Just a small comment suggestion

clippy_lints/src/loops/never_loop.rs Outdated Show resolved Hide resolved
@digama0
Copy link
Contributor Author

digama0 commented Sep 4, 2023

r? Centri3

@rustbot rustbot assigned Centri3 and unassigned dswij Sep 4, 2023
@dswij
Copy link
Member

dswij commented Sep 4, 2023

Thank you. @bors r=Centri3,dswij

@bors
Copy link
Collaborator

bors commented Sep 4, 2023

📌 Commit 4e0a346 has been approved by Centri3,dswij

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 4, 2023

⌛ Testing commit 4e0a346 with merge 1349bfc...

bors added a commit that referenced this pull request Sep 4, 2023
skip `todo!()` in  `never_loop`

As promised in #11450, here is an implementation which skips occurrences of the `todo!()` macro.
@bors
Copy link
Collaborator

bors commented Sep 4, 2023

💔 Test failed - checks-action_test

@digama0
Copy link
Contributor Author

digama0 commented Sep 4, 2023

how do I kick the bot to try again?

@Jarcho
Copy link
Contributor

Jarcho commented Sep 4, 2023

@bors retry

The changelog line needs to start with changelog: (note the colon). I've fixed that for you.

@bors
Copy link
Collaborator

bors commented Sep 4, 2023

⌛ Testing commit 4e0a346 with merge da882f0...

@bors
Copy link
Collaborator

bors commented Sep 4, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Centri3,dswij
Pushing da882f0 to master...

@bors bors merged commit da882f0 into rust-lang:master Sep 4, 2023
5 checks passed
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.

None yet

7 participants