Skip to content

Commit

Permalink
Work around rustdoc ICE by dropping some intra-doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Mar 25, 2022
1 parent 2b80b80 commit af7b7da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions library/std/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>`.
//!
//! ## On Unix
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>`.
///
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on
Expand Down

0 comments on commit af7b7da

Please sign in to comment.