Skip to content

Commit 75003d6

Browse files
committed
update version placeholders
1 parent 0e7065f commit 75003d6

File tree

14 files changed

+44
-44
lines changed

14 files changed

+44
-44
lines changed

alloc/src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ pub use self::c_str::CString;
8787
#[stable(feature = "alloc_c_string", since = "1.64.0")]
8888
pub use self::c_str::{FromVecWithNulError, IntoStringError, NulError};
8989

90-
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
90+
#[stable(feature = "c_str_module", since = "1.88.0")]
9191
pub mod c_str;

core/src/arch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
3232
///
3333
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
3434
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
35-
#[stable(feature = "naked_functions", since = "CURRENT_RUSTC_VERSION")]
35+
#[stable(feature = "naked_functions", since = "1.88.0")]
3636
#[rustc_builtin_macro]
3737
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
3838
/* compiler built-in */

core/src/cell.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl<T> Cell<T> {
495495
/// ```
496496
#[inline]
497497
#[stable(feature = "move_cell", since = "1.17.0")]
498-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
498+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
499499
#[rustc_confusables("swap")]
500500
pub const fn replace(&self, val: T) -> T {
501501
// SAFETY: This can cause data races if called from a separate thread,
@@ -537,7 +537,7 @@ impl<T: Copy> Cell<T> {
537537
/// ```
538538
#[inline]
539539
#[stable(feature = "rust1", since = "1.0.0")]
540-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
540+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
541541
pub const fn get(&self) -> T {
542542
// SAFETY: This can cause data races if called from a separate thread,
543543
// but `Cell` is `!Sync` so this won't happen.
@@ -556,7 +556,7 @@ impl<T: Copy> Cell<T> {
556556
/// assert_eq!(c.get(), 6);
557557
/// ```
558558
#[inline]
559-
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
559+
#[stable(feature = "cell_update", since = "1.88.0")]
560560
pub fn update(&self, f: impl FnOnce(T) -> T) {
561561
let old = self.get();
562562
self.set(f(old));
@@ -608,7 +608,7 @@ impl<T: ?Sized> Cell<T> {
608608
/// ```
609609
#[inline]
610610
#[stable(feature = "cell_get_mut", since = "1.11.0")]
611-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
611+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
612612
pub const fn get_mut(&mut self) -> &mut T {
613613
self.value.get_mut()
614614
}
@@ -628,7 +628,7 @@ impl<T: ?Sized> Cell<T> {
628628
/// ```
629629
#[inline]
630630
#[stable(feature = "as_cell", since = "1.37.0")]
631-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
631+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
632632
pub const fn from_mut(t: &mut T) -> &Cell<T> {
633633
// SAFETY: `&mut` ensures unique access.
634634
unsafe { &*(t as *mut T as *const Cell<T>) }
@@ -686,7 +686,7 @@ impl<T> Cell<[T]> {
686686
/// assert_eq!(slice_cell.len(), 3);
687687
/// ```
688688
#[stable(feature = "as_cell", since = "1.37.0")]
689-
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
689+
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
690690
pub const fn as_slice_of_cells(&self) -> &[Cell<T>] {
691691
// SAFETY: `Cell<T>` has the same memory layout as `T`.
692692
unsafe { &*(self as *const Cell<[T]> as *const [Cell<T>]) }

core/src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use self::c_str::FromBytesUntilNulError;
2020
pub use self::c_str::FromBytesWithNulError;
2121
use crate::fmt;
2222

23-
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
23+
#[stable(feature = "c_str_module", since = "1.88.0")]
2424
pub mod c_str;
2525

2626
#[unstable(

core/src/hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ pub const fn cold_path() {
782782
/// # assert_eq!(bucket_one.len() + bucket_two.len(), 1);
783783
/// ```
784784
#[inline(always)]
785-
#[stable(feature = "select_unpredictable", since = "CURRENT_RUSTC_VERSION")]
785+
#[stable(feature = "select_unpredictable", since = "1.88.0")]
786786
pub fn select_unpredictable<T>(condition: bool, true_val: T, false_val: T) -> T {
787787
// FIXME(https://github.com/rust-lang/unsafe-code-guidelines/issues/245):
788788
// Change this to use ManuallyDrop instead.

core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ impl<T: ?Sized> PartialOrd for *const T {
17411741
}
17421742
}
17431743

1744-
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
1744+
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
17451745
impl<T: ?Sized + Thin> Default for *const T {
17461746
/// Returns the default value of [`null()`][crate::ptr::null].
17471747
fn default() -> Self {

core/src/ptr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ pub const unsafe fn swap<T>(x: *mut T, y: *mut T) {
11011101
/// ```
11021102
#[inline]
11031103
#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
1104-
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "CURRENT_RUSTC_VERSION")]
1104+
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "1.88.0")]
11051105
#[rustc_diagnostic_item = "ptr_swap_nonoverlapping"]
11061106
#[rustc_allow_const_fn_unstable(const_eval_select)] // both implementations behave the same
11071107
pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {

core/src/ptr/mut_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ impl<T: ?Sized> *mut T {
15761576
///
15771577
/// [`ptr::replace`]: crate::ptr::replace()
15781578
#[stable(feature = "pointer_methods", since = "1.26.0")]
1579-
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
1579+
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
15801580
#[inline(always)]
15811581
pub const unsafe fn replace(self, src: T) -> T
15821582
where
@@ -2159,7 +2159,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
21592159
}
21602160
}
21612161

2162-
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
2162+
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
21632163
impl<T: ?Sized + Thin> Default for *mut T {
21642164
/// Returns the default value of [`null_mut()`][crate::ptr::null_mut].
21652165
fn default() -> Self {

core/src/ptr/non_null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ impl<T: ?Sized> NonNull<T> {
11661166
/// [`ptr::replace`]: crate::ptr::replace()
11671167
#[inline(always)]
11681168
#[stable(feature = "non_null_convenience", since = "1.80.0")]
1169-
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
1169+
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
11701170
pub const unsafe fn replace(self, src: T) -> T
11711171
where
11721172
T: Sized,

core/src/slice/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,8 +1303,8 @@ impl<T> [T] {
13031303
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
13041304
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
13051305
/// ```
1306-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1307-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1306+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1307+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
13081308
#[inline]
13091309
#[must_use]
13101310
pub const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]] {
@@ -1360,8 +1360,8 @@ impl<T> [T] {
13601360
/// };
13611361
/// assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
13621362
/// ```
1363-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1364-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1363+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1364+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
13651365
#[inline]
13661366
#[track_caller]
13671367
#[must_use]
@@ -1407,8 +1407,8 @@ impl<T> [T] {
14071407
/// assert_eq!(remainder, &['l']);
14081408
/// assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
14091409
/// ```
1410-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1411-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1410+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1411+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
14121412
#[inline]
14131413
#[track_caller]
14141414
#[must_use]
@@ -1498,8 +1498,8 @@ impl<T> [T] {
14981498
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5
14991499
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
15001500
/// ```
1501-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1502-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1501+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1502+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
15031503
#[inline]
15041504
#[must_use]
15051505
pub const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]] {
@@ -1551,8 +1551,8 @@ impl<T> [T] {
15511551
/// }
15521552
/// assert_eq!(v, &[1, 1, 2, 2, 9]);
15531553
/// ```
1554-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1555-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1554+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1555+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
15561556
#[inline]
15571557
#[track_caller]
15581558
#[must_use]
@@ -1604,8 +1604,8 @@ impl<T> [T] {
16041604
/// }
16051605
/// assert_eq!(v, &[9, 1, 1, 2, 2]);
16061606
/// ```
1607-
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1608-
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
1607+
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
1608+
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
16091609
#[inline]
16101610
#[track_caller]
16111611
#[must_use]

0 commit comments

Comments
 (0)