Skip to content

rustdoc: use remap-path-prefix #69264

Closed
@nmattia

Description

@nmattia

The rust compiler has an option --remap-path-prefix for remapping path prefixes. It's useful to avoid runtime messages that are independent of where the source code was located during the build.

As far as I can tell that doesn't apply to rustdoc's <meta> info "Source to the Rust file ...", which (to me) is unexpected.

Meta

$ rustc --version --verbose
rustc 1.40.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-apple-darwin
release: 1.40.0
LLVM version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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