@@ -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 {
@@ -1900,7 +1900,7 @@ pub(crate) const unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usiz
19001900#[ inline( always) ]
19011901#[ must_use = "pointer comparison produces a value" ]
19021902#[ rustc_diagnostic_item = "ptr_eq" ]
1903- #[ cfg_attr ( not ( bootstrap ) , allow( ambiguous_wide_pointer_comparisons) ) ] // it's actually clear here
1903+ #[ allow( ambiguous_wide_pointer_comparisons) ] // it's actually clear here
19041904pub fn eq < T : ?Sized > ( a : * const T , b : * const T ) -> bool {
19051905 a == b
19061906}
@@ -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