Skip to content

Commit

Permalink
Rollup merge of #86956 - cuviper:unalias-every, r=m-ou-se
Browse files Browse the repository at this point in the history
Revert "Add "every" as a doc alias for "all"."

This reverts commit 3545036 (#81697) for "every" and closes #86554 in kind for "some".

The new [doc alias policy](https://std-dev-guide.rust-lang.org/documentation/doc-alias-policy.html) is that we don't want language-specific aliases like these JavaScript names, and we especially don't want to conflict with real names. While "every" is okay in the latter regard, its natural pair "some" makes a doc-search collision with `Option::Some`.

r? ```@m-ou-se```
  • Loading branch information
JohnTitor committed Jul 8, 2021
2 parents 0f37050 + ace3989 commit 01474ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,6 @@ pub trait Iterator {
/// // we can still use `iter`, as there are more elements.
/// assert_eq!(iter.next(), Some(&3));
/// ```
#[doc(alias = "every")]
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
fn all<F>(&mut self, f: F) -> bool
Expand Down

0 comments on commit 01474ad

Please sign in to comment.