@@ -162,6 +162,7 @@ pub type AllowFeatures = BTreeSet<String>;
162
162
/// - Set [`LATEST_UNSTABLE`] to None.
163
163
/// - Set [`LATEST_STABLE`] to the new version.
164
164
/// - Update [`is_stable`] to `true`.
165
+ /// - Set [`first_version`] to the version it will be released.
165
166
/// - Set the editionNNNN feature to stable in the [`features!`] macro invocation below.
166
167
/// - Update any tests that are affected.
167
168
/// - Update the man page for the `--edition` flag.
@@ -178,6 +179,7 @@ pub type AllowFeatures = BTreeSet<String>;
178
179
/// [`LATEST_UNSTABLE`]: Edition::LATEST_UNSTABLE
179
180
/// [`LATEST_STABLE`]: Edition::LATEST_STABLE
180
181
/// [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
181
183
/// [`is_stable`]: Edition::is_stable
182
184
/// [`toml`]: crate::util::toml
183
185
/// [`features!`]: macro.features.html
@@ -200,9 +202,9 @@ impl Edition {
200
202
/// The latest edition that is unstable.
201
203
///
202
204
/// This is `None` if there is no next unstable edition.
203
- pub const LATEST_UNSTABLE : Option < Edition > = Some ( Edition :: Edition2024 ) ;
205
+ pub const LATEST_UNSTABLE : Option < Edition > = None ;
204
206
/// The latest stable edition.
205
- pub const LATEST_STABLE : Edition = Edition :: Edition2021 ;
207
+ pub const LATEST_STABLE : Edition = Edition :: Edition2024 ;
206
208
pub const ALL : & ' static [ Edition ] = & [
207
209
Self :: Edition2015 ,
208
210
Self :: Edition2018 ,
@@ -223,7 +225,7 @@ impl Edition {
223
225
Edition2015 => None ,
224
226
Edition2018 => Some ( semver:: Version :: new ( 1 , 31 , 0 ) ) ,
225
227
Edition2021 => Some ( semver:: Version :: new ( 1 , 56 , 0 ) ) ,
226
- Edition2024 => None ,
228
+ Edition2024 => Some ( semver :: Version :: new ( 1 , 85 , 0 ) ) ,
227
229
}
228
230
}
229
231
@@ -234,7 +236,7 @@ impl Edition {
234
236
Edition2015 => true ,
235
237
Edition2018 => true ,
236
238
Edition2021 => true ,
237
- Edition2024 => false ,
239
+ Edition2024 => true ,
238
240
}
239
241
}
240
242
@@ -507,7 +509,7 @@ features! {
507
509
( stable, workspace_inheritance, "1.64" , "reference/unstable.html#workspace-inheritance" ) ,
508
510
509
511
/// Support for 2024 edition.
510
- ( unstable , edition2024, "" , "reference/unstable .html#edition-2024 " ) ,
512
+ ( stable , edition2024, "1.85 " , "reference/manifest .html#the- edition-field " ) ,
511
513
512
514
/// Allow setting trim-paths in a profile to control the sanitisation of file paths in build outputs.
513
515
( unstable, trim_paths, "" , "reference/unstable.html#profile-trim-paths-option" ) ,
0 commit comments