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

Implement Arbitrary for core::cmp::Reverse #210

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

swwu
Copy link
Contributor

@swwu swwu commented Dec 5, 2024

We have a lot of data structures that depend on ordering requirements that we enforce via things like BTreeMap<Reverse<K>, V>, so having Reverse<T>: Arbitrary where T: Arbitrary would be very useful for cutting down on a bunch of implementation boilerplate.

Edit: currently this fails clippy, but it seems like the failing code is unrelated to my diff, and is probably because of Rust 1.83 changing lint checks for elidable lifetimes.

@fitzgen
Copy link
Member

fitzgen commented Dec 10, 2024

@fitzgen
Copy link
Member

fitzgen commented Dec 10, 2024

We should probably opt into a specific set of clippy lints, rather than whatever the defaults are, so that as new lints get added in the future our CI doesn't break from under us.

@fitzgen
Copy link
Member

fitzgen commented Dec 10, 2024

Clippy fix in #211

@Manishearth Manishearth merged commit 65d54d8 into rust-fuzz:main Dec 10, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants