Skip to content

Commit aa22867

Browse files
authored
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
2 parents e13b7f7 + 60ab69d commit aa22867

File tree

1 file changed

+4
-4
lines changed
  • library/std/src/prelude

1 file changed

+4
-4
lines changed

library/std/src/prelude/v1.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ pub use core::prelude::v1::cfg_eval;
9191
)]
9292
pub use core::prelude::v1::type_ascribe;
9393

94-
// The file so far is equivalent to src/libcore/prelude/v1.rs,
95-
// and below to src/liballoc/prelude.rs.
96-
// Those files are duplicated rather than using glob imports
97-
// because we want docs to show these re-exports as pointing to within `std`.
94+
// The file so far is equivalent to core/src/prelude/v1.rs. It is duplicated
95+
// rather than glob imported because we want docs to show these re-exports as
96+
// pointing to within `std`.
97+
// Below are the items from the alloc crate.
9898

9999
#[stable(feature = "rust1", since = "1.0.0")]
100100
#[doc(no_inline)]

0 commit comments

Comments
 (0)