rust stdlib analysis contains absolute paths from appveyor and travis-CI #60157
Labels
A-save-analysis
Area: saving results of analyses such as inference and borrowck results to a file.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Running something like
rustup component add rust-analysis
will download a tarball containing the-Zsave-analysis
data for the rust stdlib crates. However, these JSON files in some cases contain absolute paths for the environment they were generated in, like/Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.46/src/unix/mod.rs
or similar windows paths atC:\Users\appveyor
, or other absolute paths like/cargo/registry/src/github.com-1ecc6299db9ec823/rustc-demangle-0.1.10/src/lib.rs
. It would be better if the analysis data had relative paths so that the analysis files can be used on other machines.See also rust-lang/rls#1339, /cc @Xanewok
The text was updated successfully, but these errors were encountered: