Skip to content

Commit 2bfbc05

Browse files
authored
Rollup merge of #72361 - golddranks:split_inclusive_add_tracking_issue, r=shepmaster
split_inclusive: add tracking issue number (72360) Adds tracking issue number ( #72360 ) to the unstable feature attributes.
2 parents 68fd4e0 + 46159b3 commit 2bfbc05

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/libcore/slice/mod.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ impl<T> [T] {
11691169
/// assert_eq!(iter.next().unwrap(), &[10, 40, 33]);
11701170
/// assert!(iter.next().is_none());
11711171
/// ```
1172-
#[unstable(feature = "split_inclusive", issue = "none")]
1172+
#[unstable(feature = "split_inclusive", issue = "72360")]
11731173
#[inline]
11741174
pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
11751175
where
@@ -1194,7 +1194,7 @@ impl<T> [T] {
11941194
/// }
11951195
/// assert_eq!(v, [10, 40, 1, 20, 1, 1]);
11961196
/// ```
1197-
#[unstable(feature = "split_inclusive", issue = "none")]
1197+
#[unstable(feature = "split_inclusive", issue = "72360")]
11981198
#[inline]
11991199
pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F>
12001200
where
@@ -3852,7 +3852,7 @@ impl<T, P> FusedIterator for Split<'_, T, P> where P: FnMut(&T) -> bool {}
38523852
///
38533853
/// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive
38543854
/// [slices]: ../../std/primitive.slice.html
3855-
#[unstable(feature = "split_inclusive", issue = "none")]
3855+
#[unstable(feature = "split_inclusive", issue = "72360")]
38563856
pub struct SplitInclusive<'a, T: 'a, P>
38573857
where
38583858
P: FnMut(&T) -> bool,
@@ -3862,7 +3862,7 @@ where
38623862
finished: bool,
38633863
}
38643864

3865-
#[unstable(feature = "split_inclusive", issue = "none")]
3865+
#[unstable(feature = "split_inclusive", issue = "72360")]
38663866
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusive<'_, T, P>
38673867
where
38683868
P: FnMut(&T) -> bool,
@@ -3876,7 +3876,7 @@ where
38763876
}
38773877

38783878
// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
3879-
#[unstable(feature = "split_inclusive", issue = "none")]
3879+
#[unstable(feature = "split_inclusive", issue = "72360")]
38803880
impl<T, P> Clone for SplitInclusive<'_, T, P>
38813881
where
38823882
P: Clone + FnMut(&T) -> bool,
@@ -3886,7 +3886,7 @@ where
38863886
}
38873887
}
38883888

3889-
#[unstable(feature = "split_inclusive", issue = "none")]
3889+
#[unstable(feature = "split_inclusive", issue = "72360")]
38903890
impl<'a, T, P> Iterator for SplitInclusive<'a, T, P>
38913891
where
38923892
P: FnMut(&T) -> bool,
@@ -3915,7 +3915,7 @@ where
39153915
}
39163916
}
39173917

3918-
#[unstable(feature = "split_inclusive", issue = "none")]
3918+
#[unstable(feature = "split_inclusive", issue = "72360")]
39193919
impl<'a, T, P> DoubleEndedIterator for SplitInclusive<'a, T, P>
39203920
where
39213921
P: FnMut(&T) -> bool,
@@ -3940,7 +3940,7 @@ where
39403940
}
39413941
}
39423942

3943-
#[unstable(feature = "split_inclusive", issue = "none")]
3943+
#[unstable(feature = "split_inclusive", issue = "72360")]
39443944
impl<T, P> FusedIterator for SplitInclusive<'_, T, P> where P: FnMut(&T) -> bool {}
39453945

39463946
/// An iterator over the mutable subslices of the vector which are separated
@@ -4065,7 +4065,7 @@ impl<T, P> FusedIterator for SplitMut<'_, T, P> where P: FnMut(&T) -> bool {}
40654065
///
40664066
/// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut
40674067
/// [slices]: ../../std/primitive.slice.html
4068-
#[unstable(feature = "split_inclusive", issue = "none")]
4068+
#[unstable(feature = "split_inclusive", issue = "72360")]
40694069
pub struct SplitInclusiveMut<'a, T: 'a, P>
40704070
where
40714071
P: FnMut(&T) -> bool,
@@ -4075,7 +4075,7 @@ where
40754075
finished: bool,
40764076
}
40774077

4078-
#[unstable(feature = "split_inclusive", issue = "none")]
4078+
#[unstable(feature = "split_inclusive", issue = "72360")]
40794079
impl<T: fmt::Debug, P> fmt::Debug for SplitInclusiveMut<'_, T, P>
40804080
where
40814081
P: FnMut(&T) -> bool,
@@ -4088,7 +4088,7 @@ where
40884088
}
40894089
}
40904090

