diff --git a/gen/build/src/lib.rs b/gen/build/src/lib.rs index d54bb437f..589ae9ac2 100644 --- a/gen/build/src/lib.rs +++ b/gen/build/src/lib.rs @@ -110,7 +110,7 @@ pub use crate::cfg::{Cfg, CFG}; /// additional source files or compiler flags, and lastly call its [`compile`] /// method to execute the C++ build. /// -/// [`compile`]: https://docs.rs/cc/1.0.49/cc/struct.Build.html#method.compile +/// [`compile`]: cc::Build::compile #[must_use] pub fn bridge(rust_source_file: impl AsRef) -> Build { bridges(iter::once(rust_source_file)) diff --git a/src/cxx_string.rs b/src/cxx_string.rs index 902d03aa5..c58d8d8fb 100644 --- a/src/cxx_string.rs +++ b/src/cxx_string.rs @@ -163,7 +163,7 @@ impl CxxString { /// sequences with the U+FFFD [replacement character] and returns a /// Cow::Owned String. /// - /// [replacement character]: https://doc.rust-lang.org/std/char/constant.REPLACEMENT_CHARACTER.html + /// [replacement character]: char::REPLACEMENT_CHARACTER #[cfg(feature = "alloc")] #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] pub fn to_string_lossy(&self) -> Cow { diff --git a/src/type_id.rs b/src/type_id.rs index bd2b4ea61..c10c112e6 100644 --- a/src/type_id.rs +++ b/src/type_id.rs @@ -1,6 +1,6 @@ /// For use in impls of the `ExternType` trait. See [`ExternType`]. /// -/// [`ExternType`]: trait.ExternType.html +/// [`ExternType`]: crate::ExternType #[macro_export] macro_rules! type_id { ($($path:tt)*) => {