diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-26 13:33:38 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-01 07:34:23 +1100 |
| commit | 929749d8018b3a5afde968cff6da11b8460dd52d (patch) | |
| tree | fd9e6e3824c98fbec7a0b721472bd4f025860eee /compiler/rustc_codegen_gcc | |
| parent | 9fb0defa520c82ccf79af7961ee926dba77b4e96 (diff) | |
| download | rust-929749d8018b3a5afde968cff6da11b8460dd52d.tar.gz rust-929749d8018b3a5afde968cff6da11b8460dd52d.zip | |
Improve `is_doc_keyword`.
This is part of the implementation of `#[doc(keyword = "match")]` attributes used by `std` to provide documentation for keywords. `is_doc_keyword` currently does a crude keyword range test that's intended to catch all keywords but misses `kw::Yeet`. This commit changes it to use `Symbol` methods, including the new `is_weak` method (required for `union`). `Symbol` methods are much less prone to falling out of date if new keywords are added.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
