Skip to content

[rustdoc] --static-root-path is ignored for proc macro crates if --target is also passed #66796

Closed
@jyn514

Description

@jyn514

I've been on a wild ride trying to figure out exactly what's been going on.

Minimal example: clone https://github.com/la10736/rstest and run RUSTDOCFLAGS="-Z unstable-options --static-root-path /" cargo +nightly doc --target x86_64-unknown-linux-gnu. The links to static files should start with /; instead they start with ../.

Note that if you omit --target, the --static-root-path / argument works fine. I'm not sure why they conflict in this way.

This is the root cause of rust-lang/docs.rs#422.
This is similar but not the same as #62940.

cc @QuietMisdreavus @pietroalbini

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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