about summary refs log tree commit diff
path: root/library/core/src/prelude/mod.rs
AgeCommit message (Collapse)AuthorLines
2025-02-24span: add a "future" editionDavid Wood-0/+23
It's hard to implement edition migrations without having a perma-unstable "future" edition to target.
2025-02-11Remove the common prelude moduleEric Huss-11/+3
This fixes the issues described in https://github.com/rust-lang/rust/issues/136102. Primarily, this resolves some issues with how the documentation for the prelude is generated: - It avoids showing "unstable" for macros in the prelude that are actually stable. - Avoids duplication of some pages due to the previous lack of `doc(no_inline)`. - Makes the different edition preludes consistent, and sets a pattern that can be used by future editions. We may need to rearrange these modules in the future if we decide to remove anything from the prelude again. If we do, I think we should look into a different solution that avoids the documentation problems.
2025-01-14remove Rustc{En,De}codable from library and compilerRalf Jung-9/+0
2025-01-14make rustc_encodable_decodable feature properly unstableRalf Jung-2/+1
2025-01-08update version placeholdersPietro Albini-2/+2
2024-12-11Stabilize the Rust 2024 preludeEric Huss-2/+2
2024-07-17Avoid comments that describe multiple `use` items.Nicholas Nethercote-0/+3
There are some comments describing multiple subsequent `use` items. When the big `use` reformatting happens some of these `use` items will be reordered, possibly moving them away from the comment. With this additional level of formatting it's not really feasible to have comments of this type. This commit removes them in various ways: - merging separate `use` items when appropriate; - inserting blank lines between the comment and the first `use` item; - outright deletion (for comments that are relatively low-value); - adding a separate "top-level" comment. We also entirely skip formatting for four library files that contain nothing but `pub use` re-exports, where reordering would be painful.
2024-03-22Remove RustcEncodable/Decodable from 2024 preludeJacob Pratt-4/+30
2024-02-18Add `Future` and `IntoFuture` to the 2024 preludeNilstrieb-2/+6
Implements RFC 3509.
2022-12-30Replace libstd, libcore, liballoc in docs.jonathanCogan-4/+4
2022-04-02Create 2024 editionJacob Pratt-0/+10
2021-06-14Stabilize {std, core}::prelude::rust_*.Mara Bos-8/+8
2021-05-25Add new traits to 2021 prelude.Mara Bos-1/+7
2021-05-25Add tracking issue for edition-specific preludes.Mara Bos-6/+6
2021-02-25Use intra-doc links.Mara-3/+3
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-02-25Add {core,std}::prelude::{rust_2015,rust_2018,rust_2021}.Mara Bos-0/+36
rust_2015 and rust_2018 are just re-exports of v1. rust_2021 is a module that for now just re-exports everything from v1, such that we can add more things later.
2020-07-27mv std libs to library/mark-0/+5