-
Notifications
You must be signed in to change notification settings - Fork 183
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
(toolchain update clippy canary PR, ignore for now) #1719
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cbiffle
force-pushed
the
cbiffle/toolchain-update-2024-04-clippy
branch
9 times, most recently
from
April 5, 2024 01:04
c015a9c
to
89b3b40
Compare
These traits are newly detected as dead by the new toolchain, so after discussion with @flihp I'm removing them -- we can always get them out of git if we need them.
This only covers cases that appeared trivially correct on local inspection.
These are not actually unused, annoyingly.
All _new_ instances of this warning firing are false positives, and are suppressed in this commit.
Clippy would like us to automatically derive default for enums where possible instead of writing our own impl. I happen to agree with Clippy.
This adds Default impls where it seemed appropriate and/or easy to do so, and suppresses the warning in cases where it'd just be dead code generated to appease the clipster.
cbiffle
force-pushed
the
cbiffle/toolchain-update-2024-04-clippy
branch
from
April 5, 2024 16:24
89b3b40
to
2959779
Compare
This is the only module that uses static mut and unsafe in a way that is not obviously correct. In the interest of preventing regressions everywhere _else,_ I'm suppressing the relevant warning for this module only.
cbiffle
force-pushed
the
cbiffle/toolchain-update-2024-04-clippy
branch
from
April 5, 2024 16:42
2959779
to
d1e8e12
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.