Skip to content

Conversation

@danieleades
Copy link
Contributor

@danieleades danieleades commented Dec 30, 2022

fixes a bunch of clippy lints for fun and profit

i'm aware of this repo's position on clippy. The changes are split into separate commits so they can be reviewed separately

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2022
@danieleades danieleades force-pushed the clippy branch 2 times, most recently from fe68568 to 1455e40 Compare December 30, 2022 09:17
@bors
Copy link
Contributor

bors commented Jan 2, 2023

☔ The latest upstream changes (presumably #13854) made this pull request unmergeable. Please resolve the merge conflicts.

@lnicola
Copy link
Member

lnicola commented Jan 8, 2023

CC @nyurik looks like we got a bunch more of these, even after #13835. I wonder if the auto-fix got smarter.

@lnicola
Copy link
Member

lnicola commented Jan 8, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jan 8, 2023

📌 Commit bb083b8 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 8, 2023

⌛ Testing commit bb083b8 with merge f77b68a...

@lnicola lnicola changed the title fix a bunch of clippy lints internal: fix a bunch of clippy lints Jan 8, 2023
@danieleades
Copy link
Contributor Author

danieleades commented Jan 8, 2023

CC @nyurik looks like we got a bunch more of these, even after #13835. I wonder if the auto-fix got smarter.

This repo's clippy policy means that there are a bunch of clippy lints being triggered. Clippy only reports a small number of hard errors before bailing early. If you fix the hard errors, clippy will report more warnings.

The autofix isn't smarter, I just addressed more of the other lints

@lnicola
Copy link
Member

lnicola commented Jan 8, 2023

Clippy only reports a small number of hard errors before bailing early.

Ah, I didn't know that. So if you run cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args multiple times, it will keep fixing things until there's no more uninlined_format_args? Interesting.

@lnicola
Copy link
Member

lnicola commented Jan 8, 2023

Regarding clippy in general, if someone finds a set of "good" lints (without false positives or of questionable benefit), they can be added here and we'll be open to fixing them.

@bors
Copy link
Contributor

bors commented Jan 8, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing f77b68a to master...

@bors bors merged commit f77b68a into rust-lang:master Jan 8, 2023
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.

4 participants