8

Partially stabilize `maybe_uninit_extra` by ojeda · Pull Request #92768 · rust-l...

 2 years ago
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.

Copy link

Contributor

ojeda commented 9 days ago

edited

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]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK