Skip to content

rustdoc link resolution is nondeterministic, depends on job number #106011

Open
@jonas-schievink

Description

@jonas-schievink

rust-analyzer generates documentation by running cargo doc --all --no-deps in CI, but I've noticed that the resulting documentation doesn't have any clickable links, even to other workspace crates. Some investigation showed that I couldn't reproduce this behavior locally unless I pass -j1 to Cargo, which indicates that the behavior is nondeterministic.

In total, I've observed these 3 different results:

Screenshot_20221221_184626
Screenshot_20221221_184644
screenshot-2022-12-21-18:41:14

These were all generated from the same commit, rust-lang/rust-analyzer@761b127, using Rust 1.66.0. (the item is hir::Semantics::speculative_expand)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-reproducibilityArea: Reproducible / deterministic buildsC-bugCategory: This is a bug.T-cargoRelevant to the cargo team, which will review and decide on the PR/issue.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