Skip to content

Commit 52c62ee

Browse files
ehussepage
authored andcommitted
Update edition stabilization docs
Updating `first_version` is another thing that needs to be checked when updating.
1 parent 5306252 commit 52c62ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cargo/core/features.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ pub type AllowFeatures = BTreeSet<String>;
162162
/// - Set [`LATEST_UNSTABLE`] to None.
163163
/// - Set [`LATEST_STABLE`] to the new version.
164164
/// - Update [`is_stable`] to `true`.
165+
/// - Set [`first_version`] to the version it will be released.
165166
/// - Set the editionNNNN feature to stable in the [`features!`] macro invocation below.
166167
/// - Update any tests that are affected.
167168
/// - Update the man page for the `--edition` flag.
@@ -178,6 +179,7 @@ pub type AllowFeatures = BTreeSet<String>;
178179
/// [`LATEST_UNSTABLE`]: Edition::LATEST_UNSTABLE
179180
/// [`LATEST_STABLE`]: Edition::LATEST_STABLE
180181
/// [this example]: https://github.com/rust-lang/cargo/blob/3ebb5f15a940810f250b68821149387af583a79e/src/doc/src/reference/unstable.md?plain=1#L1238-L1264
182+
/// [`first_version`]: Edition::first_version
181183
/// [`is_stable`]: Edition::is_stable
182184
/// [`toml`]: crate::util::toml
183185
/// [`features!`]: macro.features.html

0 commit comments

Comments
 (0)