-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Replace mem::uninitialized<T>() with mem::MaybeUninit<T> #1025
Copy link
Copy link
Closed
Labels
D - easyLikely easier than most tasks hereLikely easier than most tasks hereH - good first issueIdeal for new contributorsIdeal for new contributorsH - help wantedSomeone please save usSomeone please save usP - highVital to haveVital to haveS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?
Description
See the Rust 1.36 announcement concerning this change. uninitialized will be deprecated in 1.38, which means nightly already generates deprecation warnings. (CI tests nightly too.)
Fixing this should be easy enough (hint: "good first issue"), by running rg uninitialized and replacing all found uses with MaybeUninit (has nice examples showing equivalent code for uninitialized and MaybeUninit).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
D - easyLikely easier than most tasks hereLikely easier than most tasks hereH - good first issueIdeal for new contributorsIdeal for new contributorsH - help wantedSomeone please save usSomeone please save usP - highVital to haveVital to haveS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?