Skip to content

Commit 7246393

Browse files
pietroalbinicuviper
authored andcommitted
replace version placeholders
1 parent 4242324 commit 7246393

File tree

37 files changed

+102
-102
lines changed

37 files changed

+102
-102
lines changed

alloc/src/collections/binary_heap/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ impl<T: Ord> BinaryHeap<T> {
853853
///
854854
/// assert_eq!(heap.into_sorted_vec(), [-10, 2, 4])
855855
/// ```
856-
#[stable(feature = "binary_heap_retain", since = "CURRENT_RUSTC_VERSION")]
856+
#[stable(feature = "binary_heap_retain", since = "1.70.0")]
857857
pub fn retain<F>(&mut self, mut f: F)
858858
where
859859
F: FnMut(&T) -> bool,
@@ -1463,7 +1463,7 @@ impl<T> ExactSizeIterator for IntoIter<T> {
14631463
#[stable(feature = "fused", since = "1.26.0")]
14641464
impl<T> FusedIterator for IntoIter<T> {}
14651465

1466-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1466+
#[stable(feature = "default_iters", since = "1.70.0")]
14671467
impl<T> Default for IntoIter<T> {
14681468
/// Creates an empty `binary_heap::IntoIter`.
14691469
///

alloc/src/collections/btree/map.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for Iter<'_, K, V> {
362362
}
363363
}
364364

365-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
365+
#[stable(feature = "default_iters", since = "1.70.0")]
366366
impl<'a, K: 'a, V: 'a> Default for Iter<'a, K, V> {
367367
/// Creates an empty `btree_map::Iter`.
368368
///
@@ -400,7 +400,7 @@ impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for IterMut<'_, K, V> {
400400
}
401401
}
402402

403-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
403+
#[stable(feature = "default_iters", since = "1.70.0")]
404404
impl<'a, K: 'a, V: 'a> Default for IterMut<'a, K, V> {
405405
/// Creates an empty `btree_map::IterMut`.
406406
///
@@ -448,7 +448,7 @@ impl<K: Debug, V: Debug, A: Allocator + Clone> Debug for IntoIter<K, V, A> {
448448
}
449449
}
450450

451-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
451+
#[stable(feature = "default_iters", since = "1.70.0")]
452452
impl<K, V, A> Default for IntoIter<K, V, A>
453453
where
454454
A: Allocator + Default + Clone,
@@ -1812,7 +1812,7 @@ impl<K, V> Clone for Keys<'_, K, V> {
18121812
}
18131813
}
18141814

1815-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1815+
#[stable(feature = "default_iters", since = "1.70.0")]
18161816
impl<K, V> Default for Keys<'_, K, V> {
18171817
/// Creates an empty `btree_map::Keys`.
18181818
///
@@ -1867,7 +1867,7 @@ impl<K, V> Clone for Values<'_, K, V> {
18671867
}
18681868
}
18691869

1870-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1870+
#[stable(feature = "default_iters", since = "1.70.0")]
18711871
impl<K, V> Default for Values<'_, K, V> {
18721872
/// Creates an empty `btree_map::Values`.
18731873
///
@@ -2017,7 +2017,7 @@ impl<'a, K, V> Iterator for Range<'a, K, V> {
20172017
}
20182018
}
20192019

