Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8979fb8

Browse files
authored
Update stability guide to use CURRENT_RUSTC_VERSION (rust-lang#1468)
1 parent 8fbdfcd commit 8979fb8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/doc/rustc-dev-guide/src/stability.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ To stabilize a feature, follow these steps:
7474

7575
0. Ask a **@T-libs-api** member to start an FCP on the tracking issue and wait for
7676
the FCP to complete (with `disposition-merge`).
77-
1. Change `#[unstable(...)]` to `#[stable(since = "version")]`.
78-
`version` should be the *current nightly*, i.e. stable+2. You can see which version is
79-
the current nightly [on Forge](https://forge.rust-lang.org/#current-release-versions).
77+
1. Change `#[unstable(...)]` to `#[stable(since = "CURRENT_RUSTC_VERSION")]`.
8078
2. Remove `#![feature(...)]` from any test or doc-test for this API. If the feature is used in the
8179
compiler or tools, remove it from there as well.
8280
3. If applicable, change `#[rustc_const_unstable(...)]` to
83-
`#[rustc_const_stable(since = "version")]`.
81+
`#[rustc_const_stable(since = "CURRENT_RUSTC_VERSION")]`.
8482
4. Open a PR against `rust-lang/rust`.
8583
- Add the appropriate labels: `@rustbot modify labels: +T-libs-api`.
8684
- Link to the tracking issue and say "Closes #XXXXX".

0 commit comments

Comments
 (0)