about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-03 20:51:54 +0200
committerGitHub <noreply@github.com>2024-08-03 20:51:54 +0200
commit3a9d4325896d0b5615a26140adc0145dfbe75b46 (patch)
treeb9c4275e83108915e9ed74eb7d20d932d19f09cf /compiler/rustc_pattern_analysis/src/errors.rs
parente488ee7efd6ceb87496bfb3f35ddaaf3394421b6 (diff)
parent33cb33441de5086e5daa2d951619c279fc394681 (diff)
downloadrust-3a9d4325896d0b5615a26140adc0145dfbe75b46.tar.gz
rust-3a9d4325896d0b5615a26140adc0145dfbe75b46.zip
Rollup merge of #128581 - jieyouxu:checked-attr, r=nnethercote
Assert that all attributes are actually checked via `CheckAttrVisitor` and aren't accidentally usable on completely unrelated HIR nodes

``@oli-obk's`` #128444 with unreachable case removed to avoid that PR bitrotting away.
Based on #128402.

This PR will make adding a new attribute ICE on any use of that attribute unless it gets a handler added in `rustc_passes::CheckAttrVisitor`.

r? ``@nnethercote`` (since you were the reviewer of the original PR)
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions