Closed
Description
Feature gate: #![feature(prelude_2024)]
This is a tracking issue for the 2024 prelude.
Public API
The 2024 prelude contains the following items in addition to all items in the 2024 prelude:
core::future::{Future, IntoFuture}
: RFC 3509 RFC: IncludeFuture
andIntoFuture
in the 2024 prelude rfcs#3509
// core::prelude
pub mod rust_2024 {
pub use super::rust_2021::*;
pub use crate::future::{Future, IntoFuture};
}
And removes RustcEncodable
, and RustcDecodable
:
Steps
- Implement in nightly Rust 2024 (
Future
,IntoFuture
). - Implement in nightly Rust 2024 (
RustcEncodeable
,RustcDecodable
). - Add migration lint for Future (based on the previous migration lints)
- N/A Add migration lint for RustcEncodable
- This would be nice to have but not required.
- Add documentation to the edition guide.
- Update edition guide docs with migration details.
- Ensure ready for Rust 2024 stabilization.
Related
Implementation History
- Soft-destabilize
RustcEncodable
&RustcDecodable
, remove from prelude in next edition #116016 - Add
Future
andIntoFuture
to the 2024 prelude #121041
Unresolved Questions
- None yet.