File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -159,16 +159,17 @@ how it is resolved.
159
159
160
160
### ` :: `
161
161
162
- Paths starting with ` :: ` are considered to be global paths where the segments of the path
163
- start being resolved from the crate root. Each identifier in the path must resolve to an
164
- item.
165
-
166
- > ** Edition Differences** : In the 2015 Edition, the crate root contains a variety of
167
- > different items, including external crates, default crates such as ` std ` or ` core ` , and
168
- > items in the top level of the crate (including ` use ` imports).
162
+ Paths starting with ` :: ` are considered to be * global paths* where the segments of the path
163
+ start being resolved from a place which differs based on edition. Each identifier in
164
+ the path must resolve to an item.
165
+
166
+ > ** Edition Differences** : In the 2015 Edition, identifiers resolve from the "crate root"
167
+ > (` crate:: ` in the 2018 edition), which contains a variety of different items, including
168
+ > external crates, default crates such as ` std ` or ` core ` , and items in the top level of
169
+ > the crate (including ` use ` imports).
169
170
>
170
- > Beginning with the 2018 Edition, paths starting with ` :: ` can only reference
171
- > crates in the [ extern prelude] .
171
+ > Beginning with the 2018 Edition, paths starting with ` :: ` resolve from
172
+ > crates in the [ extern prelude] . That is, they must be followed by the name of a crate.
172
173
173
174
``` rust
174
175
mod a {
You can’t perform that action at this time.
0 commit comments