@@ -20,7 +20,7 @@ mod tests;
20
20
21
21
// The proc macro code for this is in `compiler/rustc_macros/src/symbols.rs`.
22
22
symbols ! {
23
- // If you modify this list, adjust `is_special `, `is_used_keyword`/`is_unused_keyword`
23
+ // If you modify this list, adjust `is_reserved_ident `, `is_used_keyword`/`is_unused_keyword`
24
24
// and `AllKeywords`.
25
25
// But this should rarely be necessary if the keywords are kept in alphabetic order.
26
26
Keywords {
@@ -2584,7 +2584,7 @@ pub mod sym {
2584
2584
}
2585
2585
2586
2586
impl Symbol {
2587
- fn is_special ( self ) -> bool {
2587
+ fn is_reserved_ident ( self ) -> bool {
2588
2588
self == sym:: dollar_crate || self == sym:: underscore
2589
2589
}
2590
2590
@@ -2606,7 +2606,7 @@ impl Symbol {
2606
2606
}
2607
2607
2608
2608
pub fn is_reserved ( self , edition : impl Copy + FnOnce ( ) -> Edition ) -> bool {
2609
- self . is_special ( )
2609
+ self . is_reserved_ident ( )
2610
2610
|| self . is_used_keyword_always ( )
2611
2611
|| self . is_unused_keyword_always ( )
2612
2612
|| self . is_used_keyword_conditional ( edition)
@@ -2641,8 +2641,8 @@ impl Symbol {
2641
2641
2642
2642
impl Ident {
2643
2643
/// Returns `true` for reserved identifiers.
2644
- pub fn is_special ( self ) -> bool {
2645
- self . name . is_special ( )
2644
+ pub fn is_reserved_ident ( self ) -> bool {
2645
+ self . name . is_reserved_ident ( )
2646
2646
}
2647
2647
2648
2648
/// Returns `true` if the token is a keyword used in the language.
0 commit comments