

Partially stabilize `maybe_uninit_extra` by ojeda · Pull Request #92768 · rust-l...
source link: https://github.com/rust-lang/rust/pull/92768
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This covers:
impl<T> MaybeUninit<T> { pub unsafe fn assume_init_read(&self) -> T { ... } pub unsafe fn assume_init_drop(&mut self) { ... } }
It does not cover the const-ness of write
under const_maybe_uninit_write
nor the const-ness of assume_init_read
(this commit adds const_maybe_uninit_assume_init_read
for that).
FCP: #63567 (comment).
Signed-off-by: Miguel Ojeda [email protected]
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK