rustdoc: use remap-path-prefix · Issue #69264 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@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