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

chore: remove MaybeArbitrary trait #13301

Merged
merged 1 commit into from
Dec 11, 2024
Merged

chore: remove MaybeArbitrary trait #13301

merged 1 commit into from
Dec 11, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Dec 11, 2024

It looks like we don't rely on it anywhere and it has been causing some weird feature errors for a while now.

It might be reasonable to reconsider approach with cfg gated supertraits. e.g we could introduce ArbitraryNodePrimitives which will be used by the types depending on arbitrary bound

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

yeah this is giga cursed because this can be activated in reth-primitives-traits and not in the impl crate

we don't use this anywhere because we don't have arb testing on traits and all derive arb already enforce this anyway

@klkvr klkvr enabled auto-merge December 11, 2024 15:35
@klkvr klkvr added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit 61099cd Dec 11, 2024
43 checks passed
@klkvr klkvr deleted the klkvr/rm-maybe-arbitrary branch December 11, 2024 15:51
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.

2 participants