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

fix(time): fix panic cause by std internal structure change #88

Merged
merged 4 commits into from
Oct 28, 2022

Conversation

wangrunji0408
Copy link
Member

@wangrunji0408 wangrunji0408 commented Oct 28, 2022

rust-lang/rust#102368 (nightly-2022-09-29) changed the memory layout of std::time::{SystemTime, Instant} on Linux (code), making them no longer equal to libc::timespec. So the previous transmute between these types will break data and trigger a panic.

This PR fixes this issue and releases v0.2.9.

…rval}

Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
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