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
..
2024-11-26 02:50:48 +08:00
2024-12-12 23:36:27 +00:00
2024-11-27 07:18:25 -08:00
2024-11-26 21:57:32 +00:00
2024-12-12 08:06:59 +01:00
2024-12-06 10:50:20 +00:00
2024-12-01 08:15:25 +01:00
2024-12-14 23:56:30 +01:00
2024-12-14 06:44:05 +00:00
2024-12-12 23:36:27 +00:00
2024-12-07 21:37:13 +00:00
2024-11-27 07:18:25 -08:00
2024-11-26 02:50:48 +08:00
2024-12-05 23:52:21 +00:00
2024-11-26 02:50:48 +08:00
2024-12-04 20:29:36 +00:00
2024-12-07 21:37:13 +00:00
2024-12-14 22:43:39 +00:00
2024-12-02 18:43:37 +01:00
2024-12-07 21:37:13 +00:00
2024-11-30 12:56:54 +08:00
2024-11-27 07:18:25 -08:00
2024-12-14 14:07:56 +01:00
2024-12-15 01:24:40 +00:00
2024-11-27 22:21:33 +01:00
2024-12-10 11:20:19 +08:00
2024-12-12 23:36:27 +00:00
2024-12-12 23:36:27 +00:00
2024-12-07 21:26:20 +00:00
2024-12-04 20:29:35 +00:00
2024-12-12 23:36:27 +00:00
2024-12-14 22:43:39 +00:00
2024-12-14 03:54:31 +01:00
2024-12-12 23:36:27 +00:00
2024-11-27 07:18:25 -08:00
2024-12-02 18:43:37 +01:00
2024-12-09 21:06:29 +08:00
2024-11-19 05:19:09 -08:00
2024-11-27 07:18:25 -08:00
2024-12-04 20:34:48 +08:00
2024-12-09 21:55:01 +00:00
2024-11-27 07:18:25 -08:00
2024-12-10 11:29:43 +08:00
2024-12-12 23:36:27 +00:00
2024-12-12 23:36:27 +00:00
2024-12-07 21:29:58 +00:00
2024-12-11 19:53:40 +00:00
2024-12-05 14:14:17 -08:00
2024-11-26 02:50:48 +08:00
2024-12-13 00:04:56 +00:00
2024-11-23 08:57:25 -07:00
2024-11-26 02:50:48 +08:00
2024-12-09 15:17:26 +01:00
2024-12-07 21:26:20 +00:00
2024-11-18 18:04:59 +11:00
2024-12-12 23:36:27 +00:00
2024-12-05 23:47:10 +01:00
2024-12-12 23:36:27 +00:00
2024-12-12 23:36:27 +00:00
2024-12-14 10:22:43 +00:00
2024-11-27 07:18:25 -08:00
2024-11-26 15:32:18 +01:00
2024-12-12 23:36:27 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-12-02 18:43:37 +01:00
2024-11-26 02:50:48 +08:00
2024-12-12 23:36:27 +00:00
2024-12-13 13:07:07 +01:00
2024-11-23 08:57:25 -07:00
2024-12-10 11:31:13 +08:00
2024-11-27 07:18:25 -08:00
2024-12-14 18:08:30 +00:00
2024-11-26 02:50:48 +08:00
2024-12-05 13:06:34 +09:00
2024-11-26 21:57:32 +00:00
2024-11-27 07:18:25 -08:00
2024-12-04 20:49:05 +00:00
2024-12-17 13:56:10 +11:00
2024-11-24 14:54:36 +05:30
2024-12-02 01:14:40 +07:00
2024-12-14 23:56:30 +01:00
2024-11-26 02:50:48 +08:00
2024-12-07 21:29:58 +00:00
2024-12-08 15:32:04 +08:00
2024-12-13 00:04:56 +00:00
2024-12-07 21:29:58 +00:00
2024-12-13 14:18:41 -08:00
2024-12-14 03:54:31 +01:00
2024-12-01 19:52:27 +01:00
2024-12-07 13:18:05 +11:00
2024-12-07 13:18:05 +11:00
2024-12-14 03:54:31 +01:00
2024-11-26 02:50:48 +08:00
2024-12-12 23:36:27 +00:00
2024-12-12 23:36:27 +00:00
2024-12-13 18:48:33 +00:00
2024-12-12 23:36:27 +00:00
2024-12-11 11:59:12 +00:00
2024-12-13 00:04:56 +00:00
2024-11-22 17:02:04 +11:00
2024-12-07 18:18:08 +00:00
2024-12-07 21:29:58 +00:00
2024-11-26 02:50:48 +08:00
2024-12-07 21:37:13 +00:00
2024-12-14 03:54:31 +01:00
2024-12-12 23:36:27 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-12-12 23:36:27 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-30 11:22:52 +01:00
2024-12-14 13:06:18 +00:00
2024-12-08 17:18:50 +01:00
2024-11-22 20:46:05 +01:00
2024-12-12 23:36:27 +00:00
2024-11-28 14:32:45 -08:00
2024-12-02 18:16:36 +00:00
2024-12-09 21:55:12 +00:00
2024-12-14 06:44:05 +00:00
2024-12-10 11:34:13 +08:00
2024-12-08 20:21:46 +00:00
2024-12-07 21:29:58 +00:00
2024-12-10 18:18:03 +00:00
2024-12-12 23:36:27 +00:00
2024-12-13 00:04:56 +00:00
2024-12-06 12:51:59 -05:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-12-12 23:36:27 +00:00
2024-12-17 13:56:10 +11:00
2024-12-13 00:04:56 +00:00
2024-12-14 20:27:15 +00:00
2024-12-03 07:48:33 +01:00
2024-11-23 08:57:25 -07:00
2024-12-13 15:40:37 +00:00
2024-12-15 04:45:24 +00:00
2024-12-12 23:36:27 +00:00
2024-12-14 22:43:39 +00:00
2024-12-12 23:36:27 +00:00
2024-11-26 02:50:48 +08:00
2024-12-09 21:55:01 +00:00
2024-12-08 15:32:04 +08:00
2024-12-10 19:21:07 +00:00
2024-11-30 16:00:55 +01:00
2024-12-14 23:56:28 +01:00
2024-12-10 09:16:34 +00:00
2024-12-14 08:24:18 +01:00
2024-12-09 21:55:01 +00:00
2024-11-26 02:50:48 +08:00
2024-12-07 22:18:51 +00:00
2024-12-14 06:44:05 +00:00
2024-12-12 23:36:27 +00:00
2024-12-07 21:29:58 +00:00
2024-12-10 08:55:59 +01:00
2024-12-07 21:37:15 +00:00
2024-12-14 03:54:31 +01:00
2024-12-14 14:07:59 +01:00
2024-12-13 15:40:37 +00:00
2024-11-26 02:50:48 +08:00
2024-11-27 07:18:25 -08:00
2024-11-23 08:57:25 -07:00
2024-12-07 21:37:13 +00:00
2024-12-07 21:37:13 +00:00
2024-12-13 00:04:56 +00:00
2024-11-26 02:50:48 +08:00
2024-12-12 16:29:40 +00:00
2024-12-07 20:50:00 +00:00
2024-12-06 16:42:09 -05:00
2024-11-26 02:50:48 +08:00
2024-12-07 21:29:58 +00:00
2024-12-07 21:29:58 +00:00
2024-12-12 23:36:27 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-18 08:07:46 +01:00
2024-11-26 02:50:48 +08:00
2024-11-28 14:32:45 -08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-12-07 21:29:58 +00:00
2024-11-26 02:50:48 +08:00
2024-12-02 03:43:50 -07:00
2024-11-23 09:15:25 +01:00
2024-11-23 09:15:25 +01:00
2024-11-23 09:15:25 +01:00
2024-11-23 09:15:25 +01:00
2024-11-24 09:54:04 +01:00
2024-11-24 09:54:04 +01:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-23 09:15:25 +01:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00