1
Fork 0

Rollup merge of #24627 - steveklabnik:gh24008, r=alexcrichton

Fixes #24008.
This commit is contained in:
Steve Klabnik 2015-04-20 21:15:53 -04:00
commit 417ff8a404

View file

@ -341,7 +341,7 @@ impl<'a> DoubleEndedIterator for CharIndices<'a> {
/// External iterator for a string's bytes. /// External iterator for a string's bytes.
/// Use with the `std::iter` module. /// Use with the `std::iter` module.
/// ///
/// Created with `str::bytes` /// Created with the method `.bytes()`.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone)] #[derive(Clone)]
pub struct Bytes<'a>(Map<slice::Iter<'a, u8>, BytesDeref>); pub struct Bytes<'a>(Map<slice::Iter<'a, u8>, BytesDeref>);
@ -636,10 +636,10 @@ impl<'a, P: Pattern<'a>> SplitInternal<'a, P> {
generate_pattern_iterators! { generate_pattern_iterators! {
forward: forward:
/// Return type of `str::split()` /// Created with the method `.split()`.
struct Split; struct Split;
reverse: reverse:
/// Return type of `str::rsplit()` /// Created with the method `.rsplit()`.
struct RSplit; struct RSplit;
stability: stability:
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
@ -650,10 +650,10 @@ generate_pattern_iterators! {
generate_pattern_iterators! { generate_pattern_iterators! {
forward: forward:
/// Return type of `str::split_terminator()` /// Created with the method `.split_terminator()`.
struct SplitTerminator; struct SplitTerminator;
reverse: reverse:
/// Return type of `str::rsplit_terminator()` /// Created with the method `.rsplit_terminator()`.
struct RSplitTerminator; struct RSplitTerminator;
stability: stability:
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
@ -696,10 +696,10 @@ impl<'a, P: Pattern<'a>> SplitNInternal<'a, P> {
generate_pattern_iterators! { generate_pattern_iterators! {
forward: forward:
/// Return type of `str::splitn()` /// Created with the method `.splitn()`.
struct SplitN; struct SplitN;
reverse: reverse:
/// Return type of `str::rsplitn()` /// Created with the method `.rsplitn()`.
struct RSplitN; struct RSplitN;
stability: stability:
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
@ -730,10 +730,10 @@ impl<'a, P: Pattern<'a>> MatchIndicesInternal<'a, P> {
generate_pattern_iterators! { generate_pattern_iterators! {
forward: forward:
/// Return type of `str::match_indices()` /// Created with the method `.match_indices()`.
struct MatchIndices; struct MatchIndices;
reverse: reverse:
/// Return type of `str::rmatch_indices()` /// Created with the method `.rmatch_indices()`.
struct RMatchIndices; struct RMatchIndices;
stability: stability:
#[unstable(feature = "core", #[unstable(feature = "core",
@ -771,10 +771,10 @@ impl<'a, P: Pattern<'a>> MatchesInternal<'a, P> {
generate_pattern_iterators! { generate_pattern_iterators! {
forward: forward:
/// Return type of `str::matches()` /// Created with the method `.matches()`.
struct Matches; struct Matches;
reverse: reverse:
/// Return type of `str::rmatches()` /// Created with the method `.rmatches()`.
struct RMatches; struct RMatches;
stability: stability:
#[unstable(feature = "core", reason = "type got recently added")] #[unstable(feature = "core", reason = "type got recently added")]
@ -783,7 +783,7 @@ generate_pattern_iterators! {
delegate double ended; delegate double ended;
} }
/// Return type of `str::lines()` /// Created with the method `.lines()`.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone)] #[derive(Clone)]
pub struct Lines<'a>(SplitTerminator<'a, char>); pub struct Lines<'a>(SplitTerminator<'a, char>);
@ -811,7 +811,7 @@ impl<'a> DoubleEndedIterator for Lines<'a> {
} }
} }
/// Return type of `str::lines_any()` /// Created with the method `.lines_any()`.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone)] #[derive(Clone)]
pub struct LinesAny<'a>(Map<Lines<'a>, LinesAnyMap>); pub struct LinesAny<'a>(Map<Lines<'a>, LinesAnyMap>);