File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -708,7 +708,8 @@ where
708
708
/// type or mutability, in particular if the code is refactored.
709
709
#[ inline( always) ]
710
710
#[ must_use]
711
- #[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
711
+ #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
712
+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
712
713
#[ rustc_never_returns_null_ptr]
713
714
#[ rustc_diagnostic_item = "ptr_from_ref" ]
714
715
pub const fn from_ref < T : ?Sized > ( r : & T ) -> * const T {
@@ -721,7 +722,9 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
721
722
/// type or mutability, in particular if the code is refactored.
722
723
#[ inline( always) ]
723
724
#[ must_use]
724
- #[ unstable( feature = "ptr_from_ref" , issue = "106116" ) ]
725
+ #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
726
+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
727
+ #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
725
728
#[ rustc_never_returns_null_ptr]
726
729
pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
727
730
r
You can’t perform that action at this time.
0 commit comments