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]

proc_macro/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -513,29 +513,29 @@ impl Span {
513513
}
514514

515515
/// Creates an empty span pointing to directly before this span.
516-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
516+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
517517
pub fn start(&self) -> Span {
518518
Span(self.0.start())
519519
}
520520

521521
/// Creates an empty span pointing to directly after this span.
522-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
522+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
523523
pub fn end(&self) -> Span {
524524
Span(self.0.end())
525525
}
526526

527527
/// The one-indexed line of the source file where the span starts.
528528
///
529529
/// To obtain the line of the span's end, use `span.end().line()`.
530-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
530+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
531531
pub fn line(&self) -> usize {
532532
self.0.line()
533533
}
534534

535535
/// The one-indexed column of the source file where the span starts.
536536
///
537537
/// To obtain the column of the span's end, use `span.end().column()`.
538-
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
538+
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
539539
pub fn column(&self) -> usize {
540540
self.0.column()
541541
}
@@ -544,7 +544,7 @@ impl Span {
544544
///
545545
/// This might not correspond to a valid file system path.
546546
/// It might be remapped (e.g. `"/src/lib.rs"`) or an artificial path (e.g. `"<command line>"`).
547-
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
547+
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
548548
pub fn file(&self) -> String {
549549
self.0.file()
550550
}
@@ -554,7 +554,7 @@ impl Span {
554554
/// This is the actual path on disk. It is unaffected by path remapping.
555555
///
556556
/// This path should not be embedded in the output of the macro; prefer `file()` instead.
557-
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
557+
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
558558
pub fn local_file(&self) -> Option<PathBuf> {
559559
self.0.local_file().map(|s| PathBuf::from(s))
560560
}

std/src/collections/hash/map.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl<K, V, S> HashMap<K, V, S> {
683683
/// ```
684684
#[inline]
685685
#[rustc_lint_query_instability]
686-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
686+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
687687
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, K, V, F>
688688
where
689689
F: FnMut(&K, &mut V) -> bool,
@@ -1680,7 +1680,7 @@ impl<'a, K, V> Drain<'a, K, V> {
16801680
/// ]);
16811681
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
16821682
/// ```
1683-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
1683+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
16841684
#[must_use = "iterators are lazy and do nothing unless consumed"]
16851685
pub struct ExtractIf<'a, K, V, F> {
16861686
base: base::ExtractIf<'a, K, V, F>,
@@ -2294,7 +2294,7 @@ where
22942294
}
22952295
}
22962296

2297-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
2297+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
22982298
impl<K, V, F> Iterator for ExtractIf<'_, K, V, F>
22992299
where
23002300
F: FnMut(&K, &mut V) -> bool,
@@ -2311,10 +2311,10 @@ where
23112311
}
23122312
}
23132313

2314-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
2314+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
23152315
impl<K, V, F> FusedIterator for ExtractIf<'_, K, V, F> where F: FnMut(&K, &mut V) -> bool {}
23162316

2317-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
2317+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
23182318
impl<K, V, F> fmt::Debug for ExtractIf<'_, K, V, F>
23192319
where
23202320
K: fmt::Debug,

std/src/collections/hash/set.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl<T, S> HashSet<T, S> {
308308
/// ```
309309
#[inline]
310310
#[rustc_lint_query_instability]
311-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
311+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
312312
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, T, F>
313313
where
314314
F: FnMut(&T) -> bool,
@@ -1390,7 +1390,7 @@ pub struct Drain<'a, K: 'a> {
13901390
///
13911391
/// let mut extract_ifed = a.extract_if(|v| v % 2 == 0);
13921392
/// ```
1393-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
1393+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
13941394
pub struct ExtractIf<'a, K, F> {
13951395
base: base::ExtractIf<'a, K, F>,
13961396
}
@@ -1670,7 +1670,7 @@ impl<K: fmt::Debug> fmt::Debug for Drain<'_, K> {
16701670
}
16711671
}
16721672

1673-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
1673+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
16741674
impl<K, F> Iterator for ExtractIf<'_, K, F>
16751675
where
16761676
F: FnMut(&K) -> bool,
@@ -1687,10 +1687,10 @@ where
16871687
}
16881688
}
16891689

1690-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
1690+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
16911691
impl<K, F> FusedIterator for ExtractIf<'_, K, F> where F: FnMut(&K) -> bool {}
16921692

1693-
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
1693+
#[stable(feature = "hash_extract_if", since = "1.88.0")]
16941694
impl<K, F> fmt::Debug for ExtractIf<'_, K, F>
16951695
where
16961696
K: fmt::Debug,

std/src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
162162
#![stable(feature = "rust1", since = "1.0.0")]
163163

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

167167
#[stable(feature = "core_c_void", since = "1.30.0")]

0 commit comments

Comments
 (0)