From 612492a572377f841f36a3fc8c4261627ff071a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1=20de=20Mello?= Date: Sun, 26 Jul 2026 12:23:03 +0100 Subject: [PATCH] Fix broken/stale intra-doc links and export ReplaceError - crate::asign typo -> crate::assign in the lib.rs doc-link table - RFC 6091 -> RFC 6901 typo, and a doc comment that used `//` instead of `///` and was silently dropped from rendered docs - toml docs.rs links pointed at 0.8, dependency is now 0.9 - ReplaceError (returned by PointerBuf::replace) was pub but never re-exported from the crate root, since `mod pointer` is private - callers had no way to name the type. Added it to the top-level `pub use`. - assorted unresolved/redundant intra-doc links in resolve.rs and diagnostic.rs (Index, Subject, PointerBuf::parse, ParseError) Verified with cargo doc --all-features (0 warnings, was 8), cargo test --all-features, and cargo clippy --all-features --all-targets. --- README.md | 4 ++-- src/diagnostic.rs | 6 +++--- src/lib.rs | 8 ++++---- src/pointer.rs | 4 ++-- src/resolve.rs | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 700131e..0811197 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ dual licensed as above, without any additional terms or conditions. [`serde`]: https://docs.rs/serde/1.0/serde/index [`serde_json`]: https://docs.rs/serde_json/1.0/serde_json/enum.Value.html [`serde_json::Value`]: https://docs.rs/serde_json/1.0/serde_json/enum.Value.html -[`toml`]: https://docs.rs/toml/0.8/toml/enum.Value.html -[`toml::Value`]: https://docs.rs/toml/0.8/toml/enum.Value.html +[`toml`]: https://docs.rs/toml/0.9/toml/enum.Value.html +[`toml::Value`]: https://docs.rs/toml/0.9/toml/enum.Value.html [`Path`]: https://doc.rust-lang.org/std/path/struct.Path.html [`PathBuf`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html diff --git a/src/diagnostic.rs b/src/diagnostic.rs index 086cb69..e909dbc 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -17,7 +17,7 @@ pub trait Diagnostic: Sized { /// The docs.rs URL for this error fn url() -> &'static str; - /// Returns the label for the given [`Subject`] if applicable. + /// Returns the label for the given [`Subject`](Diagnostic::Subject) if applicable. fn labels(&self, subject: &Self::Subject) -> Option>>; } @@ -51,8 +51,8 @@ impl From