From 2d389c125e2ba7fdb6762120e1fa4e783fa7adad Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:49:26 -0700 Subject: std: Stabilize the `str_matches` feature This commit stabilizes the `str::{matches, rmatches}` functions and iterators, but renames the unstable feature for the `str::{matches,rmatches}_indices` function to `str_match_indices` due to the comment present on the functions about the iterator's return value. --- src/libcore/str/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/str/mod.rs') diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 7092df7b4c2..5a621176c4a 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -738,7 +738,7 @@ generate_pattern_iterators! { #[doc="Created with the method `.rmatch_indices()`."] struct RMatchIndices; stability: - #[unstable(feature = "str_internals", + #[unstable(feature = "str_match_indices", reason = "type may be removed or have its iterator impl changed")] internal: MatchIndicesInternal yielding ((usize, usize)); @@ -779,7 +779,7 @@ generate_pattern_iterators! { #[doc="Created with the method `.rmatches()`."] struct RMatches; stability: - #[unstable(feature = "str_internals", reason = "type got recently added")] + #[stable(feature = "str_matches", since = "1.2.0")] internal: MatchesInternal yielding (&'a str); delegate double ended; -- cgit 1.4.1-3-g733a5