Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a2ff49b

Browse files
committedJun 11, 2024
replace version placeholder
1 parent c8170e6 commit a2ff49b

File tree

21 files changed

+110
-113
lines changed

21 files changed

+110
-113
lines changed
 

‎alloc/src/boxed.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -2123,23 +2123,23 @@ impl<I> FromIterator<I> for Box<[I]> {
21232123

21242124
/// This implementation is required to make sure that the `Box<[I]>: IntoIterator`
21252125
/// implementation doesn't overlap with `IntoIterator for T where T: Iterator` blanket.
2126-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2126+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21272127
impl<I, A: Allocator> !Iterator for Box<[I], A> {}
21282128

21292129
/// This implementation is required to make sure that the `&Box<[I]>: IntoIterator`
21302130
/// implementation doesn't overlap with `IntoIterator for T where T: Iterator` blanket.
2131-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2131+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21322132
impl<'a, I, A: Allocator> !Iterator for &'a Box<[I], A> {}
21332133

21342134
/// This implementation is required to make sure that the `&mut Box<[I]>: IntoIterator`
21352135
/// implementation doesn't overlap with `IntoIterator for T where T: Iterator` blanket.
2136-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2136+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21372137
impl<'a, I, A: Allocator> !Iterator for &'a mut Box<[I], A> {}
21382138

21392139
// Note: the `#[rustc_skip_during_method_dispatch(boxed_slice)]` on `trait IntoIterator`
21402140
// hides this implementation from explicit `.into_iter()` calls on editions < 2024,
21412141
// so those calls will still resolve to the slice implementation, by reference.
2142-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2142+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21432143
impl<I, A: Allocator> IntoIterator for Box<[I], A> {
21442144
type IntoIter = vec::IntoIter<I, A>;
21452145
type Item = I;
@@ -2148,7 +2148,7 @@ impl<I, A: Allocator> IntoIterator for Box<[I], A> {
21482148
}
21492149
}
21502150

2151-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2151+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21522152
impl<'a, I, A: Allocator> IntoIterator for &'a Box<[I], A> {
21532153
type IntoIter = slice::Iter<'a, I>;
21542154
type Item = &'a I;
@@ -2157,7 +2157,7 @@ impl<'a, I, A: Allocator> IntoIterator for &'a Box<[I], A> {
21572157
}
21582158
}
21592159

2160-
#[stable(feature = "boxed_slice_into_iter", since = "CURRENT_RUSTC_VERSION")]
2160+
#[stable(feature = "boxed_slice_into_iter", since = "1.80.0")]
21612161
impl<'a, I, A: Allocator> IntoIterator for &'a mut Box<[I], A> {
21622162
type IntoIter = slice::IterMut<'a, I>;
21632163
type Item = &'a mut I;
@@ -2167,47 +2167,47 @@ impl<'a, I, A: Allocator> IntoIterator for &'a mut Box<[I], A> {
21672167
}
21682168

21692169
#[cfg(not(no_global_oom_handling))]
2170-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2170+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
21712171
impl FromIterator<char> for Box<str> {
21722172
fn from_iter<T: IntoIterator<Item = char>>(iter: T) -> Self {
21732173
String::from_iter(iter).into_boxed_str()
21742174
}
21752175
}
21762176

21772177
#[cfg(not(no_global_oom_handling))]
2178-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2178+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
21792179
impl<'a> FromIterator<&'a char> for Box<str> {
21802180
fn from_iter<T: IntoIterator<Item = &'a char>>(iter: T) -> Self {
21812181
String::from_iter(iter).into_boxed_str()
21822182
}
21832183
}
21842184

21852185
#[cfg(not(no_global_oom_handling))]
2186-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2186+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
21872187
impl<'a> FromIterator<&'a str> for Box<str> {
21882188
fn from_iter<T: IntoIterator<Item = &'a str>>(iter: T) -> Self {
21892189
String::from_iter(iter).into_boxed_str()
21902190
}
21912191
}
21922192

