diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-08 10:44:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-08 10:44:37 +0900 |
| commit | 01474ad92cc025ac7e16a9d70c76c2d030d414d7 (patch) | |
| tree | 7ed177e41caaf762288a5e899f18a027fa12e320 | |
| parent | 0f37050b744da205de37c3c925ce3d20e14e7559 (diff) | |
| parent | ace3989d55f540ec692ef662b9c1329a058ded3c (diff) | |
| download | rust-01474ad92cc025ac7e16a9d70c76c2d030d414d7.tar.gz rust-01474ad92cc025ac7e16a9d70c76c2d030d414d7.zip | |
Rollup merge of #86956 - cuviper:unalias-every, r=m-ou-se
Revert "Add "every" as a doc alias for "all"." This reverts commit 35450365ac2fda8b948fe6fd1a1123837a9554b0 (#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```
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 0032e8c3e47..8cb7aad28aa 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -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 |
