File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 9494#![ feature( const_precise_live_drops) ]
9595#![ feature( const_ptr_offset) ]
9696#![ feature( const_ptr_offset_from) ]
97+ #![ feature( const_ptr_read) ]
9798#![ feature( const_raw_ptr_comparison) ]
9899#![ feature( const_raw_ptr_deref) ]
99100#![ feature( const_slice_from_raw_parts) ]
Original file line number Diff line number Diff line change @@ -575,8 +575,9 @@ impl<T> MaybeUninit<T> {
575575 /// // they both get dropped!
576576 /// ```
577577 #[ unstable( feature = "maybe_uninit_extra" , issue = "63567" ) ]
578+ #[ rustc_const_unstable( feature = "maybe_uninit_extra" , issue = "63567" ) ]
578579 #[ inline( always) ]
579- pub unsafe fn assume_init_read ( & self ) -> T {
580+ pub const unsafe fn assume_init_read ( & self ) -> T {
580581 // SAFETY: the caller must guarantee that `self` is initialized.
581582 // Reading from `self.as_ptr()` is safe since `self` should be initialized.
582583 unsafe {
You can’t perform that action at this time.
0 commit comments