21932193
#[cfg(not(no_global_oom_handling))]
2194-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2194+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
21952195
impl FromIterator<String> for Box<str> {
21962196
fn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self {
21972197
String::from_iter(iter).into_boxed_str()
21982198
}
21992199
}
22002200

22012201
#[cfg(not(no_global_oom_handling))]
2202-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2202+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
22032203
impl<A: Allocator> FromIterator<Box<str, A>> for Box<str> {
22042204
fn from_iter<T: IntoIterator<Item = Box<str, A>>>(iter: T) -> Self {
22052205
String::from_iter(iter).into_boxed_str()
22062206
}
22072207
}
22082208

22092209
#[cfg(not(no_global_oom_handling))]
2210-
#[stable(feature = "boxed_str_from_iter", since = "CURRENT_RUSTC_VERSION")]
2210+
#[stable(feature = "boxed_str_from_iter", since = "1.80.0")]
22112211
impl<'a> FromIterator<Cow<'a, str>> for Box<str> {
22122212
fn from_iter<T: IntoIterator<Item = Cow<'a, str>>>(iter: T) -> Self {
22132213
String::from_iter(iter).into_boxed_str()

‎alloc/src/collections/binary_heap/mod.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,7 @@ impl<T: Ord> BinaryHeap<T> {
440440
/// heap.push(4);
441441
/// ```
442442
#[stable(feature = "rust1", since = "1.0.0")]
443-
#[rustc_const_stable(
444-
feature = "const_binary_heap_constructor",
445-
since = "CURRENT_RUSTC_VERSION"
446-
)]
443+
#[rustc_const_stable(feature = "const_binary_heap_constructor", since = "1.80.0")]
447444
#[must_use]
448445
pub const fn new() -> BinaryHeap<T> {
449446
BinaryHeap { data: vec![] }
@@ -1224,7 +1221,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
12241221
/// io::sink().write(heap.as_slice()).unwrap();
12251222
/// ```
12261223
#[must_use]
1227-
#[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")]
1224+
#[stable(feature = "binary_heap_as_slice", since = "1.80.0")]
12281225
pub fn as_slice(&self) -> &[T] {
12291226
self.data.as_slice()
12301227
}

‎alloc/src/ffi/c_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ impl From<&CStr> for Rc<CStr> {
911911
}
912912

913913
#[cfg(not(no_global_oom_handling))]
914-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
914+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
915915
impl Default for Rc<CStr> {
916916
/// Creates an empty CStr inside an Rc
917917
///

‎alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ impl<T: Default> Default for Rc<T> {
22502250
}
22512251

22522252
#[cfg(not(no_global_oom_handling))]
2253-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
2253+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
22542254
impl Default for Rc<str> {
22552255
/// Creates an empty str inside an Rc
22562256
///
@@ -2262,7 +2262,7 @@ impl Default for Rc<str> {
22622262
}
22632263

22642264
#[cfg(not(no_global_oom_handling))]
2265-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
2265+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
22662266
impl<T> Default for Rc<[T]> {
22672267
/// Creates an empty `[T]` inside an Rc
22682268
///

‎alloc/src/sync.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3405,7 +3405,7 @@ static STATIC_INNER_SLICE: SliceArcInnerForStatic = SliceArcInnerForStatic {
34053405
};
34063406

34073407
#[cfg(not(no_global_oom_handling))]
3408-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
3408+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
34093409
impl Default for Arc<str> {
34103410
/// Creates an empty str inside an Arc
34113411
///
@@ -3420,7 +3420,7 @@ impl Default for Arc<str> {
34203420
}
34213421

34223422
#[cfg(not(no_global_oom_handling))]
3423-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
3423+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
34243424
impl Default for Arc<core::ffi::CStr> {
34253425
/// Creates an empty CStr inside an Arc
34263426
///
@@ -3439,7 +3439,7 @@ impl Default for Arc<core::ffi::CStr> {
34393439
}
34403440

34413441
#[cfg(not(no_global_oom_handling))]
3442-
#[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")]
3442+
#[stable(feature = "more_rc_default_impls", since = "1.80.0")]
34433443
impl<T> Default for Arc<[T]> {
34443444
/// Creates an empty `[T]` inside an Arc
34453445
///

‎alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
26492649
/// let mut flattened = vec.into_flattened();
26502650
/// assert_eq!(flattened.pop(), Some(6));
26512651
/// ```
2652-
#[stable(feature = "slice_flatten", since = "CURRENT_RUSTC_VERSION")]
2652+
#[stable(feature = "slice_flatten", since = "1.80.0")]
26532653
pub fn into_flattened(self) -> Vec<T, A> {
26542654
let (ptr, len, cap, alloc) = self.into_raw_parts_with_alloc();
26552655
let (new_len, new_cap) = if T::IS_ZST {

‎core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ use crate::ptr::{self, NonNull};
260260
mod lazy;
261261
mod once;
262262

263-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
263+
#[stable(feature = "lazy_cell", since = "1.80.0")]
264264
pub use lazy::LazyCell;
265265
#[stable(feature = "once_cell", since = "1.70.0")]
266266
pub use once::OnceCell;

‎core/src/cell/lazy.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum State<T, F> {
3434
/// // 92
3535
/// // 92
3636
/// ```
37-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
37+
#[stable(feature = "lazy_cell", since = "1.80.0")]
3838
pub struct LazyCell<T, F = fn() -> T> {
3939
state: UnsafeCell<State<T, F>>,
4040
}
@@ -54,8 +54,8 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
5454
/// assert_eq!(&*lazy, "HELLO, WORLD!");
5555
/// ```
5656
#[inline]
57-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
58-
#[rustc_const_stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
57+
#[stable(feature = "lazy_cell", since = "1.80.0")]
58+
#[rustc_const_stable(feature = "lazy_cell", since = "1.80.0")]
5959
pub const fn new(f: F) -> LazyCell<T, F> {
6060
LazyCell { state: UnsafeCell::new(State::Uninit(f)) }
6161
}
@@ -103,7 +103,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
103103
/// assert_eq!(&*lazy, &92);
104104
/// ```
105105
#[inline]
106-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
106+
#[stable(feature = "lazy_cell", since = "1.80.0")]
107107
pub fn force(this: &LazyCell<T, F>) -> &T {
108108
// SAFETY:
109109
// This invalidates any mutable references to the data. The resulting
@@ -167,7 +167,7 @@ impl<T, F> LazyCell<T, F> {
167167
}
168168
}
169169

170-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
170+
#[stable(feature = "lazy_cell", since = "1.80.0")]
171171
impl<T, F: FnOnce() -> T> Deref for LazyCell<T, F> {
172172
type Target = T;
173173
#[inline]
@@ -176,7 +176,7 @@ impl<T, F: FnOnce() -> T> Deref for LazyCell<T, F> {
176176
}
177177
}
178178

179-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
179+
#[stable(feature = "lazy_cell", since = "1.80.0")]
180180
impl<T: Default> Default for LazyCell<T> {
181181
/// Creates a new lazy value using `Default` as the initializing function.
182182
#[inline]
@@ -185,7 +185,7 @@ impl<T: Default> Default for LazyCell<T> {
185185
}
186186
}
187187

188-
#[stable(feature = "lazy_cell", since = "CURRENT_RUSTC_VERSION")]
188+
#[stable(feature = "lazy_cell", since = "1.80.0")]
189189
impl<T: fmt::Debug, F> fmt::Debug for LazyCell<T, F> {
190190
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
191191
let mut d = f.debug_tuple("LazyCell");

‎core/src/net/ip_addr.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl Ipv4Addr {
464464
///
465465
/// assert_eq!(Ipv4Addr::BITS, 32);
466466
/// ```
467-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
467+
#[stable(feature = "ip_bits", since = "1.80.0")]
468468
pub const BITS: u32 = 32;
469469

470470
/// Converts an IPv4 address into a `u32` representation using native byte order.
@@ -492,8 +492,8 @@ impl Ipv4Addr {
492492
/// assert_eq!(Ipv4Addr::new(0x12, 0x34, 0x56, 0x00), Ipv4Addr::from_bits(addr_bits));
493493
///
494494
/// ```
495-
#[rustc_const_stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
496-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
495+
#[rustc_const_stable(feature = "ip_bits", since = "1.80.0")]
496+
#[stable(feature = "ip_bits", since = "1.80.0")]
497497
#[must_use]
498498
#[inline]
499499
pub const fn to_bits(self) -> u32 {
@@ -512,8 +512,8 @@ impl Ipv4Addr {
512512
/// let addr = Ipv4Addr::from(0x12345678);
513513
/// assert_eq!(Ipv4Addr::new(0x12, 0x34, 0x56, 0x78), addr);
514514
/// ```
515-
#[rustc_const_stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
516-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
515+
#[rustc_const_stable(feature = "ip_bits", since = "1.80.0")]
516+
#[stable(feature = "ip_bits", since = "1.80.0")]
517517
#[must_use]
518518
#[inline]
519519
pub const fn from_bits(bits: u32) -> Ipv4Addr {
@@ -1238,7 +1238,7 @@ impl Ipv6Addr {
12381238
///
12391239
/// assert_eq!(Ipv6Addr::BITS, 128);
12401240
/// ```
1241-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
1241+
#[stable(feature = "ip_bits", since = "1.80.0")]
12421242
pub const BITS: u32 = 128;
12431243

12441244
/// Converts an IPv6 address into a `u128` representation using native byte order.
@@ -1277,8 +1277,8 @@ impl Ipv6Addr {
12771277
/// Ipv6Addr::from_bits(addr_bits));
12781278
///
12791279
/// ```
1280-
#[rustc_const_stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
1281-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
1280+
#[rustc_const_stable(feature = "ip_bits", since = "1.80.0")]
1281+
#[stable(feature = "ip_bits", since = "1.80.0")]
12821282
#[must_use]
12831283
#[inline]
12841284
pub const fn to_bits(self) -> u128 {
@@ -1302,8 +1302,8 @@ impl Ipv6Addr {
13021302
/// ),
13031303
/// addr);
13041304
/// ```
1305-
#[rustc_const_stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
1306-
#[stable(feature = "ip_bits", since = "CURRENT_RUSTC_VERSION")]
1305+
#[rustc_const_stable(feature = "ip_bits", since = "1.80.0")]
1306+
#[stable(feature = "ip_bits", since = "1.80.0")]
13071307
#[must_use]
13081308
#[inline]
13091309
pub const fn from_bits(bits: u128) -> Ipv6Addr {

‎core/src/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ impl<T> Option<T> {
17241724
/// assert_eq!(prev, Some(43));
17251725
/// ```
17261726
#[inline]
1727-
#[stable(feature = "option_take_if", since = "CURRENT_RUSTC_VERSION")]
1727+
#[stable(feature = "option_take_if", since = "1.80.0")]
17281728
pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
17291729
where
17301730
P: FnOnce(&mut T) -> bool,

‎core/src/prelude/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub use crate::ops::{Drop, Fn, FnMut, FnOnce};
1414
#[stable(feature = "core_prelude", since = "1.4.0")]
1515
#[doc(no_inline)]
1616
pub use crate::mem::drop;
17-
#[stable(feature = "size_of_prelude", since = "CURRENT_RUSTC_VERSION")]
17+
#[stable(feature = "size_of_prelude", since = "1.80.0")]
1818
#[doc(no_inline)]
1919
pub use crate::mem::{align_of, align_of_val, size_of, size_of_val};
2020

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.