Skip to content

Commit 529148d

Browse files
committed
Update tracking issues
1 parent cc4c7b7 commit 529148d

File tree

6 files changed

+28
-21
lines changed

6 files changed

+28
-21
lines changed

library/core/src/cmp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ pub fn min<T: Ord>(v1: T, v2: T) -> T {
11921192
#[inline]
11931193
#[must_use]
11941194
#[stable(feature = "cmp_min_max_by", since = "1.53.0")]
1195-
#[rustc_const_unstable(feature = "const_cmp", issue = "none")]
1195+
#[rustc_const_unstable(feature = "const_cmp", issue = "92391")]
11961196
pub const fn min_by<T, F>(v1: T, v2: T, compare: F) -> T
11971197
where
11981198
F: ~const FnOnce(&T, &T) -> Ordering,
@@ -1261,7 +1261,7 @@ pub fn max<T: Ord>(v1: T, v2: T) -> T {
12611261
#[inline]
12621262
#[must_use]
12631263
#[stable(feature = "cmp_min_max_by", since = "1.53.0")]
1264-
#[rustc_const_unstable(feature = "const_cmp", issue = "none")]
1264+
#[rustc_const_unstable(feature = "const_cmp", issue = "92391")]
12651265
pub const fn max_by<T, F>(v1: T, v2: T, compare: F) -> T
12661266
where
12671267
F: ~const FnOnce(&T, &T) -> Ordering,

library/core/src/iter/adapters/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn map_try_fold<'a, T, B, Acc, R>(
119119
}
120120

121121
#[stable(feature = "rust1", since = "1.0.0")]
122-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
122+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
123123
impl<B, I: ~const Iterator, F> const Iterator for Map<I, F>
124124
where
125125
F: ~const FnMut(I::Item) -> B + ~const Drop,

library/core/src/iter/traits/collect.rs

+12-5
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub trait IntoIterator {
229229
}
230230

231231
#[stable(feature = "rust1", since = "1.0.0")]
232-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
232+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
233233
impl<I: Iterator> const IntoIterator for I {
234234
type Item = I::Item;
235235
type IntoIter = I;
@@ -346,21 +346,28 @@ pub trait Extend<A> {
346346
///
347347
/// The default implementation does nothing.
348348
#[unstable(feature = "extend_one", issue = "72631")]
349+
#[default_method_body_is_const]
349350
fn extend_reserve(&mut self, additional: usize) {
350351
let _ = additional;
351352
}
352353
}
353354

354355
#[stable(feature = "extend_for_unit", since = "1.28.0")]
355-
impl Extend<()> for () {
356-
fn extend<T: IntoIterator<Item = ()>>(&mut self, iter: T) {
357-
iter.into_iter().for_each(drop)
356+
#[rustc_const_unstable(feature = "const_extend", issue = "92475")]
357+
impl const Extend<()> for () {
358+
fn extend<T: ~const IntoIterator<Item = ()>>(&mut self, iter: T)
359+
where
360+
T::IntoIter: ~const Iterator<Item = ()>,
361+
T::IntoIter: ~const Drop,
362+
{
363+
let mut iter = iter.into_iter();
364+
while let Some(()) = iter.next() {}
358365
}
359366
fn extend_one(&mut self, _item: ()) {}
360367
}
361368

362369
#[stable(feature = "extend_for_tuple", since = "1.56.0")]
363-
#[rustc_const_unstable(feature = "const_extend", issue = "none")]
370+
#[rustc_const_unstable(feature = "const_extend", issue = "92475")]
364371
impl<A, B, ExtendA, ExtendB> const Extend<(A, B)> for (ExtendA, ExtendB)
365372
where
366373
ExtendA: ~const Extend<A>,

library/core/src/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3905,7 +3905,7 @@ pub trait Iterator {
39053905
}
39063906

39073907
#[stable(feature = "rust1", since = "1.0.0")]
3908-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
3908+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
39093909
impl<I: ~const Iterator + ?Sized> const Iterator for &mut I {
39103910
type Item = I::Item;
39113911
#[inline]

library/core/src/ops/function.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub trait FnOnce<Args> {
229229

230230
mod impls {
231231
#[stable(feature = "rust1", since = "1.0.0")]
232-
#[rustc_const_unstable(feature = "const_closure_impls", issue = "none")]
232+
#[rustc_const_unstable(feature = "const_closure_impls", issue = "92474")]
233233
impl<A, F: ?Sized> const Fn<A> for &F
234234
where
235235
F: ~const Fn<A>,
@@ -240,7 +240,7 @@ mod impls {
240240
}
241241

242242
#[stable(feature = "rust1", since = "1.0.0")]
243-
#[rustc_const_unstable(feature = "const_closure_impls", issue = "none")]
243+
#[rustc_const_unstable(feature = "const_closure_impls", issue = "92474")]
244244
impl<A, F: ?Sized> const FnMut<A> for &F
245245
where
246246
F: ~const Fn<A>,
@@ -251,7 +251,7 @@ mod impls {
251251
}
252252

253253
#[stable(feature = "rust1", since = "1.0.0")]
254-
#[rustc_const_unstable(feature = "const_closure_impls", issue = "none")]
254+
#[rustc_const_unstable(feature = "const_closure_impls", issue = "92474")]
255255
impl<A, F: ?Sized> const FnOnce<A> for &F
256256
where
257257
F: ~const Fn<A>,
@@ -264,7 +264,7 @@ mod impls {
264264
}
265265

266266
#[stable(feature = "rust1", since = "1.0.0")]
267-
#[rustc_const_unstable(feature = "const_closure_impls", issue = "none")]
267+
#[rustc_const_unstable(feature = "const_closure_impls", issue = "92474")]
268268
impl<A, F: ?Sized> const FnMut<A> for &mut F
269269
where
270270
F: ~const FnMut<A>,
@@ -275,7 +275,7 @@ mod impls {
275275
}
276276

277277
#[stable(feature = "rust1", since = "1.0.0")]
278-
#[rustc_const_unstable(feature = "const_closure_impls", issue = "none")]
278+
#[rustc_const_unstable(feature = "const_closure_impls", issue = "92474")]
279279
impl<A, F: ?Sized> const FnOnce<A> for &mut F
280280
where
281281
F: ~const FnMut<A>,

library/core/src/option.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ impl<T> Option<T> {
11331133
/// ```
11341134
#[inline]
11351135
#[stable(feature = "rust1", since = "1.0.0")]
1136-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
1136+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
11371137
pub const fn iter_mut(&mut self) -> IterMut<'_, T> {
11381138
IterMut { inner: Item { opt: self.as_mut() } }
11391139
}
@@ -1859,7 +1859,7 @@ impl<T> const Default for Option<T> {
18591859
}
18601860

18611861
#[stable(feature = "rust1", since = "1.0.0")]
1862-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
1862+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
18631863
impl<T> const IntoIterator for Option<T> {
18641864
type Item = T;
18651865
type IntoIter = IntoIter<T>;
@@ -1884,7 +1884,7 @@ impl<T> const IntoIterator for Option<T> {
18841884
}
18851885

18861886
#[stable(since = "1.4.0", feature = "option_iter")]
1887-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
1887+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
18881888
impl<'a, T> const IntoIterator for &'a Option<T> {
18891889
type Item = &'a T;
18901890
type IntoIter = Iter<'a, T>;
@@ -1895,7 +1895,7 @@ impl<'a, T> const IntoIterator for &'a Option<T> {
18951895
}
18961896

18971897
#[stable(since = "1.4.0", feature = "option_iter")]
1898-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
1898+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
18991899
impl<'a, T> const IntoIterator for &'a mut Option<T> {
19001900
type Item = &'a mut T;
19011901
type IntoIter = IterMut<'a, T>;
@@ -2023,7 +2023,7 @@ pub struct Iter<'a, A: 'a> {
20232023
}
20242024

20252025
#[stable(feature = "rust1", since = "1.0.0")]
2026-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
2026+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
20272027
impl<'a, A> const Iterator for Iter<'a, A> {
20282028
type Item = &'a A;
20292029

@@ -2074,7 +2074,7 @@ pub struct IterMut<'a, A: 'a> {
20742074
}
20752075

20762076
#[stable(feature = "rust1", since = "1.0.0")]
2077-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
2077+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
20782078
impl<'a, A> const Iterator for IterMut<'a, A> {
20792079
type Item = &'a mut A;
20802080

@@ -2116,7 +2116,7 @@ pub struct IntoIter<A> {
21162116
}
21172117

21182118
#[stable(feature = "rust1", since = "1.0.0")]
2119-
#[rustc_const_unstable(feature = "const_iter", issue = "none")]
2119+
#[rustc_const_unstable(feature = "const_iter", issue = "92476")]
21202120
impl<A> const Iterator for IntoIter<A> {
21212121
type Item = A;
21222122

0 commit comments

Comments
 (0)