Files
rust/library/std/src
Nicholas Nethercote 121e87bf14 Remove rustc::existing_doc_keyword lint.
`CheckAttrVisitor::check_doc_keyword` checks `#[doc(keyword = "..")]`
attributes to ensure they are on an empty module, and that the value is
a non-empty identifier.

The `rustc::existing_doc_keyword` lint checks these attributes to ensure
that the value is the name of a keyword.

It's silly to have two different checking mechanisms for these
attributes. This commit does the following.
- Changes `check_doc_keyword` to check that the value is the name of a
  keyword (avoiding the need for the identifier check, which removes a
  dependency on `rustc_lexer`).
- Removes the lint.
- Updates tests accordingly.

There is one hack: the `SelfTy` FIXME case used to used to be handled by
disabling the lint, but now is handled with a special case in
`is_doc_keyword`. That hack will go away if/when the FIXME is fixed.

Co-Authored-By: Guillaume Gomez <guillaume1.gomez@gmail.com>
2024-12-17 13:56:10 +11:00
..
2023-12-10 10:56:22 +08:00
2024-12-03 07:52:01 +01:00
2024-07-29 08:26:52 +10:00
2024-11-27 12:10:21 +00:00
2024-11-02 11:27:14 +01:00
2024-01-11 11:30:12 -05:00
2024-11-12 15:08:41 -06:00
2024-07-29 08:26:52 +10:00
2024-12-05 00:26:13 +00:00
2024-08-01 15:38:51 -04:00
2024-04-08 11:57:17 +00:00
2024-12-13 11:53:01 +01:00
2024-10-22 20:18:11 -04:00