about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src/lib.rs
diff options
context:
space:
mode:
authorUrgau <3616612+Urgau@users.noreply.github.com>2025-06-18 19:40:32 +0200
committerGitHub <noreply@github.com>2025-06-18 19:40:32 +0200
commitbf38e5dee3608d68f95eb34864192e8b6b6597c0 (patch)
tree6ae6890f5a00d60b67ffebcb82d8f175e8b521cb /compiler/rustc_driver_impl/src/lib.rs
parent2011ab51528ba9469ba313ff3c269b465d042f1d (diff)
parent268fbfed477a20cb7efa04b8c28982f46f16a4a4 (diff)
downloadrust-bf38e5dee3608d68f95eb34864192e8b6b6597c0.tar.gz
rust-bf38e5dee3608d68f95eb34864192e8b6b6597c0.zip
Rollup merge of #142377 - Urgau:unremap-rustc-dev, r=jieyouxu
Try unremapping compiler sources

See [#t-compiler/help > Span pointing to wrong file location (`rustc-dev` component)](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/Span.20pointing.20to.20wrong.20file.20location.20.28.60rustc-dev.60.20component.29/with/521087083).

This PR is a follow-up to rust-lang/rust#141751 regarding the compiler side.

Specifically we now take into account the `CFG_VIRTUAL_RUSTC_DEV_SOURCE_BASE_DIR` env from rust-lang/rust#141751 when trying to unremap sources from `$sysroot/lib/rustlib/rustc-src/rust` (the `rustc-dev` component install directory).

Best reviewed commit by commit.

cc ``@samueltardieu``
r? ``@jieyouxu``
Diffstat (limited to 'compiler/rustc_driver_impl/src/lib.rs')
0 files changed, 0 insertions, 0 deletions