Enforce even more library clippy lints in CI - #161328
Conversation
|
Btw, they'll likely be platform specific fixes that CI tells me about so I'll probably be updating these in a few hours. |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Enforce even more library clippy lints in CI
There was a problem hiding this comment.
mostly looks good, with a couple worries:
- clippy wants us to do a lot more method calls. this is fine but needs a perf run for sure, and i'm a smidge worried about binary size and/or bootstrap time, esp since it might put more pressure on the inliner
- a lot of these
allows should beexpects with a comment... but also, i'm not gonna do that to you chris ^^ that can be a later pr
let's see what a perf run comes up with before anything.
@bors try @rust-timer queue
This comment has been minimized.
This comment has been minimized.
Enforce even more library clippy lints in CI
|
huh, how did the comment from matthias not show up? apologies ^^ github has been odd |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Just comparing to my personal clippy lint list, what I see missing is:
Besides |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (8906bf7): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.9%, secondary 0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeResults (primary -0.1%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 456.919s -> 457.665s (0.16%) |
This can affect drop order
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Oops, sorry for that. Got inspired by reviewing you changes here :) |
|
It's totally fine! The change is minor and as the message says, rebasing is a normal part of managing PRs, |
View all comments
Once again, this is best reviewed commit-by-commit since each commit fixes a lint.
I've bundled together a large(ish) number of lints because I feel they shouldn't be controversial and don't touch too much code. A large chunk of them is just telling clippy that, for example, implementing
is_digitby callingis_digitjust isn't going to work. I have reviewed each and every fix myself but please do double or triple check my working!