about summary refs log tree commit diff
path: root/tests/rustdoc/keyword.rs
AgeCommit message (Collapse)AuthorLines
2024-12-17Remove `rustc::existing_doc_keyword` lint.Nicholas Nethercote-2/+2
`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-09-10rustdoc: make the header show all three buttonsMichael Howell-1/+0
This tweaks it to use less space for the breadcrumbs.
2024-06-24Update `tests/rustdoc` to new test syntaxGuillaume Gomez-12/+12
2023-01-13rustdoc: remove unnecessary DOM class `h1.fqn`Michael Howell-1/+1
It's misleading. The main heading sometimes isn't an fully qualified name at all. It's also redundant. It's always a child of `div.main-heading`, so just use that.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+23