Skip to content

Commit ac553cb

Browse files
committed
update version placeholders
(cherry picked from commit e4840ce)
1 parent b7b8146 commit ac553cb

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

alloc/src/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub use core::slice::ArrayChunksMut;
2727
pub use core::slice::ArrayWindows;
2828
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
2929
pub use core::slice::EscapeAscii;
30-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
30+
#[stable(feature = "get_many_mut", since = "1.86.0")]
3131
pub use core::slice::GetDisjointMutError;
3232
#[stable(feature = "slice_get_slice", since = "1.28.0")]
3333
pub use core::slice::SliceIndex;

alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ impl<T, A: Allocator> Vec<T, A> {
25262526
/// assert_eq!(vec, [1, 2, 3]);
25272527
/// assert_eq!(vec.pop_if(pred), None);
25282528
/// ```
2529-
#[stable(feature = "vec_pop_if", since = "CURRENT_RUSTC_VERSION")]
2529+
#[stable(feature = "vec_pop_if", since = "1.86.0")]
25302530
pub fn pop_if(&mut self, predicate: impl FnOnce(&mut T) -> bool) -> Option<T> {
25312531
let last = self.last_mut()?;
25322532
if predicate(last) { self.pop() } else { None }

core/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1099,5 +1099,5 @@ impl Error for crate::time::TryFromFloatSecsError {}
10991099
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]
11001100
impl Error for crate::ffi::FromBytesUntilNulError {}
11011101

1102-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
1102+
#[stable(feature = "get_many_mut", since = "1.86.0")]
11031103
impl Error for crate::slice::GetDisjointMutError {}

core/src/hint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ pub fn spin_loop() {
472472
/// During constant evaluation, `black_box` is treated as a no-op.
473473
#[inline]
474474
#[stable(feature = "bench_black_box", since = "1.66.0")]
475-
#[rustc_const_stable(feature = "const_black_box", since = "CURRENT_RUSTC_VERSION")]
475+
#[rustc_const_stable(feature = "const_black_box", since = "1.86.0")]
476476
pub const fn black_box<T>(dummy: T) -> T {
477477
crate::intrinsics::black_box(dummy)
478478
}

core/src/num/f32.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ impl f32 {
741741
/// [`MAX`]: Self::MAX
742742
#[inline]
743743
#[doc(alias = "nextUp")]
744-
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
745-
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
744+
#[stable(feature = "float_next_up_down", since = "1.86.0")]
745+
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
746746
pub const fn next_up(self) -> Self {
747747
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
748748
// denormals to zero. This is in general unsound and unsupported, but here
@@ -792,8 +792,8 @@ impl f32 {
792792
/// [`MAX`]: Self::MAX
793793
#[inline]
794794
#[doc(alias = "nextDown")]
795-
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
796-
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
795+
#[stable(feature = "float_next_up_down", since = "1.86.0")]
796+
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
797797
pub const fn next_down(self) -> Self {
798798
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
799799
// denormals to zero. This is in general unsound and unsupported, but here

core/src/num/f64.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ impl f64 {
758758
/// [`MAX`]: Self::MAX
759759
#[inline]
760760
#[doc(alias = "nextUp")]
761-
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
762-
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
761+
#[stable(feature = "float_next_up_down", since = "1.86.0")]
762+
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
763763
pub const fn next_up(self) -> Self {
764764
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
765765
// denormals to zero. This is in general unsound and unsupported, but here
@@ -809,8 +809,8 @@ impl f64 {
809809
/// [`MAX`]: Self::MAX
810810
#[inline]
811811
#[doc(alias = "nextDown")]
812-
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
813-
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
812+
#[stable(feature = "float_next_up_down", since = "1.86.0")]
813+
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
814814
pub const fn next_down(self) -> Self {
815815
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
816816
// denormals to zero. This is in general unsound and unsupported, but here

core/src/num/nonzero.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ macro_rules! nonzero_integer {
625625
/// # }
626626
/// ```
627627
///
628-
#[stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
629-
#[rustc_const_stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
628+
#[stable(feature = "non_zero_count_ones", since = "1.86.0")]
629+
#[rustc_const_stable(feature = "non_zero_count_ones", since = "1.86.0")]
630630
#[doc(alias = "popcount")]
631631
#[doc(alias = "popcnt")]
632632
#[must_use = "this returns the result of the operation, \

core/src/slice/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4569,7 +4569,7 @@ impl<T> [T] {
45694569
///
45704570
/// [`get_disjoint_mut`]: slice::get_disjoint_mut
45714571
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
4572-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
4572+
#[stable(feature = "get_many_mut", since = "1.86.0")]
45734573
#[inline]
45744574
pub unsafe fn get_disjoint_unchecked_mut<I, const N: usize>(
45754575
&mut self,
@@ -4636,7 +4636,7 @@ impl<T> [T] {
46364636
/// }
46374637
/// assert_eq!(v, &[1, 11, 111]);
46384638
/// ```
4639-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
4639+
#[stable(feature = "get_many_mut", since = "1.86.0")]
46404640
#[inline]
46414641
pub fn get_disjoint_mut<I, const N: usize>(
46424642
&mut self,
@@ -5025,7 +5025,7 @@ fn get_disjoint_check_valid<I: GetDisjointMutIndex, const N: usize>(
50255025
/// assert_eq!(v.get_disjoint_mut([0, 999]), Err(GetDisjointMutError::IndexOutOfBounds));
50265026
/// assert_eq!(v.get_disjoint_mut([1, 1]), Err(GetDisjointMutError::OverlappingIndices));
50275027
/// ```
5028-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
5028+
#[stable(feature = "get_many_mut", since = "1.86.0")]
50295029
#[derive(Debug, Clone, PartialEq, Eq)]
50305030
pub enum GetDisjointMutError {
50315031
/// An index provided was out-of-bounds for the slice.
@@ -5034,7 +5034,7 @@ pub enum GetDisjointMutError {
50345034
OverlappingIndices,
50355035
}
50365036

5037-
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
5037+
#[stable(feature = "get_many_mut", since = "1.86.0")]
50385038
impl fmt::Display for GetDisjointMutError {
50395039
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
50405040
let msg = match self {

core/src/str/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl str {
365365
/// ```
366366
#[must_use]
367367
#[stable(feature = "is_char_boundary", since = "1.9.0")]
368-
#[rustc_const_stable(feature = "const_is_char_boundary", since = "CURRENT_RUSTC_VERSION")]
368+
#[rustc_const_stable(feature = "const_is_char_boundary", since = "1.86.0")]
369369
#[inline]
370370
pub const fn is_char_boundary(&self, index: usize) -> bool {
371371
// 0 is always ok.
@@ -822,7 +822,7 @@ impl str {
822822
#[inline]
823823
#[must_use]
824824
#[stable(feature = "str_split_at", since = "1.4.0")]
825-
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
825+
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
826826
pub const fn split_at(&self, mid: usize) -> (&str, &str) {
827827
match self.split_at_checked(mid) {
828828
None => slice_error_fail(self, 0, mid),
@@ -863,7 +863,7 @@ impl str {
863863
#[inline]
864864
#[must_use]
865865
#[stable(feature = "str_split_at", since = "1.4.0")]
866-
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
866+
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
867867
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) {
868868
// is_char_boundary checks that the index is in [0, .len()]
869869
if self.is_char_boundary(mid) {
@@ -903,7 +903,7 @@ impl str {
903903
#[inline]
904904
#[must_use]
905905
#[stable(feature = "split_at_checked", since = "1.80.0")]
906-
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
906+
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
907907
pub const fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)> {
908908
// is_char_boundary checks that the index is in [0, .len()]
909909
if self.is_char_boundary(mid) {
@@ -944,7 +944,7 @@ impl str {
944944
#[inline]
945945
#[must_use]
946946
#[stable(feature = "split_at_checked", since = "1.80.0")]
947-
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
947+
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
948948
pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut str, &mut str)> {
949949
// is_char_boundary checks that the index is in [0, .len()]
950950
if self.is_char_boundary(mid) {

std/src/collections/hash/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ where
10241024
/// ```
10251025
#[inline]
10261026
#[doc(alias = "get_many_mut")]
1027-
#[stable(feature = "map_many_mut", since = "CURRENT_RUSTC_VERSION")]
1027+
#[stable(feature = "map_many_mut", since = "1.86.0")]
10281028
pub fn get_disjoint_mut<Q: ?Sized, const N: usize>(
10291029
&mut self,
10301030
ks: [&Q; N],
@@ -1091,7 +1091,7 @@ where
10911091
/// ```
10921092
#[inline]
10931093
#[doc(alias = "get_many_unchecked_mut")]
1094-
#[stable(feature = "map_many_mut", since = "CURRENT_RUSTC_VERSION")]
1094+
#[stable(feature = "map_many_mut", since = "1.86.0")]
10951095
pub unsafe fn get_disjoint_unchecked_mut<Q: ?Sized, const N: usize>(
10961096
&mut self,
10971097
ks: [&Q; N],

std/src/io/cursor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl<T> Cursor<T> {
153153
/// let reference = buff.get_mut();
154154
/// ```
155155
#[stable(feature = "rust1", since = "1.0.0")]
156-
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
156+
#[rustc_const_stable(feature = "const_mut_cursor", since = "1.86.0")]
157157
pub const fn get_mut(&mut self) -> &mut T {
158158
&mut self.inner
159159
}
@@ -201,7 +201,7 @@ impl<T> Cursor<T> {
201201
/// assert_eq!(buff.position(), 4);
202202
/// ```
203203
#[stable(feature = "rust1", since = "1.0.0")]
204-
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
204+
#[rustc_const_stable(feature = "const_mut_cursor", since = "1.86.0")]
205205
pub const fn set_position(&mut self, pos: u64) {
206206
self.pos = pos;
207207
}

std/src/sync/once_lock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<T> OnceLock<T> {
191191
/// })
192192
/// ```
193193
#[inline]
194-
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
194+
#[stable(feature = "once_wait", since = "1.86.0")]
195195
pub fn wait(&self) -> &T {
196196
self.once.wait_force();
197197

std/src/sync/poison/once.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ impl Once {
284284
/// If this [`Once`] has been poisoned because an initialization closure has
285285
/// panicked, this method will also panic. Use [`wait_force`](Self::wait_force)
286286
/// if this behavior is not desired.
287-
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
287+
#[stable(feature = "once_wait", since = "1.86.0")]
288288
pub fn wait(&self) {
289289
if !self.inner.is_completed() {
290290
self.inner.wait(false);
@@ -293,7 +293,7 @@ impl Once {
293293

294294
/// Blocks the current thread until initialization has completed, ignoring
295295
/// poisoning.
296-
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
296+
#[stable(feature = "once_wait", since = "1.86.0")]
297297
pub fn wait_force(&self) {
298298
if !self.inner.is_completed() {
299299
self.inner.wait(true);

0 commit comments

Comments
 (0)