File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ symbols! {
26
26
// documents (such as the Rust Reference) about whether it is a keyword
27
27
// (e.g. `_`).
28
28
//
29
- // If you modify this list, adjust any relevant `Symbol::{is,can_be}_*` predicates and
30
- // `used_keywords`.
31
- // But this should rarely be necessary if the keywords are kept in alphabetic order.
29
+ // If you modify this list, adjust any relevant `Symbol::{is,can_be}_*`
30
+ // predicates and `used_keywords`. (This should rarely be necessary if
31
+ // the keywords are kept in alphabetic order.) Also consider adding new
32
+ // keywords to the `ui/parser/raw/raw-idents.rs` test.
32
33
Keywords {
33
34
// Special reserved identifiers used internally for elided lifetimes,
34
35
// unnamed method parameters, crate root module, error recovery etc.
@@ -104,8 +105,6 @@ symbols! {
104
105
Gen : "gen" , // >= 2024 Edition only
105
106
Try : "try" , // >= 2018 Edition only
106
107
107
- // NOTE: When adding new keywords, consider adding them to the ui/parser/raw/raw-idents.rs test.
108
-
109
108
// "Lifetime keywords": regular keywords with a leading `'`.
110
109
// Matching predicates: none
111
110
UnderscoreLifetime : "'_" ,
You can’t perform that action at this time.
0 commit comments