Skip to content

Commit 28a91e6

Browse files
committed
update version placeholders
1 parent e6de110 commit 28a91e6

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

alloc/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ impl<T: Clone, A: Allocator + Clone> Rc<T, A> {
17681768
/// assert!(ptr::eq(ptr, inner.as_ptr()));
17691769
/// ```
17701770
#[inline]
1771-
#[stable(feature = "arc_unwrap_or_clone", since = "CURRENT_RUSTC_VERSION")]
1771+
#[stable(feature = "arc_unwrap_or_clone", since = "1.76.0")]
17721772
pub fn unwrap_or_clone(this: Self) -> T {
17731773
Rc::try_unwrap(this).unwrap_or_else(|rc| (*rc).clone())
17741774
}

alloc/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ impl<T: Clone, A: Allocator + Clone> Arc<T, A> {
21942194
/// assert!(ptr::eq(ptr, inner.as_ptr()));
21952195
/// ```
21962196
#[inline]
2197-
#[stable(feature = "arc_unwrap_or_clone", since = "CURRENT_RUSTC_VERSION")]
2197+
#[stable(feature = "arc_unwrap_or_clone", since = "1.76.0")]
21982198
pub fn unwrap_or_clone(this: Self) -> T {
21992199
Arc::try_unwrap(this).unwrap_or_else(|arc| (*arc).clone())
22002200
}

core/src/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
729729
/// assert!(type_name_of_val(&y).contains("f32"));
730730
/// ```
731731
#[must_use]
732-
#[stable(feature = "type_name_of_val", since = "CURRENT_RUSTC_VERSION")]
732+
#[stable(feature = "type_name_of_val", since = "1.76.0")]
733733
#[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
734734
pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
735735
type_name::<T>()

core/src/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl<T> Option<T> {
10881088
/// let x: Option<&usize> = v.get(5).inspect(|x| println!("got: {x}"));
10891089
/// ```
10901090
#[inline]
1091-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
1091+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
10921092
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
10931093
if let Some(ref x) = self {
10941094
f(x);

core/src/ptr/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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"]
727727
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 {
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]
741741
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 {
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"]
19281928
pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {

core/src/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl<T, E> Result<T, E> {
842842
/// .expect("failed to parse number");
843843
/// ```
844844
#[inline]
845-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
845+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
846846
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
847847
if let Ok(ref t) = self {
848848
f(t);
@@ -864,7 +864,7 @@ impl<T, E> Result<T, E> {
864864
/// }
865865
/// ```
866866
#[inline]
867-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
867+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
868868
pub fn inspect_err<F: FnOnce(&E)>(self, f: F) -> Self {
869869
if let Err(ref e) = self {
870870
f(e);

std/src/hash/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ pub(crate) mod random;
8787
#[stable(feature = "rust1", since = "1.0.0")]
8888
pub use core::hash::*;
8989

90-
#[stable(feature = "std_hash_exports", since = "CURRENT_RUSTC_VERSION")]
90+
#[stable(feature = "std_hash_exports", since = "1.76.0")]
9191
pub use self::random::{DefaultHasher, RandomState};

0 commit comments

Comments
 (0)