@@ -720,8 +720,8 @@ where
720720/// type or mutability, in particular if the code is refactored.
721721#[ inline( always) ]
722722#[ must_use]
723- #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
724- #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
723+ #[ stable( feature = "ptr_from_ref" , since = "1.76.0 " ) ]
724+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "1.76.0 " ) ]
725725#[ rustc_never_returns_null_ptr]
726726#[ rustc_diagnostic_item = "ptr_from_ref" ]
727727pub const fn from_ref < T : ?Sized > ( r : & T ) -> * const T {
@@ -734,8 +734,8 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
734734/// type or mutability, in particular if the code is refactored.
735735#[ inline( always) ]
736736#[ must_use]
737- #[ stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
738- #[ rustc_const_stable( feature = "ptr_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
737+ #[ stable( feature = "ptr_from_ref" , since = "1.76.0 " ) ]
738+ #[ rustc_const_stable( feature = "ptr_from_ref" , since = "1.76.0 " ) ]
739739#[ rustc_allow_const_fn_unstable( const_mut_refs) ]
740740#[ rustc_never_returns_null_ptr]
741741pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
@@ -1922,7 +1922,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
19221922/// assert!(ptr::addr_eq(whole, first));
19231923/// assert!(!ptr::eq::<dyn std::fmt::Debug>(whole, first));
19241924/// ```
1925- #[ stable( feature = "ptr_addr_eq" , since = "CURRENT_RUSTC_VERSION " ) ]
1925+ #[ stable( feature = "ptr_addr_eq" , since = "1.76.0 " ) ]
19261926#[ inline( always) ]
19271927#[ must_use = "pointer comparison produces a value" ]
19281928pub fn addr_eq < T : ?Sized , U : ?Sized > ( p : * const T , q : * const U ) -> bool {
0 commit comments