Skip to content

Try unremapping compiler sources#142377

Merged
bors merged 2 commits intorust-lang:masterfrom
Urgau:unremap-rustc-dev
Jun 19, 2025
Merged

Try unremapping compiler sources#142377
bors merged 2 commits intorust-lang:masterfrom
Urgau:unremap-rustc-dev

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Jun 11, 2025

See #t-compiler/help > Span pointing to wrong file location (rustc-dev component).

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

Specifically we now take into account the CFG_VIRTUAL_RUSTC_DEV_SOURCE_BASE_DIR env from #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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants