File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 140
140
#![ feature( maybe_uninit_uninit_array) ]
141
141
#![ feature( maybe_uninit_uninit_array_transpose) ]
142
142
#![ feature( pattern) ]
143
- #![ feature( ptr_addr_eq) ]
144
143
#![ feature( ptr_internals) ]
145
144
#![ feature( ptr_metadata) ]
146
145
#![ feature( ptr_sub_ptr) ]
Original file line number Diff line number Diff line change @@ -1898,14 +1898,15 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
1898
1898
/// # Examples
1899
1899
///
1900
1900
/// ```
1901
- /// #![feature(ptr_addr_eq)]
1901
+ /// use std::ptr;
1902
1902
///
1903
1903
/// let whole: &[i32; 3] = &[1, 2, 3];
1904
1904
/// let first: &i32 = &whole[0];
1905
- /// assert!(std::ptr::addr_eq(whole, first));
1906
- /// assert!(!std::ptr::eq::<dyn std::fmt::Debug>(whole, first));
1905
+ ///
1906
+ /// assert!(ptr::addr_eq(whole, first));
1907
+ /// assert!(!ptr::eq::<dyn std::fmt::Debug>(whole, first));
1907
1908
/// ```
1908
- #[ unstable ( feature = "ptr_addr_eq" , issue = "116324 " ) ]
1909
+ #[ stable ( feature = "ptr_addr_eq" , since = "CURRENT_RUSTC_VERSION " ) ]
1909
1910
#[ inline( always) ]
1910
1911
#[ must_use = "pointer comparison produces a value" ]
1911
1912
pub fn addr_eq < T : ?Sized , U : ?Sized > ( p : * const T , q : * const U ) -> bool {
You can’t perform that action at this time.
0 commit comments