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
The rust compiler has an option
--remap-path-prefixfor 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