Skip to content

Commit 6491fe8

Browse files
Replace version placeholders for 1.79
1 parent 75873fd commit 6491fe8

File tree

22 files changed

+65
-68
lines changed

22 files changed

+65
-68
lines changed

alloc/src/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub use core::str::{RSplit, Split};
5353
pub use core::str::{RSplitN, SplitN};
5454
#[stable(feature = "rust1", since = "1.0.0")]
5555
pub use core::str::{RSplitTerminator, SplitTerminator};
56-
#[stable(feature = "utf8_chunks", since = "CURRENT_RUSTC_VERSION")]
56+
#[stable(feature = "utf8_chunks", since = "1.79.0")]
5757
pub use core::str::{Utf8Chunk, Utf8Chunks};
5858

5959
/// Note: `str` in `Concat<str>` is not meaningful here.

core/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl CStr {
528528
#[inline]
529529
#[must_use]
530530
#[doc(alias("len", "strlen"))]
531-
#[stable(feature = "cstr_count_bytes", since = "CURRENT_RUSTC_VERSION")]
531+
#[stable(feature = "cstr_count_bytes", since = "1.79.0")]
532532
#[rustc_const_unstable(feature = "const_cstr_from_ptr", issue = "113219")]
533533
pub const fn count_bytes(&self) -> usize {
534534
self.inner.len() - 1

core/src/intrinsics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ extern "rust-intrinsic" {
11281128
/// any safety invariants.
11291129
///
11301130
/// Consider using [`core::panic::Location::caller`] instead.
1131-
#[rustc_const_stable(feature = "const_caller_location", since = "CURRENT_RUSTC_VERSION")]
1131+
#[rustc_const_stable(feature = "const_caller_location", since = "1.79.0")]
11321132
#[rustc_safe_intrinsic]
11331133
#[rustc_nounwind]
11341134
pub fn caller_location() -> &'static crate::panic::Location<'static>;
@@ -2289,7 +2289,7 @@ extern "rust-intrinsic" {
22892289
///
22902290
/// The stable counterpart of this intrinsic is `unchecked_add` on the various
22912291
/// integer types, such as [`u16::unchecked_add`] and [`i64::unchecked_add`].
2292-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2292+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
22932293
#[rustc_nounwind]
22942294
pub fn unchecked_add<T: Copy>(x: T, y: T) -> T;
22952295

@@ -2298,7 +2298,7 @@ extern "rust-intrinsic" {
22982298
///
22992299
/// The stable counterpart of this intrinsic is `unchecked_sub` on the various
23002300
/// integer types, such as [`u16::unchecked_sub`] and [`i64::unchecked_sub`].
2301-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2301+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
23022302
#[rustc_nounwind]
23032303
pub fn unchecked_sub<T: Copy>(x: T, y: T) -> T;
23042304

@@ -2307,7 +2307,7 @@ extern "rust-intrinsic" {
23072307
///
23082308
/// The stable counterpart of this intrinsic is `unchecked_mul` on the various
23092309
/// integer types, such as [`u16::unchecked_mul`] and [`i64::unchecked_mul`].
2310-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2310+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
23112311
#[rustc_nounwind]
23122312
pub fn unchecked_mul<T: Copy>(x: T, y: T) -> T;
23132313

core/src/iter/traits/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub trait FromIterator<A>: Sized {
169169
/// assert_eq!(lengths, [1, 1, 3, 1]);
170170
/// # Ok(()) }
171171
/// ```
172-
#[stable(feature = "from_iterator_for_tuple", since = "CURRENT_RUSTC_VERSION")]
172+
#[stable(feature = "from_iterator_for_tuple", since = "1.79.0")]
173173
impl<A, B, AE, BE> FromIterator<(AE, BE)> for (A, B)
174174
where
175175
A: Default + Extend<AE>,

core/src/num/int_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ macro_rules! int_impl {
481481
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
482482
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
483483
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
484-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
485-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
484+
#[stable(feature = "unchecked_math", since = "1.79.0")]
485+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
486486
#[must_use = "this returns the result of the operation, \
487487
without modifying the original"]
488488
#[inline(always)]
@@ -623,8 +623,8 @@ macro_rules! int_impl {
623623
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
624624
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
625625
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
626-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
627-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
626+
#[stable(feature = "unchecked_math", since = "1.79.0")]
627+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
628628
#[must_use = "this returns the result of the operation, \
629629
without modifying the original"]
630630
#[inline(always)]
@@ -765,8 +765,8 @@ macro_rules! int_impl {
765765
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
766766
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
767767
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
768-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
769-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
768+
#[stable(feature = "unchecked_math", since = "1.79.0")]
769+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
770770
#[must_use = "this returns the result of the operation, \
771771
without modifying the original"]
772772
#[inline(always)]

core/src/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use error::ParseIntError;
6767
)]
6868
pub use nonzero::ZeroablePrimitive;
6969

70-
#[stable(feature = "generic_nonzero", since = "CURRENT_RUSTC_VERSION")]
70+
#[stable(feature = "generic_nonzero", since = "1.79.0")]
7171
pub use nonzero::NonZero;
7272

7373
#[stable(feature = "signed_nonzero", since = "1.34.0")]

core/src/num/nonzero.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl_zeroable_primitive!(
109109
///
110110
/// assert_eq!(size_of::<Option<NonZero<u32>>>(), size_of::<u32>());
111111
/// ```
112-
#[stable(feature = "generic_nonzero", since = "CURRENT_RUSTC_VERSION")]
112+
#[stable(feature = "generic_nonzero", since = "1.79.0")]
113113
#[repr(transparent)]
114114
#[rustc_nonnull_optimization_guaranteed]
115115
#[rustc_diagnostic_item = "NonZero"]
@@ -861,7 +861,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
861861
}
862862
}
863863

864-
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
864+
#[stable(feature = "nonzero_div_assign", since = "1.79.0")]
865865
impl DivAssign<$Ty> for $Int {
866866
/// This operation rounds towards zero,
867867
/// truncating any fractional part of the exact result, and cannot panic.
@@ -884,7 +884,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
884884
}
885885
}
886886

887-
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
887+
#[stable(feature = "nonzero_div_assign", since = "1.79.0")]
888888
impl RemAssign<$Ty> for $Int {
889889
/// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic.
890890
#[inline]

core/src/num/uint_macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ macro_rules! uint_impl {
503503
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
504504
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
505505
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
506-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
507-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
506+
#[stable(feature = "unchecked_math", since = "1.79.0")]
507+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
508508
#[must_use = "this returns the result of the operation, \
509509
without modifying the original"]
510510
#[inline(always)]
@@ -660,8 +660,8 @@ macro_rules! uint_impl {
660660
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
661661
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
662662
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
663-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
664-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
663+
#[stable(feature = "unchecked_math", since = "1.79.0")]
664+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
665665
#[must_use = "this returns the result of the operation, \
666666
without modifying the original"]
667667
#[inline(always)]
@@ -746,8 +746,8 @@ macro_rules! uint_impl {
746746
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
747747
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
748748
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
749-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
750-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
749+
#[stable(feature = "unchecked_math", since = "1.79.0")]
750+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
751751
#[must_use = "this returns the result of the operation, \
752752
without modifying the original"]
753753
#[inline(always)]

core/src/panic/location.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'a> Location<'a> {
8181
/// ```
8282
#[must_use]
8383
#[stable(feature = "track_caller", since = "1.46.0")]
84-
#[rustc_const_stable(feature = "const_caller_location", since = "CURRENT_RUSTC_VERSION")]
84+
#[rustc_const_stable(feature = "const_caller_location", since = "1.79.0")]
8585
#[track_caller]
8686
#[inline]
8787
pub const fn caller() -> &'static Location<'static> {
@@ -123,7 +123,7 @@ impl<'a> Location<'a> {
123123
/// ```
124124
#[must_use]
125125
#[stable(feature = "panic_hooks", since = "1.10.0")]
126-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
126+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
127127
#[inline]
128128
pub const fn file(&self) -> &str {
129129
self.file
@@ -148,7 +148,7 @@ impl<'a> Location<'a> {
148148
/// ```
149149
#[must_use]
150150
#[stable(feature = "panic_hooks", since = "1.10.0")]
151-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
151+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
152152
#[inline]
153153
pub const fn line(&self) -> u32 {
154154
self.line
@@ -173,7 +173,7 @@ impl<'a> Location<'a> {
173173
/// ```
174174
#[must_use]
175175
#[stable(feature = "panic_col", since = "1.25.0")]
176-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
176+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
177177
#[inline]
178178
pub const fn column(&self) -> u32 {
179179
self.col

core/src/ptr/const_ptr.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ impl<T: ?Sized> *const T {
14961496
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
14971497
#[must_use]
14981498
#[inline]
1499-
#[stable(feature = "pointer_is_aligned", since = "CURRENT_RUSTC_VERSION")]
1499+
#[stable(feature = "pointer_is_aligned", since = "1.79.0")]
15001500
#[rustc_const_unstable(feature = "const_pointer_is_aligned", issue = "104203")]
15011501
pub const fn is_aligned(self) -> bool
15021502
where
@@ -1653,8 +1653,8 @@ impl<T> *const [T] {
16531653
/// assert_eq!(slice.len(), 3);
16541654
/// ```
16551655
#[inline]
1656-
#[stable(feature = "slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1657-
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1656+
#[stable(feature = "slice_ptr_len", since = "1.79.0")]
1657+
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "1.79.0")]
16581658
#[rustc_allow_const_fn_unstable(ptr_metadata)]
16591659
pub const fn len(self) -> usize {
16601660
metadata(self)
@@ -1671,8 +1671,8 @@ impl<T> *const [T] {
16711671
/// assert!(!slice.is_empty());
16721672
/// ```
16731673
#[inline(always)]
1674-
#[stable(feature = "slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1675-
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1674+
#[stable(feature = "slice_ptr_len", since = "1.79.0")]
1675+
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "1.79.0")]
16761676
pub const fn is_empty(self) -> bool {
16771677
self.len() == 0
16781678
}

0 commit comments

Comments
 (0)