4091-
#[unstable(feature = "split_inclusive", issue = "none")]
4091+
#[unstable(feature = "split_inclusive", issue = "72360")]
40924092
impl<'a, T, P> Iterator for SplitInclusiveMut<'a, T, P>
40934093
where
40944094
P: FnMut(&T) -> bool,
@@ -4128,7 +4128,7 @@ where
41284128
}
41294129
}
41304130

4131-
#[unstable(feature = "split_inclusive", issue = "none")]
4131+
#[unstable(feature = "split_inclusive", issue = "72360")]
41324132
impl<'a, T, P> DoubleEndedIterator for SplitInclusiveMut<'a, T, P>
41334133
where
41344134
P: FnMut(&T) -> bool,
@@ -4162,7 +4162,7 @@ where
41624162
}
41634163
}
41644164

4165-
#[unstable(feature = "split_inclusive", issue = "none")]
4165+
#[unstable(feature = "split_inclusive", issue = "72360")]
41664166
impl<T, P> FusedIterator for SplitInclusiveMut<'_, T, P> where P: FnMut(&T) -> bool {}
41674167

41684168
/// An iterator over subslices separated by elements that match a predicate

src/libcore/str/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -3335,7 +3335,7 @@ impl str {
33353335
/// .split_inclusive('\n').collect();
33363336
/// assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
33373337
/// ```
3338-
#[unstable(feature = "split_inclusive", issue = "none")]
3338+
#[unstable(feature = "split_inclusive", issue = "72360")]
33393339
#[inline]
33403340
pub fn split_inclusive<'a, P: Pattern<'a>>(&'a self, pat: P) -> SplitInclusive<'a, P> {
33413341
SplitInclusive(SplitInternal {
@@ -4575,7 +4575,7 @@ pub struct SplitAsciiWhitespace<'a> {
45754575
///
45764576
/// [`split_inclusive`]: ../../std/primitive.str.html#method.split_inclusive
45774577
/// [`str`]: ../../std/primitive.str.html
4578-
#[unstable(feature = "split_inclusive", issue = "none")]
4578+
#[unstable(feature = "split_inclusive", issue = "72360")]
45794579
pub struct SplitInclusive<'a, P: Pattern<'a>>(SplitInternal<'a, P>);
45804580

45814581
impl_fn_for_zst! {
@@ -4668,7 +4668,7 @@ impl<'a> DoubleEndedIterator for SplitAsciiWhitespace<'a> {
46684668
#[stable(feature = "split_ascii_whitespace", since = "1.34.0")]
46694669
impl FusedIterator for SplitAsciiWhitespace<'_> {}
46704670

4671-
#[unstable(feature = "split_inclusive", issue = "none")]
4671+
#[unstable(feature = "split_inclusive", issue = "72360")]
46724672
impl<'a, P: Pattern<'a>> Iterator for SplitInclusive<'a, P> {
46734673
type Item = &'a str;
46744674

@@ -4678,22 +4678,22 @@ impl<'a, P: Pattern<'a>> Iterator for SplitInclusive<'a, P> {
46784678
}
46794679
}
46804680

4681-
#[unstable(feature = "split_inclusive", issue = "none")]
4681+
#[unstable(feature = "split_inclusive", issue = "72360")]
46824682
impl<'a, P: Pattern<'a, Searcher: fmt::Debug>> fmt::Debug for SplitInclusive<'a, P> {
46834683
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
46844684
f.debug_struct("SplitInclusive").field("0", &self.0).finish()
46854685
}
46864686
}
46874687

46884688
// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
4689-
#[unstable(feature = "split_inclusive", issue = "none")]
4689+
#[unstable(feature = "split_inclusive", issue = "72360")]
46904690
impl<'a, P: Pattern<'a, Searcher: Clone>> Clone for SplitInclusive<'a, P> {
46914691
fn clone(&self) -> Self {
46924692
SplitInclusive(self.0.clone())
46934693
}
46944694
}
46954695

4696-
#[unstable(feature = "split_inclusive", issue = "none")]
4696+
#[unstable(feature = "split_inclusive", issue = "72360")]
46974697
impl<'a, P: Pattern<'a, Searcher: ReverseSearcher<'a>>> DoubleEndedIterator
46984698
for SplitInclusive<'a, P>
46994699
{
@@ -4703,7 +4703,7 @@ impl<'a, P: Pattern<'a, Searcher: ReverseSearcher<'a>>> DoubleEndedIterator
47034703
}
47044704
}
47054705

4706-
#[unstable(feature = "split_inclusive", issue = "none")]
4706+
#[unstable(feature = "split_inclusive", issue = "72360")]
47074707
impl<'a, P: Pattern<'a>> FusedIterator for SplitInclusive<'a, P> {}
47084708

47094709
/// An iterator of [`u16`] over the string encoded as UTF-16.

0 commit comments

Comments
 (0)