Skip to content

Document adding unstable compiler flags#2886

Open
Herrtian wants to merge 2 commits into
rust-lang:mainfrom
Herrtian:document-unstable-compiler-flags-972
Open

Document adding unstable compiler flags#2886
Herrtian wants to merge 2 commits into
rust-lang:mainfrom
Herrtian:document-unstable-compiler-flags-972

Conversation

@Herrtian
Copy link
Copy Markdown
Contributor

@Herrtian Herrtian commented May 31, 2026

Adds a short section to the feature implementation chapter that explains the usual steps for adding a new unstable -Z compiler flag.

Checks:

  • git diff --check
  • RUSTC_BOOTSTRAP=1 cargo run --release --manifest-path ci/sembr/Cargo.toml src/implementing-new-features.md

Closes #972

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 31, 2026

Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using r? rustc-dev-guide or r? <username>.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label May 31, 2026
@Herrtian
Copy link
Copy Markdown
Contributor Author

r? rustc-dev-guide

@BoxyUwU
Copy link
Copy Markdown
Member

BoxyUwU commented Jun 1, 2026

r? me

can you link to https://forge.rust-lang.org/compiler/proposals-and-stabilization.html?highlight=unstable%20flag#compiler-flags somewhere and note that adding new unstable flags sometimes requires more sign off than just an r+ on a PR

@rustbot rustbot assigned BoxyUwU and unassigned reddevilmidzy Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to add a new unstable (debugging) flag

4 participants