Skip to content

Commit d04c638

Browse files
authored
Rollup merge of rust-lang#86956 - cuviper:unalias-every, r=m-ou-se
Revert "Add "every" as a doc alias for "all"." This reverts commit 3545036 (rust-lang#81697) for "every" and closes rust-lang#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``
2 parents 5c25056 + ace3989 commit d04c638

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/iter/traits/iterator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,6 @@ pub trait Iterator {
22542254
/// // we can still use `iter`, as there are more elements.
22552255
/// assert_eq!(iter.next(), Some(&3));
22562256
/// ```
2257-
#[doc(alias = "every")]
22582257
#[inline]
22592258
#[stable(feature = "rust1", since = "1.0.0")]
22602259
fn all<F>(&mut self, f: F) -> bool

0 commit comments

Comments
 (0)