Skip to content

Commit

Permalink
Add allow(rustdoc::broken_intra_doc_links) to work around #135108
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jan 5, 2025
1 parent 3998d6a commit 2353abe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/alloc/src/bstr.rs
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down
4 changes: 4 additions & 0 deletions library/core/src/bstr.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 2353abe

Please sign in to comment.