File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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<! --
7070Possible 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
7576Unstable `-- extern proc_macro` flag that would force the crate into the
7677extern prelude.
You can’t perform that action at this time.
0 commit comments