From af7b7da80e7a7d691f7376662b34ac4d5e9420d0 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Thu, 24 Mar 2022 22:09:37 -0700 Subject: [PATCH] Work around rustdoc ICE by dropping some intra-doc links --- library/std/src/ffi/mod.rs | 6 +++--- library/std/src/ffi/os_str.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs index d3971334462c0..7fda7497e616c 100644 --- a/library/std/src/ffi/mod.rs +++ b/library/std/src/ffi/mod.rs @@ -105,11 +105,11 @@ //! On all platforms, `OsStr` and `OsString` consist of a sequence of bytes; see [`OsString`] for //! more details on its encoding on different platforms. //! -//! `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a -//! byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via +//! `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte +//! slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via //! `Deref`.) //! -//! `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to +//! `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to //! `Vec`. //! //! ## On Unix diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index e4d0ea58d18db..b287c4053d93d 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -72,11 +72,11 @@ use crate::sys_common::{AsInner, FromInner, IntoInner}; /// /// # Conversions /// -/// `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a -/// byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via +/// `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte +/// slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via /// `Deref`.) /// -/// `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to +/// `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to /// `Vec`. /// /// See the [module's toplevel documentation about conversions][conversions] for a discussion on