rust/compiler/rustc_ast/src
许杰友 Jieyou Xu (Joe) 0a2d708c31
Rollup merge of #134253 - nnethercote:overhaul-keywords, r=petrochenkov
Overhaul keyword handling

The compiler's list of keywords has some problems.
- It contains several items that aren't keywords.
- The order isn't quite right in a couple of places.
- Some of the names of predicates relating to keywords are confusing.
- rustdoc and rustfmt have their own (incorrect) versions of the keyword list.
- `AllKeywords` is unnecessarily complex.

r? ```@jieyouxu```
2024-12-18 22:56:53 +08:00
..
attr Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
expand Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
util Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
ast_traits.rs Remove needless returns detected by clippy in the compiler 2024-09-09 13:32:22 +02:00
ast.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
entry.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
format.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Add hir::Attribute 2024-12-15 19:18:46 +01:00
mut_visit.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
node_id.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ptr.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
token.rs Only have one source of truth for keywords. 2024-12-18 20:21:03 +11:00
tokenstream.rs Overhaul TokenTreeCursor. 2024-12-18 12:50:22 +11:00
visit.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00