Skip to content

Broken link in rustdoc::display::Joined docs #148879

@lolbinarycat

Description

@lolbinarycat

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:

  1. git checkout d6deffe2debecc66501e50f9573214139ab4d678
  2. ./x doc --open --stage 1 src/tools/rustdoc
  3. search "rustdoc::display::Joined::joined" and click on the first result
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions