-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add boxed union feature to circumvent stack overflow
For enums with a lot of variants the `Strategy` synthesized by the `#[derive(Arbitrary)]` macro is a right-deep `TupleUnion`. This commit adds a `boxed_union` feature, which when enabled will change the `enum` expansion to use `Union<BoxedStrategy<Self>>`. see github issues: #249 #152 code included from #249 (comment) Co-authored-by: Alexander Alexandrov <alexander.s.alexandrov@gmail.com> Co-authored-by: Sophie Dawson <sophiecdawson@gmail.com>
- Loading branch information
1 parent
dfaa77a
commit 8bae424
Showing
4 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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