File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,8 @@ where
720
720
/// type or mutability, in particular if the code is refactored.
721
721
#[ inline( always) ]
722
722
#[ must_use]
723
- #[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
723
+ #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
724
+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
724
725
#[ rustc_never_returns_null_ptr]
725
726
#[ rustc_diagnostic_item = "ptr_from_ref" ]
726
727
pub const fn from_ref < T : ?Sized > ( r : & T ) -> * const T {
@@ -733,7 +734,9 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
733
734
/// type or mutability, in particular if the code is refactored.
734
735
#[ inline( always) ]
735
736
#[ must_use]
736
- #[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
737
+ #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
738
+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
739
+ #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
737
740
#[ rustc_never_returns_null_ptr]
738
741
pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
739
742
r
Original file line number Diff line number Diff line change 338
338
#![ feature( portable_simd) ]
339
339
#![ feature( prelude_2024) ]
340
340
#![ feature( ptr_as_uninit) ]
341
- #![ feature( ptr_from_ref) ]
342
341
#![ feature( raw_os_nonzero) ]
343
342
#![ feature( round_ties_even) ]
344
343
#![ feature( slice_internals) ]
You can’t perform that action at this time.
0 commit comments