Skip to content

Commit 85bbbad

Browse files
committed
A disclaimer about keywords.
Some people cite this list as "zomg Rust has so many keywords," so make it clear that these aren't all used by the language today.
1 parent d06f1dc commit 85bbbad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/grammar.md

+5
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ token : simple_token | ident | literal | symbol | whitespace token ;
172172
Each of these keywords has special meaning in its grammar, and all of them are
173173
excluded from the `ident` rule.
174174

175+
Not all of these keywords are used by the language. Some of them were used
176+
before Rust 1.0, and were left reserved once their implementations were
177+
removed. Some of them were reserved before 1.0 to make space for possible
178+
future features.
179+
175180
### Literals
176181

177182
```antlr

0 commit comments

Comments
 (0)