Skip to content

Commit b632eb4

Browse files
committed
Allow some broken links
It's too much of a hassle to fix these on all platforms, so they can simply be displayed as text, without a link.
1 parent bf8f5ba commit b632eb4

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/socket.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ impl Socket {
425425
///
426426
/// [`recv`]: Socket::recv
427427
/// [`out_of_band_inline`]: Socket::out_of_band_inline
428+
#[cfg_attr(target_os = "redox", allow(rustdoc::broken_intra_doc_links))]
428429
pub fn recv_out_of_band(&self, buf: &mut [MaybeUninit<u8>]) -> io::Result<usize> {
429430
self.recv_with_flags(buf, sys::MSG_OOB)
430431
}
@@ -640,7 +641,7 @@ impl Socket {
640641
/// Identical to [`send`] but allows for specification of arbitrary flags to the underlying
641642
/// `send` call.
642643
///
643-
/// [`send`]: #method.send
644+
/// [`send`]: Socket::send
644645
pub fn send_with_flags(&self, buf: &[u8], flags: c_int) -> io::Result<usize> {
645646
sys::send(self.as_raw(), buf, flags)
646647
}
@@ -672,8 +673,9 @@ impl Socket {
672673
///
673674
/// For more information, see [`send`], [`out_of_band_inline`].
674675
///
675-
/// [`send`]: #method.send
676-
/// [`out_of_band_inline`]: #method.out_of_band_inline
676+
/// [`send`]: Socket::send
677+
/// [`out_of_band_inline`]: Socket::out_of_band_inline
678+
#[cfg_attr(target_os = "redox", allow(rustdoc::broken_intra_doc_links))]
677679
pub fn send_out_of_band(&self, buf: &[u8]) -> io::Result<usize> {
678680
self.send_with_flags(buf, sys::MSG_OOB)
679681
}
@@ -1103,6 +1105,10 @@ impl Socket {
11031105
/// [raw(7)]: https://man7.org/linux/man-pages/man7/raw.7.html
11041106
/// [`IP_TTL`]: Socket::set_ttl
11051107
/// [`IP_TOS`]: Socket::set_tos
1108+
#[cfg_attr(
1109+
any(target_os = "illumos", target_os = "solaris"),
1110+
allow(rustdoc::broken_intra_doc_links)
1111+
)]
11061112
#[cfg(all(feature = "all", not(target_os = "redox")))]
11071113
#[cfg_attr(docsrs, doc(cfg(all(feature = "all", not(target_os = "redox")))))]
11081114
pub fn set_header_included(&self, included: bool) -> io::Result<()> {

src/sys/unix.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,15 @@ impl crate::Socket {
12211221
/// # Notes
12221222
///
12231223
/// On supported platforms you can use [`Type::cloexec`].
1224+
#[cfg_attr(
1225+
any(
1226+
target_os = "ios",
1227+
target_os = "macos",
1228+
target_os = "tvos",
1229+
target_os = "watchos"
1230+
),
1231+
allow(rustdoc::broken_intra_doc_links)
1232+
)]
12241233
#[cfg(feature = "all")]
12251234
#[cfg_attr(docsrs, doc(cfg(all(feature = "all", unix))))]
12261235
pub fn set_cloexec(&self, close_on_exec: bool) -> io::Result<()> {

0 commit comments

Comments
 (0)