Skip to content

fix(tokio-quiche): avoid u128 transmute for Instant zero - #2533

Open
Parikalp-Bhardwaj wants to merge 2 commits into
cloudflare:masterfrom
Parikalp-Bhardwaj:fix-i686-instant-zero
Open

fix(tokio-quiche): avoid u128 transmute for Instant zero#2533
Parikalp-Bhardwaj wants to merge 2 commits into
cloudflare:masterfrom
Parikalp-Bhardwaj:fix-i686-instant-zero

Conversation

@Parikalp-Bhardwaj

Copy link
Copy Markdown

Summary

This fixes the i686-unknown-linux-gnu build failure caused by transmuting 0u128 into std::time::Instant.

On i686, Instant is 96 bits while u128 is 128 bits, so the transmute fails with E0512/E0080.

The fix uses std::mem::zeroed::<Instant>() instead, which avoids assuming a fixed Instant size across targets.

Fixes #2505

@Parikalp-Bhardwaj
Parikalp-Bhardwaj requested a review from a team as a code owner July 8, 2026 14:49
@ghedo
ghedo force-pushed the fix-i686-instant-zero branch from 8e8cb75 to 23e6ba1 Compare July 18, 2026 09:35
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.

Build failure on linux i686

2 participants