Skip to content

bootstrap: Remove PATH_REMAP from command-line selector handling - #160675

Open
Zalathar wants to merge 3 commits into
rust-lang:mainfrom
Zalathar:path-remap
Open

bootstrap: Remove PATH_REMAP from command-line selector handling #160675
Zalathar wants to merge 3 commits into
rust-lang:mainfrom
Zalathar:path-remap

Conversation

@Zalathar

@Zalathar Zalathar commented Aug 7, 2026

Copy link
Copy Markdown
Member

Remapping of "rust-analyzer-proc-macro-srv" can be avoided by registering it as an alias attached to the real path.

Remapping of "test" is not necessary at all, since ./x test tests naturally selects all of the test suites in tests.

(This changes the order of steps listed in the relevant snapshot tests, but the set of steps is unchanged.)


The removal of ShouldRun::kind is not essential to this PR, but I included it because it would have conflicted with changes to ShouldRun's alias-related methods.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 7, 2026
@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Aug 7, 2026
@rustbot

rustbot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789

When registering selector paths/aliases, steps shouldn't need to know their
kind.
Remapping of "rust-analyzer-proc-macro-srv" can be avoided by registering it as
an alias attached to the real path.

Remapping of "test" is not necessary at all, since `./x test tests` naturally
selects all of the test suites in `tests`.
@rustbot

rustbot commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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

Labels

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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants