about summary refs log tree commit diff
path: root/library/core
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2023-12-21 15:39:15 +0100
committerPietro Albini <pietro@pietroalbini.org>2023-12-22 11:01:42 +0100
commitc00486c9bbfc9fa8f989715ea6cee1e324e2ea00 (patch)
tree19496124d711454a62d31c7d7ce4a289a6b783c8 /library/core
parentef1b78eabe713a2068a1b0451102853dd2475a7b (diff)
downloadrust-c00486c9bbfc9fa8f989715ea6cee1e324e2ea00.tar.gz
rust-c00486c9bbfc9fa8f989715ea6cee1e324e2ea00.zip
update version placeholders
Diffstat (limited to 'library/core')
-rw-r--r--library/core/src/any.rs2
-rw-r--r--library/core/src/option.rs2
-rw-r--r--library/core/src/ptr/mod.rs10
-rw-r--r--library/core/src/result.rs4
4 files changed, 9 insertions, 9 deletions
diff --git a/library/core/src/any.rs b/library/core/src/any.rs
index c82984d5c6b..e8f00e8760e 100644
--- a/library/core/src/any.rs
+++ b/library/core/src/any.rs
@@ -729,7 +729,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
 /// assert!(type_name_of_val(&y).contains("f32"));
 /// ```
 #[must_use]
-#[stable(feature = "type_name_of_val", since = "CURRENT_RUSTC_VERSION")]
+#[stable(feature = "type_name_of_val", since = "1.76.0")]
 #[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
 pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
     type_name::<T>()
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index bfd6aee4a23..ff435349249 100644
--- a/library/core/src/option.rs
+++ b/library/core/src/option.rs
@@ -1088,7 +1088,7 @@ impl<T> Option<T> {
     /// let x: Option<&usize> = v.get(5).inspect(|x| println!("got: {x}"));
     /// ```
     #[inline]
-    #[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
+    #[stable(feature = "result_option_inspect", since = "1.76.0")]
     pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
         if let Some(ref x) = self {
             f(x);
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs
index eed793186b9..390e0737197 100644
--- a/library/core/src/ptr/mod.rs
+++ b/library/core/src/ptr/mod.rs
@@ -720,8 +720,8 @@ where
 /// type or mutability, in particular if the code is refactored.
 #[inline(always)]
 #[must_use]
-#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
-#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
+#[stable(feature = "ptr_from_ref", since = "1.76.0")]
+#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")]
 #[rustc_never_returns_null_ptr]
 #[rustc_diagnostic_item = "ptr_from_ref"]
 pub 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 {
 /// type or mutability, in particular if the code is refactored.
 #[inline(always)]
 #[must_use]
-#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
-#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
+#[stable(feature = "ptr_from_ref", since = "1.76.0")]
+#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")]
 #[rustc_allow_const_fn_unstable(const_mut_refs)]
 #[rustc_never_returns_null_ptr]
 pub 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 {
 /// assert!(ptr::addr_eq(whole, first));
 /// assert!(!ptr::eq::<dyn std::fmt::Debug>(whole, first));
 /// ```
-#[stable(feature = "ptr_addr_eq", since = "CURRENT_RUSTC_VERSION")]
+#[stable(feature = "ptr_addr_eq", since = "1.76.0")]
 #[inline(always)]
 #[must_use = "pointer comparison produces a value"]
 pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 90c346e98bc..eff1b9b59b1 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -842,7 +842,7 @@ impl<T, E> Result<T, E> {
     ///     .expect("failed to parse number");
     /// ```
     #[inline]
-    #[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
+    #[stable(feature = "result_option_inspect", since = "1.76.0")]
     pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
         if let Ok(ref t) = self {
             f(t);
@@ -864,7 +864,7 @@ impl<T, E> Result<T, E> {
     /// }
     /// ```
     #[inline]
-    #[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
+    #[stable(feature = "result_option_inspect", since = "1.76.0")]
     pub fn inspect_err<F: FnOnce(&E)>(self, f: F) -> Self {
         if let Err(ref e) = self {
             f(e);