2020-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
2020+
#[stable(feature = "default_iters", since = "1.70.0")]
20212021
impl<K, V> Default for Range<'_, K, V> {
20222022
/// Creates an empty `btree_map::Range`.
20232023
///
@@ -2107,7 +2107,7 @@ impl<K, V, A: Allocator + Clone> ExactSizeIterator for IntoKeys<K, V, A> {
21072107
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21082108
impl<K, V, A: Allocator + Clone> FusedIterator for IntoKeys<K, V, A> {}
21092109

2110-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
2110+
#[stable(feature = "default_iters", since = "1.70.0")]
21112111
impl<K, V, A> Default for IntoKeys<K, V, A>
21122112
where
21132113
A: Allocator + Default + Clone,
@@ -2158,7 +2158,7 @@ impl<K, V, A: Allocator + Clone> ExactSizeIterator for IntoValues<K, V, A> {
21582158
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21592159
impl<K, V, A: Allocator + Clone> FusedIterator for IntoValues<K, V, A> {}
21602160

2161-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
2161+
#[stable(feature = "default_iters", since = "1.70.0")]
21622162
impl<K, V, A> Default for IntoValues<K, V, A>
21632163
where
21642164
A: Allocator + Default + Clone,

alloc/src/collections/btree/set.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ impl<T, A: Allocator + Clone> Iterator for IntoIter<T, A> {
15381538
}
15391539
}
15401540

1541-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1541+
#[stable(feature = "default_iters", since = "1.70.0")]
15421542
impl<T> Default for Iter<'_, T> {
15431543
/// Creates an empty `btree_set::Iter`.
15441544
///
@@ -1568,7 +1568,7 @@ impl<T, A: Allocator + Clone> ExactSizeIterator for IntoIter<T, A> {
15681568
#[stable(feature = "fused", since = "1.26.0")]
15691569
impl<T, A: Allocator + Clone> FusedIterator for IntoIter<T, A> {}
15701570

1571-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1571+
#[stable(feature = "default_iters", since = "1.70.0")]
15721572
impl<T, A> Default for IntoIter<T, A>
15731573
where
15741574
A: Allocator + Default + Clone,
@@ -1623,7 +1623,7 @@ impl<'a, T> DoubleEndedIterator for Range<'a, T> {
16231623
#[stable(feature = "fused", since = "1.26.0")]
16241624
impl<T> FusedIterator for Range<'_, T> {}
16251625

1626-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1626+
#[stable(feature = "default_iters", since = "1.70.0")]
16271627
impl<T> Default for Range<'_, T> {
16281628
/// Creates an empty `btree_set::Range`.
16291629
///

alloc/src/collections/linked_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ impl<T> ExactSizeIterator for Iter<'_, T> {}
11371137
#[stable(feature = "fused", since = "1.26.0")]
11381138
impl<T> FusedIterator for Iter<'_, T> {}
11391139

1140-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1140+
#[stable(feature = "default_iters", since = "1.70.0")]
11411141
impl<T> Default for Iter<'_, T> {
11421142
/// Creates an empty `linked_list::Iter`.
11431143
///
@@ -1205,7 +1205,7 @@ impl<T> ExactSizeIterator for IterMut<'_, T> {}
12051205
#[stable(feature = "fused", since = "1.26.0")]
12061206
impl<T> FusedIterator for IterMut<'_, T> {}
12071207

1208-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1208+
#[stable(feature = "default_iters", since = "1.70.0")]
12091209
impl<T> Default for IterMut<'_, T> {
12101210
fn default() -> Self {
12111211
IterMut { head: None, tail: None, len: 0, marker: Default::default() }
@@ -1915,7 +1915,7 @@ impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A> {}
19151915
#[stable(feature = "fused", since = "1.26.0")]
19161916
impl<T, A: Allocator> FusedIterator for IntoIter<T, A> {}
19171917

1918-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
1918+
#[stable(feature = "default_iters", since = "1.70.0")]
19191919
impl<T> Default for IntoIter<T> {
19201920
/// Creates an empty `linked_list::IntoIter`.
19211921
///

alloc/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ impl<T> Rc<T> {
693693
/// This is equivalent to `Rc::try_unwrap(this).ok()`. (Note that these are not equivalent for
694694
/// [`Arc`](crate::sync::Arc), due to race conditions that do not apply to `Rc`.)
695695
#[inline]
696-
#[stable(feature = "rc_into_inner", since = "CURRENT_RUSTC_VERSION")]
696+
#[stable(feature = "rc_into_inner", since = "1.70.0")]
697697
pub fn into_inner(this: Self) -> Option<T> {
698698
Rc::try_unwrap(this).ok()
699699
}

alloc/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ impl<T> Arc<T> {
793793
/// y_thread.join().unwrap();
794794
/// ```
795795
#[inline]
796-
#[stable(feature = "arc_into_inner", since = "CURRENT_RUSTC_VERSION")]
796+
#[stable(feature = "arc_into_inner", since = "1.70.0")]
797797
pub fn into_inner(this: Self) -> Option<T> {
798798
// Make sure that the ordinary `Drop` implementation isn’t called as well
799799
let mut this = mem::ManuallyDrop::new(this);

alloc/src/vec/into_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<T, A: Allocator> FusedIterator for IntoIter<T, A> {}
342342
#[unstable(feature = "trusted_len", issue = "37572")]
343343
unsafe impl<T, A: Allocator> TrustedLen for IntoIter<T, A> {}
344344

345-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
345+
#[stable(feature = "default_iters", since = "1.70.0")]
346346
impl<T, A> Default for IntoIter<T, A>
347347
where
348348
A: Allocator + Default,

core/src/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ mod once;
247247

248248
#[unstable(feature = "lazy_cell", issue = "109736")]
249249
pub use lazy::LazyCell;
250-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
250+
#[stable(feature = "once_cell", since = "1.70.0")]
251251
pub use once::OnceCell;
252252

253253
/// A mutable memory location.

core/src/cell/once.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::mem;
2929
/// assert_eq!(value, "Hello, World!");
3030
/// assert!(cell.get().is_some());
3131
/// ```
32-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
32+
#[stable(feature = "once_cell", since = "1.70.0")]
3333
pub struct OnceCell<T> {
3434
// Invariant: written to at most once.
3535
inner: UnsafeCell<Option<T>>,
@@ -39,8 +39,8 @@ impl<T> OnceCell<T> {
3939
/// Creates a new empty cell.
4040
#[inline]
4141
#[must_use]
42-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
43-
#[rustc_const_stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
42+
#[stable(feature = "once_cell", since = "1.70.0")]
43+
#[rustc_const_stable(feature = "once_cell", since = "1.70.0")]
4444
pub const fn new() -> OnceCell<T> {
4545
OnceCell { inner: UnsafeCell::new(None) }
4646
}
@@ -49,7 +49,7 @@ impl<T> OnceCell<T> {
4949
///
5050
/// Returns `None` if the cell is empty.
5151
#[inline]
52-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
52+
#[stable(feature = "once_cell", since = "1.70.0")]
5353
pub fn get(&self) -> Option<&T> {
5454
// SAFETY: Safe due to `inner`'s invariant
5555
unsafe { &*self.inner.get() }.as_ref()
@@ -59,7 +59,7 @@ impl<T> OnceCell<T> {
5959
///
6060
/// Returns `None` if the cell is empty.
6161
#[inline]
62-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
62+
#[stable(feature = "once_cell", since = "1.70.0")]
6363
pub fn get_mut(&mut self) -> Option<&mut T> {
6464
self.inner.get_mut().as_mut()
6565
}
@@ -85,7 +85,7 @@ impl<T> OnceCell<T> {
8585
/// assert!(cell.get().is_some());
8686
/// ```
8787
#[inline]
88-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
88+
#[stable(feature = "once_cell", since = "1.70.0")]
8989
pub fn set(&self, value: T) -> Result<(), T> {
9090
// SAFETY: Safe because we cannot have overlapping mutable borrows
9191
let slot = unsafe { &*self.inner.get() };
@@ -125,7 +125,7 @@ impl<T> OnceCell<T> {
125125
/// assert_eq!(value, &92);
126126
/// ```
127127
#[inline]
128-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
128+
#[stable(feature = "once_cell", since = "1.70.0")]
129129
pub fn get_or_init<F>(&self, f: F) -> &T
130130
where
131131
F: FnOnce() -> T,
@@ -206,7 +206,7 @@ impl<T> OnceCell<T> {
206206
/// assert_eq!(cell.into_inner(), Some("hello".to_string()));
207207
/// ```
208208
#[inline]
209-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
209+
#[stable(feature = "once_cell", since = "1.70.0")]
210210
pub fn into_inner(self) -> Option<T> {
211211
// Because `into_inner` takes `self` by value, the compiler statically verifies
212212
// that it is not currently borrowed. So it is safe to move out `Option<T>`.
@@ -233,21 +233,21 @@ impl<T> OnceCell<T> {
233233
/// assert_eq!(cell.get(), None);
234234
/// ```
235235
#[inline]
236-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
236+
#[stable(feature = "once_cell", since = "1.70.0")]
237237
pub fn take(&mut self) -> Option<T> {
238238
mem::take(self).into_inner()
239239
}
240240
}
241241

242-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
242+
#[stable(feature = "once_cell", since = "1.70.0")]
243243
impl<T> Default for OnceCell<T> {
244244
#[inline]
245245
fn default() -> Self {
246246
Self::new()
247247
}
248248
}
249249

250-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
250+
#[stable(feature = "once_cell", since = "1.70.0")]
251251
impl<T: fmt::Debug> fmt::Debug for OnceCell<T> {
252252
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
253253
match self.get() {
@@ -257,7 +257,7 @@ impl<T: fmt::Debug> fmt::Debug for OnceCell<T> {
257257
}
258258
}
259259

260-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
260+
#[stable(feature = "once_cell", since = "1.70.0")]
261261
impl<T: Clone> Clone for OnceCell<T> {
262262
#[inline]
263263
fn clone(&self) -> OnceCell<T> {
@@ -272,18 +272,18 @@ impl<T: Clone> Clone for OnceCell<T> {
272272
}
273273
}
274274

275-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
275+
#[stable(feature = "once_cell", since = "1.70.0")]
276276
impl<T: PartialEq> PartialEq for OnceCell<T> {
277277
#[inline]
278278
fn eq(&self, other: &Self) -> bool {
279279
self.get() == other.get()
280280
}
281281
}
282282

283-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
283+
#[stable(feature = "once_cell", since = "1.70.0")]
284284
impl<T: Eq> Eq for OnceCell<T> {}
285285

286-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
286+
#[stable(feature = "once_cell", since = "1.70.0")]
287287
impl<T> From<T> for OnceCell<T> {
288288
/// Creates a new `OnceCell<T>` which already contains the given `value`.
289289
#[inline]
@@ -293,5 +293,5 @@ impl<T> From<T> for OnceCell<T> {
293293
}
294294

295295
// Just like for `Cell<T>` this isn't needed, but results in nicer error messages.
296-
#[stable(feature = "once_cell", since = "CURRENT_RUSTC_VERSION")]
296+
#[stable(feature = "once_cell", since = "1.70.0")]
297297
impl<T> !Sync for OnceCell<T> {}

core/src/iter/adapters/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ where
273273
{
274274
}
275275

276-
#[stable(feature = "default_iters", since = "CURRENT_RUSTC_VERSION")]
276+
#[stable(feature = "default_iters", since = "1.70.0")]
277277
impl<A: Default, B: Default> Default for Chain<A, B> {
278278
/// Creates a `Chain` from the default values for `A` and `B`.
279279
///

0 commit comments

Comments
 (0)