Skip to content

Commit 3644f8c

Browse files
pietroalbinigitbot
authored and
gitbot
committed
update version placeholders
1 parent 522100b commit 3644f8c

File tree

23 files changed

+70
-70
lines changed

23 files changed

+70
-70
lines changed

alloc/src/boxed.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
20292029
}
20302030

20312031
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2032-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2032+
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "1.85.0"))]
20332033
impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args> for Box<F, A> {
20342034
type Output = F::Output;
20352035
type CallOnceFuture = F::CallOnceFuture;
@@ -2040,7 +2040,7 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
20402040
}
20412041

20422042
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2043-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2043+
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "1.85.0"))]
20442044
impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> for Box<F, A> {
20452045
type CallRefFuture<'a>
20462046
= F::CallRefFuture<'a>
@@ -2053,7 +2053,7 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
20532053
}
20542054

20552055
#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))]
2056-
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))]
2056+
#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "1.85.0"))]
20572057
impl<Args: Tuple, F: AsyncFn<Args> + ?Sized, A: Allocator> AsyncFn<Args> for Box<F, A> {
20582058
extern "rust-call" fn async_call(&self, args: Args) -> Self::CallRefFuture<'_> {
20592059
F::async_call(self, args)

core/src/alloc/layout.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl Layout {
178178
/// allocate backing structure for `T` (which could be a trait
179179
/// or other unsized type like a slice).
180180
#[stable(feature = "alloc_layout", since = "1.28.0")]
181-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
181+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
182182
#[must_use]
183183
#[inline]
184184
pub const fn for_value<T: ?Sized>(t: &T) -> Self {
@@ -252,7 +252,7 @@ impl Layout {
252252
/// Returns an error if the combination of `self.size()` and the given
253253
/// `align` violates the conditions listed in [`Layout::from_size_align`].
254254
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
255-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
255+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
256256
#[inline]
257257
pub const fn align_to(&self, align: usize) -> Result<Self, LayoutError> {
258258
if let Some(align) = Alignment::new(align) {
@@ -327,7 +327,7 @@ impl Layout {
327327
/// This is equivalent to adding the result of `padding_needed_for`
328328
/// to the layout's current size.
329329
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
330-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
330+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
331331
#[must_use = "this returns a new `Layout`, \
332332
without modifying the original"]
333333
#[inline]
@@ -426,7 +426,7 @@ impl Layout {
426426
/// # assert_eq!(repr_c(&[u64, u32, u16, u32]), Ok((s, vec![0, 8, 12, 16])));
427427
/// ```
428428
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
429-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
429+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
430430
#[inline]
431431
pub const fn extend(&self, next: Self) -> Result<(Self, usize), LayoutError> {
432432
let new_align = Alignment::max(self.align, next.align);
@@ -489,7 +489,7 @@ impl Layout {
489489
/// On arithmetic overflow or when the total size would exceed
490490
/// `isize::MAX`, returns `LayoutError`.
491491
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
492-
#[rustc_const_stable(feature = "const_alloc_layout", since = "CURRENT_RUSTC_VERSION")]
492+
#[rustc_const_stable(feature = "const_alloc_layout", since = "1.85.0")]
493493
#[inline]
494494
pub const fn array<T>(n: usize) -> Result<Self, LayoutError> {
495495
// Reduce the amount of code we need to monomorphize per `T`.

core/src/hash/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,10 @@ pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
752752

753753
impl<H> BuildHasherDefault<H> {
754754
/// Creates a new BuildHasherDefault for Hasher `H`.
755-
#[stable(feature = "build_hasher_default_const_new", since = "CURRENT_RUSTC_VERSION")]
755+
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
756756
#[rustc_const_stable(
757757
feature = "build_hasher_default_const_new",
758-
since = "CURRENT_RUSTC_VERSION"
758+
since = "1.85.0"
759759
)]
760760
pub const fn new() -> Self {
761761
BuildHasherDefault(marker::PhantomData)

core/src/iter/traits/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ macro_rules! spec_tuple_impl {
472472
#[doc(fake_variadic)]
473473
#[doc = "This trait is implemented for tuples up to twelve items long. The `impl`s for \
474474
1- and 3- through 12-ary tuples were stabilized after 2-tuples, in \
475-
CURRENT_RUSTC_VERSION."]
475+
1.85.0."]
476476
=> ($ty_name, $var_name, $extend_ty_name, $cnt),
477477
);
478478
};

core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ impl<T> MaybeUninit<T> {
507507
/// ```
508508
#[inline(always)]
509509
#[stable(feature = "maybe_uninit_write", since = "1.55.0")]
510-
#[rustc_const_stable(feature = "const_maybe_uninit_write", since = "CURRENT_RUSTC_VERSION")]
510+
#[rustc_const_stable(feature = "const_maybe_uninit_write", since = "1.85.0")]
511511
pub const fn write(&mut self, val: T) -> &mut T {
512512
*self = MaybeUninit::new(val);
513513
// SAFETY: We just initialized this value.

core/src/mem/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ pub const fn size_of<T>() -> usize {
333333
#[inline]
334334
#[must_use]
335335
#[stable(feature = "rust1", since = "1.0.0")]
336-
#[rustc_const_stable(feature = "const_size_of_val", since = "CURRENT_RUSTC_VERSION")]
336+
#[rustc_const_stable(feature = "const_size_of_val", since = "1.85.0")]
337337
#[cfg_attr(not(test), rustc_diagnostic_item = "mem_size_of_val")]
338338
pub const fn size_of_val<T: ?Sized>(val: &T) -> usize {
339339
// SAFETY: `val` is a reference, so it's a valid raw pointer
@@ -484,7 +484,7 @@ pub const fn align_of<T>() -> usize {
484484
#[inline]
485485
#[must_use]
486486
#[stable(feature = "rust1", since = "1.0.0")]
487-
#[rustc_const_stable(feature = "const_align_of_val", since = "CURRENT_RUSTC_VERSION")]
487+
#[rustc_const_stable(feature = "const_align_of_val", since = "1.85.0")]
488488
#[allow(deprecated)]
489489
pub const fn align_of_val<T: ?Sized>(val: &T) -> usize {
490490
// SAFETY: val is a reference, so it's a valid raw pointer
@@ -725,7 +725,7 @@ pub unsafe fn uninitialized<T>() -> T {
725725
/// ```
726726
#[inline]
727727
#[stable(feature = "rust1", since = "1.0.0")]
728-
#[rustc_const_stable(feature = "const_swap", since = "CURRENT_RUSTC_VERSION")]
728+
#[rustc_const_stable(feature = "const_swap", since = "1.85.0")]
729729
#[rustc_diagnostic_item = "mem_swap"]
730730
pub const fn swap<T>(x: &mut T, y: &mut T) {
731731
// SAFETY: `&mut` guarantees these are typed readable and writable

core/src/num/f32.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ impl f32 {
818818
/// ```
819819
#[must_use = "this returns the result of the operation, without modifying the original"]
820820
#[stable(feature = "rust1", since = "1.0.0")]
821-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
821+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
822822
#[inline]
823823
pub const fn recip(self) -> f32 {
824824
1.0 / self
@@ -836,7 +836,7 @@ impl f32 {
836836
#[must_use = "this returns the result of the operation, \
837837
without modifying the original"]
838838
#[stable(feature = "f32_deg_rad_conversions", since = "1.7.0")]
839-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
839+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
840840
#[inline]
841841
pub const fn to_degrees(self) -> f32 {
842842
// Use a constant for better precision.
@@ -856,7 +856,7 @@ impl f32 {
856856
#[must_use = "this returns the result of the operation, \
857857
without modifying the original"]
858858
#[stable(feature = "f32_deg_rad_conversions", since = "1.7.0")]
859-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
859+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
860860
#[inline]
861861
pub const fn to_radians(self) -> f32 {
862862
const RADS_PER_DEG: f32 = consts::PI / 180.0;
@@ -878,7 +878,7 @@ impl f32 {
878878
/// ```
879879
#[must_use = "this returns the result of the comparison, without modifying either input"]
880880
#[stable(feature = "rust1", since = "1.0.0")]
881-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
881+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
882882
#[inline]
883883
pub const fn max(self, other: f32) -> f32 {
884884
intrinsics::maxnumf32(self, other)
@@ -899,7 +899,7 @@ impl f32 {
899899
/// ```
900900
#[must_use = "this returns the result of the comparison, without modifying either input"]
901901
#[stable(feature = "rust1", since = "1.0.0")]
902-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
902+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
903903
#[inline]
904904
pub const fn min(self, other: f32) -> f32 {
905905
intrinsics::minnumf32(self, other)
@@ -988,8 +988,8 @@ impl f32 {
988988
/// assert_eq!((-5.5f32).midpoint(8.0), 1.25);
989989
/// ```
990990
#[inline]
991-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
992-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
991+
#[stable(feature = "num_midpoint", since = "1.85.0")]
992+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
993993
pub const fn midpoint(self, other: f32) -> f32 {
994994
cfg_if! {
995995
// Allow faster implementation that have known good 64-bit float
@@ -1396,7 +1396,7 @@ impl f32 {
13961396
/// ```
13971397
#[must_use = "method returns a new number and does not mutate the original value"]
13981398
#[stable(feature = "clamp", since = "1.50.0")]
1399-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1399+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14001400
#[inline]
14011401
pub const fn clamp(mut self, min: f32, max: f32) -> f32 {
14021402
const_assert!(
@@ -1433,7 +1433,7 @@ impl f32 {
14331433
/// ```
14341434
#[must_use = "method returns a new number and does not mutate the original value"]
14351435
#[stable(feature = "rust1", since = "1.0.0")]
1436-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1436+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14371437
#[inline]
14381438
pub const fn abs(self) -> f32 {
14391439
// SAFETY: this is actually a safe intrinsic
@@ -1458,7 +1458,7 @@ impl f32 {
14581458
/// ```
14591459
#[must_use = "method returns a new number and does not mutate the original value"]
14601460
#[stable(feature = "rust1", since = "1.0.0")]
1461-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1461+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14621462
#[inline]
14631463
pub const fn signum(self) -> f32 {
14641464
if self.is_nan() { Self::NAN } else { 1.0_f32.copysign(self) }
@@ -1493,7 +1493,7 @@ impl f32 {
14931493
#[must_use = "method returns a new number and does not mutate the original value"]
14941494
#[inline]
14951495
#[stable(feature = "copysign", since = "1.35.0")]
1496-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1496+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14971497
pub const fn copysign(self, sign: f32) -> f32 {
14981498
// SAFETY: this is actually a safe intrinsic
14991499
unsafe { intrinsics::copysignf32(self, sign) }

core/src/num/f64.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ impl f64 {
835835
/// ```
836836
#[must_use = "this returns the result of the operation, without modifying the original"]
837837
#[stable(feature = "rust1", since = "1.0.0")]
838-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
838+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
839839
#[inline]
840840
pub const fn recip(self) -> f64 {
841841
1.0 / self
@@ -853,7 +853,7 @@ impl f64 {
853853
#[must_use = "this returns the result of the operation, \
854854
without modifying the original"]
855855
#[stable(feature = "rust1", since = "1.0.0")]
856-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
856+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
857857
#[inline]
858858
pub const fn to_degrees(self) -> f64 {
859859
// The division here is correctly rounded with respect to the true
@@ -874,7 +874,7 @@ impl f64 {
874874
#[must_use = "this returns the result of the operation, \
875875
without modifying the original"]
876876
#[stable(feature = "rust1", since = "1.0.0")]
877-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
877+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
878878
#[inline]
879879
pub const fn to_radians(self) -> f64 {
880880
const RADS_PER_DEG: f64 = consts::PI / 180.0;
@@ -896,7 +896,7 @@ impl f64 {
896896
/// ```
897897
#[must_use = "this returns the result of the comparison, without modifying either input"]
898898
#[stable(feature = "rust1", since = "1.0.0")]
899-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
899+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
900900
#[inline]
901901
pub const fn max(self, other: f64) -> f64 {
902902
intrinsics::maxnumf64(self, other)
@@ -917,7 +917,7 @@ impl f64 {
917917
/// ```
918918
#[must_use = "this returns the result of the comparison, without modifying either input"]
919919
#[stable(feature = "rust1", since = "1.0.0")]
920-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
920+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
921921
#[inline]
922922
pub const fn min(self, other: f64) -> f64 {
923923
intrinsics::minnumf64(self, other)
@@ -1006,8 +1006,8 @@ impl f64 {
10061006
/// assert_eq!((-5.5f64).midpoint(8.0), 1.25);
10071007
/// ```
10081008
#[inline]
1009-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
1010-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
1009+
#[stable(feature = "num_midpoint", since = "1.85.0")]
1010+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
10111011
pub const fn midpoint(self, other: f64) -> f64 {
10121012
const LO: f64 = f64::MIN_POSITIVE * 2.;
10131013
const HI: f64 = f64::MAX / 2.;
@@ -1396,7 +1396,7 @@ impl f64 {
13961396
/// ```
13971397
#[must_use = "method returns a new number and does not mutate the original value"]
13981398
#[stable(feature = "clamp", since = "1.50.0")]
1399-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1399+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14001400
#[inline]
14011401
pub const fn clamp(mut self, min: f64, max: f64) -> f64 {
14021402
const_assert!(
@@ -1433,7 +1433,7 @@ impl f64 {
14331433
/// ```
14341434
#[must_use = "method returns a new number and does not mutate the original value"]
14351435
#[stable(feature = "rust1", since = "1.0.0")]
1436-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1436+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14371437
#[inline]
14381438
pub const fn abs(self) -> f64 {
14391439
// SAFETY: this is actually a safe intrinsic
@@ -1458,7 +1458,7 @@ impl f64 {
14581458
/// ```
14591459
#[must_use = "method returns a new number and does not mutate the original value"]
14601460
#[stable(feature = "rust1", since = "1.0.0")]
1461-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1461+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14621462
#[inline]
14631463
pub const fn signum(self) -> f64 {
14641464
if self.is_nan() { Self::NAN } else { 1.0_f64.copysign(self) }
@@ -1492,7 +1492,7 @@ impl f64 {
14921492
/// ```
14931493
#[must_use = "method returns a new number and does not mutate the original value"]
14941494
#[stable(feature = "copysign", since = "1.35.0")]
1495-
#[rustc_const_stable(feature = "const_float_methods", since = "CURRENT_RUSTC_VERSION")]
1495+
#[rustc_const_stable(feature = "const_float_methods", since = "1.85.0")]
14961496
#[inline]
14971497
pub const fn copysign(self, sign: f64) -> f64 {
14981498
// SAFETY: this is actually a safe intrinsic

core/src/num/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ macro_rules! midpoint_impl {
138138
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(4), 2);")]
139139
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".midpoint(4), 2);")]
140140
/// ```
141-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
142-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
141+
#[stable(feature = "num_midpoint", since = "1.85.0")]
142+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
143143
#[must_use = "this returns the result of the operation, \
144144
without modifying the original"]
145145
#[inline]
@@ -192,8 +192,8 @@ macro_rules! midpoint_impl {
192192
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".midpoint(4), 2);")]
193193
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".midpoint(4), 2);")]
194194
/// ```
195-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
196-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
195+
#[stable(feature = "num_midpoint", since = "1.85.0")]
196+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
197197
#[must_use = "this returns the result of the operation, \
198198
without modifying the original"]
199199
#[inline]

core/src/num/nonzero.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,8 @@ macro_rules! nonzero_integer_signedness_dependent_methods {
15431543
/// # Some(())
15441544
/// # }
15451545
/// ```
1546-
#[stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
1547-
#[rustc_const_stable(feature = "num_midpoint", since = "CURRENT_RUSTC_VERSION")]
1546+
#[stable(feature = "num_midpoint", since = "1.85.0")]
1547+
#[rustc_const_stable(feature = "num_midpoint", since = "1.85.0")]
15481548
#[must_use = "this returns the result of the operation, \
15491549
without modifying the original"]
15501550
#[inline]

0 commit comments

Comments
 (0)