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

mem::uninitialized should be replaced with MaybeUninit #1503

Closed
PatchMixolydic opened this issue Jul 12, 2021 · 0 comments
Closed

mem::uninitialized should be replaced with MaybeUninit #1503

PatchMixolydic opened this issue Jul 12, 2021 · 0 comments

Comments

@PatchMixolydic
Copy link

PatchMixolydic commented Jul 12, 2021

mem::uninitialized is deprecated, as it is known to cause immediate undefined behaviour. To allow users to work with uninitialized memory in a memory-safe manner, MaybeUninit (tracking issue rust-lang/rust#53491) was stabilized in Rust 1.36. A previous attempt to update this crate to use MaybeUninit, #1230, was rejected since it would change the MSRV for an internal-only change. However, the MSRV was bumped to 1.36 in #1400, which means that this change can now be landed.

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

No branches or pull requests

1 participant