Skip to content

Implement Default for timeval and timespec#4976

Open
tgross35 wants to merge 1 commit intorust-lang:mainfrom
tgross35:time-default
Open

Implement Default for timeval and timespec#4976
tgross35 wants to merge 1 commit intorust-lang:mainfrom
tgross35:time-default

Conversation

@tgross35
Copy link
Contributor

With the experimental time64 support, some of these structs gain a padding field on 32-bit platforms. We are planning to give everything a Default impl anyway (1) so start with these to ease the transition.

With the experimental time64 support, some of these structs gain a
padding field on 32-bit platforms. We are planning to give everything a
`Default` impl anyway ([1]) so start with these to ease the transition.

[1]: rust-lang#4975
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Feb 14, 2026
@tgross35 tgross35 requested a review from JohnTitor February 14, 2026 21:46
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants