Skip to content

Commit 7777b0b

Browse files
authored
Rollup merge of #73484 - poliorcetics:use-prelude-doc, r=sfackler
Update the doc for std::prelude to the correct behavior Fixes #64686. One line change to ensure the docs are correct about the behavior of the compiler when inserting`std::prelude::v1`. I don't think examples are necessary but I can add some (especially those from the original issue) if needed.
2 parents fd1c783 + 8f0bd5f commit 7777b0b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/libstd/prelude/mod.rs

-16
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@
1010
//! things, particularly traits, which are used in almost every single Rust
1111
//! program.
1212
//!
13-
//! On a technical level, Rust inserts
14-
//!
15-
//! ```
16-
//! # #[allow(unused_extern_crates)]
17-
//! extern crate std;
18-
//! ```
19-
//!
20-
//! into the crate root of every crate, and
21-
//!
22-
//! ```
23-
//! # #[allow(unused_imports)]
24-
//! use std::prelude::v1::*;
25-
//! ```
26-
//!
27-
//! into every module.
28-
//!
2913
//! # Other preludes
3014
//!
3115
//! Preludes can be seen as a pattern to make using multiple types more

0 commit comments

Comments
 (0)