summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-09 13:06:40 +0000
committerbors <bors@rust-lang.org>2024-05-09 13:06:40 +0000
commit8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff (patch)
tree77225dcaa07419a2be70e86351b5ad51af71aa20 /compiler/rustc_hir_analysis/src/lib.rs
parent6f7e00a3e6eade8350ce6280f05596236d73c4cb (diff)
parent14d56e833848b94c8c257c53886d0331a4ac735e (diff)
downloadrust-8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff.tar.gz
rust-8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff.zip
Auto merge of #124706 - Zalathar:revision-checker, r=jieyouxu
Tidy check for test revisions that are mentioned but not declared

If a `[revision]` name appears in a test header directive or error annotation, but isn't declared in the `//@ revisions:` header, that is almost always a mistake.

In cases where a revision needs to be temporarily disabled, adding it to an `//@ unused-revision-names:` header will suppress these checks for that name.

Adding the wildcard name `*` to the unused list will suppress these checks for the entire file.

(None of the tests actually use `*`; it's just there because it was easy to add and could be handy as an escape hatch when dealing with other problems.)

---

Most of the existing problems discovered by this check were fairly straightforward to fix (or ignore); the trickiest cases are in `borrowck` tests.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
0 files changed, 0 insertions, 0 deletions