File tree 1 file changed +6
-5
lines changed
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
40
40
41
41
## Extern Prelude
42
42
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 ` .
46
46
47
47
> ** Edition Differences** : In the 2015 edition, crates in the extern prelude
48
48
> 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
69
69
<! --
70
70
Possible upcoming changes that will change this :
71
71
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
74
75
75
76
Unstable `-- extern proc_macro` flag that would force the crate into the
76
77
extern prelude.
You can’t perform that action at this time.
0 commit comments