@@ -1527,8 +1527,7 @@ impl str {
1527
1527
/// let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect();
1528
1528
/// assert_eq!(v, ["1", "2", "3"]);
1529
1529
/// ```
1530
- #[ unstable( feature = "str_matches" ,
1531
- reason = "method got recently added" ) ]
1530
+ #[ stable( feature = "str_matches" , since = "1.2.0" ) ]
1532
1531
pub fn matches < ' a , P : Pattern < ' a > > ( & ' a self , pat : P ) -> Matches < ' a , P > {
1533
1532
core_str:: StrExt :: matches ( self , pat)
1534
1533
}
@@ -1560,8 +1559,7 @@ impl str {
1560
1559
/// let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect();
1561
1560
/// assert_eq!(v, ["3", "2", "1"]);
1562
1561
/// ```
1563
- #[ unstable( feature = "str_matches" ,
1564
- reason = "method got recently added" ) ]
1562
+ #[ stable( feature = "str_matches" , since = "1.2.0" ) ]
1565
1563
pub fn rmatches < ' a , P : Pattern < ' a > > ( & ' a self , pat : P ) -> RMatches < ' a , P >
1566
1564
where P :: Searcher : ReverseSearcher < ' a >
1567
1565
{
@@ -1605,7 +1603,7 @@ impl str {
1605
1603
/// let v: Vec<(usize, usize)> = "ababa".match_indices("aba").collect();
1606
1604
/// assert_eq!(v, [(0, 3)]); // only the first `aba`
1607
1605
/// ```
1608
- #[ unstable( feature = "str_matches " ,
1606
+ #[ unstable( feature = "str_match_indices " ,
1609
1607
reason = "might have its iterator type changed" ) ]
1610
1608
// NB: Right now MatchIndices yields `(usize, usize)`, but it would
1611
1609
// be more consistent with `matches` and `char_indices` to return `(usize, &str)`
@@ -1649,7 +1647,7 @@ impl str {
1649
1647
/// let v: Vec<(usize, usize)> = "ababa".rmatch_indices("aba").collect();
1650
1648
/// assert_eq!(v, [(2, 5)]); // only the last `aba`
1651
1649
/// ```
1652
- #[ unstable( feature = "str_matches " ,
1650
+ #[ unstable( feature = "str_match_indices " ,
1653
1651
reason = "might have its iterator type changed" ) ]
1654
1652
// NB: Right now RMatchIndices yields `(usize, usize)`, but it would
1655
1653
// be more consistent with `rmatches` and `char_indices` to return `(usize, &str)`
0 commit comments