Skip to content

Commit bea1e9c

Browse files
committed
Tweak extern prelude wording.
1 parent 768aa8d commit bea1e9c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/items/extern-crates.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ extern crate hello_world; // hyphen replaced with an underscore
4040

4141
## Extern Prelude
4242

43-
All external crates are available in the "extern prelude" which exposes the
44-
crate names into lexical scope of every module without the need for specifying
45-
`extern crate`.
43+
External crates provided to the compiler are added to the "extern prelude"
44+
which exposes the crate names into lexical scope of every module without the
45+
need for specifying `extern crate`.
4646

4747
> **Edition Differences**: In the 2015 edition, crates in the extern prelude
4848
> cannot be referenced via [use declarations], so it is generally standard
@@ -69,8 +69,9 @@ crate names into lexical scope of every module without the need for specifying
6969
<!--
7070
Possible upcoming changes that will change this:
7171
72-
`extern crate` items will automatically be added to the extern prelude.
73-
https://github.com/rust-lang/rust/pull/54658
72+
The `extern_crate_item_prelude` unstable feature allows `extern crate` to
73+
update the extern prelude in certain situations, see
74+
https://github.com/rust-lang/rust/pull/54658
7475
7576
Unstable `--extern proc_macro` flag that would force the crate into the
7677
extern prelude.

0 commit comments

Comments
 (0)