From 2353abe3100a5172620abefc0d7c3c2fa09ef9dd Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 4 Jan 2025 23:42:40 +0200 Subject: [PATCH] Add `allow(rustdoc::broken_intra_doc_links)` to work around #135108 --- library/alloc/src/bstr.rs | 4 ++++ library/core/src/bstr.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/library/alloc/src/bstr.rs b/library/alloc/src/bstr.rs index 4b04b0222515..1d0f99ff103e 100644 --- a/library/alloc/src/bstr.rs +++ b/library/alloc/src/bstr.rs @@ -1,4 +1,8 @@ //! The `ByteStr` and `ByteString` types and trait implementations. +#![allow(rustdoc::broken_intra_doc_links)] +// ^ `slice` has a broken doc link, and our `Deref` propagates that while ignoring the +// `allow(rustdoc::broken_intra_doc_links)` from there. See +// https://github.com/rust-lang/rust/issues/135108 . use core::borrow::{Borrow, BorrowMut}; #[unstable(feature = "bstr", issue = "134915")] diff --git a/library/core/src/bstr.rs b/library/core/src/bstr.rs index 7dbc444eca5c..b1c4dfe41c9a 100644 --- a/library/core/src/bstr.rs +++ b/library/core/src/bstr.rs @@ -1,4 +1,8 @@ //! The `ByteStr` type and trait implementations. +#![allow(rustdoc::broken_intra_doc_links)] +// ^ `slice` has a broken doc link, and our `Deref` propagates that while ignoring the +// `allow(rustdoc::broken_intra_doc_links)` from there. See +// https://github.com/rust-lang/rust/issues/135108 . use crate::borrow::{Borrow, BorrowMut}; use crate::cmp::Ordering;