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

Add new type DataPayloadOr #4463

Merged
merged 26 commits into from
Dec 21, 2023
Merged

Add new type DataPayloadOr #4463

merged 26 commits into from
Dec 21, 2023

Conversation

sffc
Copy link
Member

@sffc sffc commented Dec 15, 2023

Depends on #4462
Fixes #4438

I need the doubly nested inner enums to make this work. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5503d0a8d7641700132b80ed50de334d

@sffc
Copy link
Member Author

sffc commented Dec 15, 2023

The first, and primary, commit on this branch is 5e4d3d1. The others are inherited from the dependent PRs.

@sffc sffc marked this pull request as ready for review December 15, 2023 23:55
@sffc sffc requested review from Manishearth and a team as code owners December 15, 2023 23:55
Copy link

dpulls bot commented Dec 18, 2023

🎉 All dependencies have been resolved !

Manishearth
Manishearth previously approved these changes Dec 18, 2023
/// assert_eq!(W * 4, size_of::<DataPayloadOr<HelloWorldV1Marker, [usize; 2]>>());
/// assert_eq!(W * 5, size_of::<DataPayloadOr<HelloWorldV1Marker, [usize; 3]>>());
/// ```
pub struct DataPayloadOr<M: DataMarker, O>(pub(crate) DataPayloadOrInner<M, O>);
Copy link
Member

Choose a reason for hiding this comment

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

thought: perhaps this should be internal/unstable for now?

Copy link
Member

Choose a reason for hiding this comment

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

Not blocking

@sffc sffc merged commit 8295762 into unicode-org:main Dec 21, 2023
28 checks passed
@sffc sffc deleted the dp-or branch December 21, 2023 19:28
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.

Reduce stack size of DataPayload
2 participants