Skip to content

Commit 2e3f4e6

Browse files
committed
Clarify that async/await are not "reserved", but real (strict) keywords.
1 parent 2782ae5 commit 2e3f4e6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/rust-2018/edition-changes.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ the 2018 edition compared to the 2015 edition.
1111
- [Anonymous trait function parameters] are not allowed.
1212
- [Trait function parameters] may use any irrefutable pattern when the
1313
function has a body.
14-
- [`dyn`] is a [strict keyword], in 2015 it is a [weak keyword].
15-
- `async`, `await`, and `try` are [reserved keywords].
14+
- Keyword changes:
15+
- [`dyn`] is a [strict keyword][strict], in 2015 it is a [weak keyword].
16+
- `async` and `await` are [strict keywords][strict].
17+
- `try` is a [reserved keyword].
1618
- The following lints are now deny by default:
1719
- [tyvar_behind_raw_pointer]
1820

@@ -28,7 +30,7 @@ the 2018 edition compared to the 2015 edition.
2830
[Path changes]: module-system/path-clarity.md
2931
[Trait function parameters]: https://doc.rust-lang.org/stable/reference/items/traits.html#parameter-patterns
3032
[`dyn`]: trait-system/dyn-trait-for-trait-objects.md
31-
[reserved keywords]: https://doc.rust-lang.org/reference/keywords.html#reserved-keywords
32-
[strict keyword]: https://doc.rust-lang.org/reference/keywords.html#strict-keywords
33+
[reserved keyword]: https://doc.rust-lang.org/reference/keywords.html#reserved-keywords
34+
[strict]: https://doc.rust-lang.org/reference/keywords.html#strict-keywords
3335
[tyvar_behind_raw_pointer]: https://github.com/rust-lang/rust/issues/46906
3436
[weak keyword]: https://doc.rust-lang.org/reference/keywords.html#weak-keywords

0 commit comments

Comments
 (0)