diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-27 21:34:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-27 21:34:13 +0200 |
| commit | aa22867caf32ee63a0bf7d626225e142a2129ca4 (patch) | |
| tree | 77b95fca763e2426c5570032b2fd54bb2b1555ff | |
| parent | e13b7f73c31f42d2e8cce1a23d599ee9080d3895 (diff) | |
| parent | 60ab69d168f9a1b300a2e430cd05dcfd835bd8f7 (diff) | |
| download | rust-aa22867caf32ee63a0bf7d626225e142a2129ca4.tar.gz rust-aa22867caf32ee63a0bf7d626225e142a2129ca4.zip | |
Rollup merge of #106456 - kadiwa4:std-prelude-comment, r=jyn514
Correct `std::prelude` comment (Read the changed file first for context.) First, `alloc` has no prelude. Second, the docs for `v1` don't matter since the [prelude module] already has all the doc links. The `rust_2021` module for instance also doesnt have a convenient doc page. However as I understand glob imports still cant be used because the items dont have the same stabilisation versions. [prelude module]: https://doc.rust-lang.org/std/prelude/index.html
| -rw-r--r-- | library/std/src/prelude/v1.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index 2aefd7c513d..7a7a7737635 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -91,10 +91,10 @@ pub use core::prelude::v1::cfg_eval; )] pub use core::prelude::v1::type_ascribe; -// The file so far is equivalent to src/libcore/prelude/v1.rs, -// and below to src/liballoc/prelude.rs. -// Those files are duplicated rather than using glob imports -// because we want docs to show these re-exports as pointing to within `std`. +// The file so far is equivalent to core/src/prelude/v1.rs. It is duplicated +// rather than glob imported because we want docs to show these re-exports as +// pointing to within `std`. +// Below are the items from the alloc crate. #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] |
