Skip to content

Try unremapping compiler sources #142377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. labels Jun 11, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 11, 2025

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@Urgau Urgau force-pushed the unremap-rustc-dev branch from 2d8394a to 7c1d47a Compare June 11, 2025 18:30
@bors

This comment was marked as resolved.

@Urgau Urgau force-pushed the unremap-rustc-dev branch from 7c1d47a to 5dca84f Compare June 12, 2025 16:50
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-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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.

4 participants