@@ -4,7 +4,7 @@ The following is a summary of changes that only apply to code compiled with
4
4
the 2018 edition compared to the 2015 edition.
5
5
6
6
## Rust
7
- - [ Non-lexical lifetimes] .
7
+ - [ Non-lexical lifetimes] & nbsp ; (future inclusion planned for 2015 edition)
8
8
- [ At most once] ` ? ` macro repetition operator.
9
9
- [ Path changes] :
10
10
- ` use ` declarations must begin with:
@@ -14,7 +14,8 @@ the 2018 edition compared to the 2015 edition.
14
14
- An external crate name.
15
15
- ` :: ` – must be followed by an external crate name. This is required
16
16
if an external crate has the same name as an in-scope item, to catch
17
- possible ambiguities with future module changes.
17
+ possible ambiguities with [ uniform paths]   ; (which is planned for
18
+ inclusion soon [ #55618 ] ).
18
19
- Paths in ` pub(in path) ` visibility modifiers must start with ` crate ` ,
19
20
` self ` , or ` super ` .
20
21
- [ Anonymous trait function parameters] are not allowed.
@@ -34,6 +35,7 @@ the 2018 edition compared to the 2015 edition.
34
35
- ` cargo install ` for the current directory is no longer allowed, you must
35
36
specify ` cargo install --path . ` to install the current package.
36
37
38
+ [ #55618 ] : https://github.com/rust-lang/rust/issues/55618
37
39
[ Anonymous trait function parameters ] : rust-2018/trait-system/no-anon-params.html
38
40
[ At most once ] : rust-2018/macros/at-most-once.html
39
41
[ Non-lexical lifetimes ] : rust-2018/ownership-and-lifetimes/non-lexical-lifetimes.html
@@ -44,4 +46,5 @@ the 2018 edition compared to the 2015 edition.
44
46
[ reserved keywords ] : https://doc.rust-lang.org/reference/keywords.html#reserved-keywords
45
47
[ strict keyword ] : https://doc.rust-lang.org/reference/keywords.html#strict-keywords
46
48
[ tyvar_behind_raw_pointer ] : https://github.com/rust-lang/rust/issues/46906
49
+ [ uniform paths ] : rust-2018/module-system/path-clarity.html#uniform-paths
47
50
[ weak keyword ] : https://doc.rust-lang.org/reference/keywords.html#weak-keywords
0 commit comments