Skip to content

rustdoc: In specific circumstances, links to core items in item signatures are now broken (beta → nightly regression) #152917

@fmease

Description

@fmease

Noticed while browsing r-l/r's API docs:

On 1.94.0-beta.4 (172dc09 2026-02-18), type Bound in function rustc_parse::Parser::parse_expr_assoc_with (beta) correctly links to https://doc.rust-lang.org/beta/core/ops/range/enum.Bound.html. However, on 1.95.0-nightly
(7f99507 2026-02-19), type Bound in function rustc_parse::Parser::parse_expr_assoc_with (nightly) links to (BROKEN) https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/core/ops/range/enum.Bound.html (notice how the URL doesn't just contain the target crate name core but also the source crate name rustc_parse before that; some path manipulations seem to go awry here).

I couldn't minimize it so far or find similar regressions. I couldn't find similar reports. I don't know if it only concerns links to core / sysroot crates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleP-highHigh priorityS-has-bisectionStatus: A bisection has been found for this issueT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions