Skip to content

Document adding unstable compiler flags#2886

Merged
BoxyUwU merged 3 commits into
rust-lang:mainfrom
Herrtian:document-unstable-compiler-flags-972
Jun 5, 2026
Merged

Document adding unstable compiler flags#2886
BoxyUwU merged 3 commits into
rust-lang:mainfrom
Herrtian:document-unstable-compiler-flags-972

Conversation

@Herrtian

@Herrtian Herrtian commented May 31, 2026

Copy link
Copy Markdown
Contributor

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

rustbot commented May 31, 2026

Copy link
Copy Markdown
Collaborator

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

BoxyUwU commented Jun 1, 2026

Copy link
Copy Markdown
Member

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
Comment thread src/implementing-new-features.md
@Herrtian

Herrtian commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Added the Forge compiler flags link and the sign-off note, and linked UnstableOptions for link checks.

@BoxyUwU BoxyUwU merged commit 05ff92e into rust-lang:main Jun 5, 2026
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Jun 5, 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.

Document how to add a new unstable (debugging) flag

4 participants