]> git.lizzy.rs Git - rust.git/commit
Split payload of FileName::Real to track both real and virutalized paths.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 29 May 2020 15:31:55 +0000 (11:31 -0400)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Sat, 30 May 2020 03:41:45 +0000 (23:41 -0400)
commitda09fd3db0c71680e16311140d07e8f1e079af82
tree63100f855b06ffe43d5cd9f4dba9489e20babf54
parent905d738b1af874e248b9fe7fe4b115458975d401
Split payload of FileName::Real to track both real and virutalized paths.

Such splits arise from metadata refs into libstd.

This way, we can (in a follow on commit) continue to emit the virtual name into
things like the like the StableSourceFileId that ends up in incremetnal build
artifacts, while still using the devirtualized file path when we want to access
the file.

Note that this commit is intended to be a refactoring; the actual fix to the bug
in question is in a follow-on commit.
14 files changed:
src/librustc_expand/base.rs
src/librustc_expand/expand.rs
src/librustc_expand/module.rs
src/librustc_expand/proc_macro_server.rs
src/librustc_interface/passes.rs
src/librustc_metadata/rmeta/decoder.rs
src/librustc_metadata/rmeta/encoder.rs
src/librustc_save_analysis/span_utils.rs
src/librustc_span/lib.rs
src/librustc_span/source_map.rs
src/librustdoc/html/render.rs
src/librustdoc/html/render/cache.rs
src/librustdoc/html/sources.rs
src/librustdoc/test.rs