]> git.proxmox.com Git - rustc.git/blame - library/core/src/prelude/mod.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / library / core / src / prelude / mod.rs
CommitLineData
e9174d1e 1//! The libcore prelude
6a06907d
XL
2//!
3//! This module is intended for users of libcore which do not link to libstd as
4//! well. This module is imported by default when `#![no_std]` is used in the
5//! same manner as the standard library's prelude.
c34b1796 6
e9174d1e
SL
7#![stable(feature = "core_prelude", since = "1.4.0")]
8
9pub mod v1;
6a06907d
XL
10
11/// The 2015 version of the core prelude.
12///
13/// See the [module-level documentation](self) for more.
14#[unstable(feature = "prelude_2015", issue = "none")]
15pub mod rust_2015 {
16 #[unstable(feature = "prelude_2015", issue = "none")]
17 #[doc(no_inline)]
18 pub use super::v1::*;
19}
20
21/// The 2018 version of the core prelude.
22///
23/// See the [module-level documentation](self) for more.
24#[unstable(feature = "prelude_2018", issue = "none")]
25pub mod rust_2018 {
26 #[unstable(feature = "prelude_2018", issue = "none")]
27 #[doc(no_inline)]
28 pub use super::v1::*;
29}
30
31/// The 2021 version of the core prelude.
32///
33/// See the [module-level documentation](self) for more.
34#[unstable(feature = "prelude_2021", issue = "none")]
35pub mod rust_2021 {
36 #[unstable(feature = "prelude_2021", issue = "none")]
37 #[doc(no_inline)]
38 pub use super::v1::*;
39
40 // FIXME: Add more things.
41}