Skip to content

Implement Default for timeval and timespec#4976

Merged
JohnTitor merged 1 commit intorust-lang:mainfrom
tgross35:time-default
Feb 15, 2026
Merged

Implement Default for timeval and timespec#4976
JohnTitor merged 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.

👍

@tgross35 tgross35 added this pull request to the merge queue Feb 15, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 15, 2026
@JohnTitor JohnTitor added this pull request to the merge queue Feb 15, 2026
Merged via the queue into rust-lang:main with commit 9c2df3f Feb 15, 2026
51 checks passed
@tgross35 tgross35 deleted the time-default branch February 16, 2026 04:22
JohnTitor pushed a commit to JohnTitor/libc that referenced this pull request Mar 8, 2026
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

(backport <rust-lang#4976>)
(cherry picked from commit 9c2df3f)
@JohnTitor JohnTitor mentioned this pull request Mar 8, 2026
github-merge-queue bot pushed a commit that referenced this pull request Mar 8, 2026
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]: #4975

(backport <#4976>)
(cherry picked from commit 9c2df3f)
@JohnTitor JohnTitor added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants