Skip to content

Remove legacy --rustc-quit-on-rmeta codepath from process_wrapper#3

Merged
walter-zeromatter merged 1 commit into
mainfrom
user/wgray/pipelining
Feb 26, 2026
Merged

Remove legacy --rustc-quit-on-rmeta codepath from process_wrapper#3
walter-zeromatter merged 1 commit into
mainfrom
user/wgray/pipelining

Conversation

@walter-zeromatter
Copy link
Copy Markdown
Owner

The old pipelining approach had the process_wrapper kill rustc after it wrote the .rmeta file, detected via an artifact JSON message with "emit": "metadata". This is no longer needed: rlib/lib types now use -Zno-codegen (hollow rlib), and non-rlib types with IDE metadata use --emit=dep-info,metadata which causes rustc to exit naturally.

Remove --rustc-quit-on-rmeta flag parsing from options.rs, the stop_on_rmeta_completion function and RustcMessage::Emit variant from rustc.rs, the kill logic and quit_on_rmeta threading through process_line in main.rs, and the Terminate variant from LineOutput in output.rs (along with its match arm in process_output).

Delete the test infrastructure that exercised the kill path: fake_rustc.rs (a stub rustc that emitted artifact JSON messages) and rustc_quit_on_rmeta.rs (the integration test for --rustc-quit-on-rmeta), along with their BUILD targets.

The old pipelining approach had the process_wrapper kill rustc after it wrote
the .rmeta file, detected via an artifact JSON message with "emit": "metadata".
This is no longer needed: rlib/lib types now use -Zno-codegen (hollow rlib), and
non-rlib types with IDE metadata use --emit=dep-info,metadata which causes rustc
to exit naturally.

Remove --rustc-quit-on-rmeta flag parsing from options.rs, the stop_on_rmeta_completion
function and RustcMessage::Emit variant from rustc.rs, the kill logic and quit_on_rmeta
threading through process_line in main.rs, and the Terminate variant from LineOutput
in output.rs (along with its match arm in process_output).

Delete the test infrastructure that exercised the kill path: fake_rustc.rs (a stub
rustc that emitted artifact JSON messages) and rustc_quit_on_rmeta.rs (the integration
test for --rustc-quit-on-rmeta), along with their BUILD targets.
@walter-zeromatter walter-zeromatter merged commit 8cf9598 into main Feb 26, 2026
walter-zeromatter pushed a commit that referenced this pull request Mar 6, 2026
walter-zeromatter pushed a commit that referenced this pull request Mar 6, 2026
walter-zeromatter pushed a commit that referenced this pull request Mar 17, 2026
walter-zeromatter pushed a commit that referenced this pull request Apr 3, 2026
walter-zeromatter pushed a commit that referenced this pull request Apr 15, 2026
walter-zeromatter pushed a commit that referenced this pull request Apr 17, 2026
walter-zeromatter pushed a commit that referenced this pull request May 8, 2026
walter-zeromatter pushed a commit that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant