File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 140140#![ feature( maybe_uninit_uninit_array) ]
141141#![ feature( maybe_uninit_uninit_array_transpose) ]
142142#![ feature( pattern) ]
143- #![ feature( ptr_addr_eq) ]
144143#![ feature( ptr_internals) ]
145144#![ feature( ptr_metadata) ]
146145#![ 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 {
18981898/// # Examples
18991899///
19001900/// ```
1901- /// #![feature(ptr_addr_eq)]
1901+ /// use std::ptr;
19021902///
19031903/// let whole: &[i32; 3] = &[1, 2, 3];
19041904/// 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));
19071908/// ```
1908- #[ unstable ( feature = "ptr_addr_eq" , issue = "116324 " ) ]
1909+ #[ stable ( feature = "ptr_addr_eq" , since = "CURRENT_RUSTC_VERSION " ) ]
19091910#[ inline( always) ]
19101911#[ must_use = "pointer comparison produces a value" ]
19111912pub 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