Skip to content

Commit 7c9d5d1

Browse files
Urgaugitbot
authored and
gitbot
committed
Stabilize ptr::fn_addr_eq
1 parent 7251152 commit 7c9d5d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/ptr/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,6 @@ pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {
21112111
/// when compiled with optimization:
21122112
///
21132113
/// ```
2114-
/// # #![feature(ptr_fn_addr_eq)]
21152114
/// let f: fn(i32) -> i32 = |x| x;
21162115
/// let g: fn(i32) -> i32 = |x| x + 0; // different closure, different body
21172116
/// let h: fn(u32) -> u32 = |x| x + 0; // different signature too
@@ -2136,7 +2135,6 @@ pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {
21362135
/// # Examples
21372136
///
21382137
/// ```
2139-
/// #![feature(ptr_fn_addr_eq)]
21402138
/// use std::ptr;
21412139
///
21422140
/// fn a() { println!("a"); }
@@ -2145,7 +2143,7 @@ pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {
21452143
/// ```
21462144
///
21472145
/// [subtype]: https://doc.rust-lang.org/reference/subtyping.html
2148-
#[unstable(feature = "ptr_fn_addr_eq", issue = "129322")]
2146+
#[stable(feature = "ptr_fn_addr_eq", since = "CURRENT_RUSTC_VERSION")]
21492147
#[inline(always)]
21502148
#[must_use = "function pointer comparison produces a value"]
21512149
pub fn fn_addr_eq<T: FnPtr, U: FnPtr>(f: T, g: U) -> bool {

0 commit comments

Comments
 (0)