Skip to content

Commit 232b9f1

Browse files
committed
apply review
1 parent 0666905 commit 232b9f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/core/src/slice/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2249,9 +2249,11 @@ impl<T> [T] {
22492249
/// assert!(match r { Ok(1..=4) => true, _ => false, });
22502250
/// ```
22512251
// Lint rustdoc::broken_intra_doc_links is allowed as `slice::sort_by_key` is
2252-
// in crate `alloc`, and as such doesn't exists yet when building `core`
2253-
// links to downstream crate: https://github.com/rust-lang/rust/issues/74481
2252+
// in crate `alloc`, and as such doesn't exists yet when building `core`.
2253+
// links to downstream crate: #74481. Since primitives are only documented in
2254+
// libstd (#73423), this never leads to broken links in practice.
22542255
#[cfg_attr(not(bootstrap), allow(rustdoc::broken_intra_doc_links))]
2256+
#[cfg_attr(bootstrap, allow(broken_intra_doc_links))]
22552257
#[stable(feature = "slice_binary_search_by_key", since = "1.10.0")]
22562258
#[inline]
22572259
pub fn binary_search_by_key<'a, B, F>(&'a self, b: &B, mut f: F) -> Result<usize, usize>

0 commit comments

Comments
 (0)