Skip to content

Add unstable go-to-stage option - #163670

Open
blyxyas wants to merge 6 commits into
rust-lang:mainfrom
blyxyas:go-to-stage-flag
Open

blyxyas wants to merge 6 commits into
rust-lang:mainfrom
blyxyas:go-to-stage-flag

Conversation

@blyxyas

@blyxyas blyxyas commented Oct 2, 2026

Copy link
Copy Markdown
Member

Adds a go-to-stage flag, this flag makes the compiler exit after a certain stage. Currently it recognizes end (the default which is effectively a no-op), analysis for stopping after analysis and
nameres for stopping just after name resolution.

analysis is similar to --emit=metadata without link, and nameres will be used for the probe run in Cargo (See blyxyas/incr-systems#4)

Related to blyxyas/incr-systems#3 and rust-lang/goals#641
r? @jackh726

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 2, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rustbot

rustbot commented Oct 5, 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.

@jackh726 jackh726 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should add a new flag here - I think we should be reusing --emit.

I think we likely need a couple things:

  1. We need to ANALYSIS and ANALYSIS_FULL (or similar) output types to stop immediately after required and full analyses.
  2. I don't think we should be doing something like "if emitting depinfo and nothing else" but rather "needs XYZ". Because we may want to do `--emit=depinfo,metadata"

View changes since this review

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 5, 2026

This branch has not been deployed

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

Labels

A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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