File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ symbols! {
2626 // documents (such as the Rust Reference) about whether it is a keyword
2727 // (e.g. `_`).
2828 //
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.
3233 Keywords {
3334 // Special reserved identifiers used internally for elided lifetimes,
3435 // unnamed method parameters, crate root module, error recovery etc.
@@ -104,8 +105,6 @@ symbols! {
104105 Gen : "gen" , // >= 2024 Edition only
105106 Try : "try" , // >= 2018 Edition only
106107
107- // NOTE: When adding new keywords, consider adding them to the ui/parser/raw/raw-idents.rs test.
108-
109108 // "Lifetime keywords": regular keywords with a leading `'`.
110109 // Matching predicates: none
111110 UnderscoreLifetime : "'_" ,
You can’t perform that action at this time.
0 commit comments