diff options
| author | François Mockers <mockersf@gmail.com> | 2021-03-10 18:32:55 +0100 |
|---|---|---|
| committer | François Mockers <mockersf@gmail.com> | 2021-03-10 18:32:55 +0100 |
| commit | 232b9f1641097763ef40fedccf442f2119958608 (patch) | |
| tree | 3ce703a774a3d1dbc1b1ecce40e5941f517aaa79 | |
| parent | 06669056b53e00c53ff6d787e706c393a469eb78 (diff) | |
| download | rust-232b9f1641097763ef40fedccf442f2119958608.tar.gz rust-232b9f1641097763ef40fedccf442f2119958608.zip | |
apply review
| -rw-r--r-- | library/core/src/slice/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index e35f3e52aa0..417a106b99a 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -2249,9 +2249,11 @@ impl<T> [T] { /// assert!(match r { Ok(1..=4) => true, _ => false, }); /// ``` // Lint rustdoc::broken_intra_doc_links is allowed as `slice::sort_by_key` is - // in crate `alloc`, and as such doesn't exists yet when building `core` - // links to downstream crate: https://github.com/rust-lang/rust/issues/74481 + // in crate `alloc`, and as such doesn't exists yet when building `core`. + // links to downstream crate: #74481. Since primitives are only documented in + // libstd (#73423), this never leads to broken links in practice. #[cfg_attr(not(bootstrap), allow(rustdoc::broken_intra_doc_links))] + #[cfg_attr(bootstrap, allow(broken_intra_doc_links))] #[stable(feature = "slice_binary_search_by_key", since = "1.10.0")] #[inline] pub fn binary_search_by_key<'a, B, F>(&'a self, b: &B, mut f: F) -> Result<usize, usize> |
