rust/tests/rustdoc-gui/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
..
extend_css [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
huge_logo Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lib2 Rollup merge of #127474 - tesuji:foldable-inline-derefs, r=t-rustdoc 2024-09-02 04:19:27 +02:00
link_to_definition [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
proc_macro_test Add GUI tests for comments highlighting in items declaration 2023-12-01 11:23:38 +01:00
scrape_examples [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
settings Move /src/test to /tests 2023-01-11 09:32:08 +00:00
staged_api rustdoc: fix rustdoc-gui tests for logo changes 2023-10-08 20:17:53 -07:00
test_docs Remove rustc::existing_doc_keyword lint. 2024-12-17 13:56:10 +11:00
theme_css rustdoc: make the header show all three buttons 2024-09-10 17:56:06 -07:00