Skip to content

Add #[non_exhaustive] to io_uring structs with padding#1281

Merged
sunfishcode merged 1 commit intomainfrom
sunfishcode/nonexhaustive
Jan 29, 2025
Merged

Add #[non_exhaustive] to io_uring structs with padding#1281
sunfishcode merged 1 commit intomainfrom
sunfishcode/nonexhaustive

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

Padding fields may be repurposed by future Linux versions, so in an attempt to be somewhat more future-proof, mark io_uring structs padding fields as #[doc(hidden)] and their structs as #[non_exhaustive].

Padding fields may be repurposed by future Linux versions, so in an
attempt to be somewhat more future-proof, mark io_uring structs
padding fields as `#[doc(hidden)]` and their structs as
`#[non_exhaustive]`.
@sunfishcode sunfishcode force-pushed the sunfishcode/nonexhaustive branch from 2a36cd2 to 42933fe Compare January 29, 2025 15:00
@sunfishcode sunfishcode merged commit bb1478d into main Jan 29, 2025
@sunfishcode sunfishcode deleted the sunfishcode/nonexhaustive branch January 29, 2025 16:58
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.

1 participant