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.
@@ -113,8 +114,6 @@ symbols! {
113
114
Gen : "gen" , // >= 2024 Edition only
114
115
Try : "try" , // >= 2018 Edition only
115
116
116
- // NOTE: When adding new keywords, consider adding them to the ui/parser/raw/raw-idents.rs test.
117
-
118
117
// "Lifetime keywords": regular keywords with a leading `'`.
119
118
// Matching predicates: none
120
119
UnderscoreLifetime : "'_" ,
You can’t perform that action at this time.
0 commit comments