Skip to content

Remove experimental --env-set option - #161831

Open
Urgau wants to merge 1 commit into
rust-lang:mainfrom
Urgau:rm-env-set
Open

Remove experimental --env-set option#161831
Urgau wants to merge 1 commit into
rust-lang:mainfrom
Urgau:rm-env-set

Conversation

@Urgau

@Urgau Urgau commented Aug 26, 2026

Copy link
Copy Markdown
Member

This PR removes the experimental/unstable --env-set option.

The primary motivation for the feature meson/ninja consider it insufficient and a failure. They are even planning to use a wrapper anyway, entirely removing the need for it.

I looked at GitHub search and apart from Buck2 who seemed to be using it, I didn't find a significant user.

Close-ish #118372

cc @GuillaumeGomez @bonzini
r? @nnethercote

@rustbot

rustbot commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rustbot rustbot added 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. T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue. labels Aug 26, 2026

@nnethercote nnethercote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've never heard of this option. Why does an unstable option not have a -Z prefix?

View changes since this review

@bonzini

bonzini commented Aug 30, 2026

Copy link
Copy Markdown

Why does an unstable option not have a -Z prefix?

Because it's enabled by -Zunstable-options. :)

@nnethercote nnethercote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If it's good enough for @GuillaumeGomez it's good enough for me.

View changes since this review

So if you first passed:

```bash
--env-set A=B --env X=12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This --env was out of date.

@nnethercote

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

πŸ“Œ Commit fadc7c6 has been approved by nnethercote

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 30, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 31, 2026
Remove experimental `--env-set` option

This PR removes the experimental/unstable `--env-set` option.

The primary motivation for the feature meson/ninja [consider it](rust-lang#161609 (comment)) insufficient and a failure. They are even [planning](rust-lang#161609 (comment)) to use a wrapper anyway, entirely removing the need for it.

I looked at GitHub search and apart from Buck2 who [seemed to be using it](rust-lang#161609 (comment)), I didn't find a significant user.
rust-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
Rollup of 3 pull requests

Successful merges:

 - #161603 (Add llubi to llvm-tools)
 - #161831 (Remove experimental `--env-set` option)
 - #161721 (Add f16 summary provider for PDB debug info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rust-analyzer Relevant to the rust-analyzer 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