Code
https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc/display/trait.Joined.html#tymethod.joined
pub(crate) trait Joined: IntoIterator {
/// Takes an iterator over elements that implement [`Display`], and format them into `f`, separated by `sep`.
///
/// This is similar to [`Itertools::format`](itertools::Itertools::format), but instead of returning an implementation of `Display`,
/// it formats directly into a [`Formatter`].
///
/// The performance of `joined` is slightly better than `format`, since it doesn't need to use a `Cell` to keep track of whether [`fmt`](Display::fmt)
/// was already called (`joined`'s API doesn't allow it be called more than once).
fn joined(self, sep: impl Display, f: &mut Formatter<'_>) -> fmt::Result;
}
Reproduction Steps
In the rust-lang repo:
git checkout d6deffe2debecc66501e50f9573214139ab4d678
./x doc --open --stage 1 src/tools/rustdoc
- search "rustdoc::display::Joined::joined" and click on the first result
- click on the link labeled "Itertools::format"
Expected Outcome
Browser navigates to https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.format
Actual Outcome
Browser literally navigates to "itertools::Itertools::format" and errors because that is not a URL
Version
rustdoc 1.93.0-nightly (25d319a 2025-11-11)
Additional Details
Code
https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc/display/trait.Joined.html#tymethod.joined
Reproduction Steps
In the rust-lang repo:
git checkout d6deffe2debecc66501e50f9573214139ab4d678./x doc --open --stage 1 src/tools/rustdocExpected Outcome
Browser navigates to https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.format
Actual Outcome
Browser literally navigates to "itertools::Itertools::format" and errors because that is not a URL
Version
rustdoc 1.93.0-nightly (25d319a 2025-11-11)
Additional Details