about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-08 23:39:00 +0000
committerbors <bors@rust-lang.org>2024-09-08 23:39:00 +0000
commit085744b7ad8b227239bcee0a44cd78dcd0310ab9 (patch)
treed8aaf9848ccd82688d09a137d9df19fe8c034bb1 /compiler/rustc_mir_transform/src/errors.rs
parentadf8d168af9334a8bf940824fcf4207d01e05ae5 (diff)
parent7c9e818f028a899cf4597f80c67bfe64b7e1a4ed (diff)
downloadrust-085744b7ad8b227239bcee0a44cd78dcd0310ab9.tar.gz
rust-085744b7ad8b227239bcee0a44cd78dcd0310ab9.zip
Auto merge of #130036 - weiznich:diagnostic_unstable_tracking, r=compiler-errors
Correctly handle stability of `#[diagnostic]` attributes

This commit changes the way we treat the stability of attributes in the
`#[diagnostic]` namespace. Instead of relaying on ad-hoc checks to
ensure at call side that a certain attribute is really usable at that
location it centralises the logic to one place. For diagnostic
attributes comming from other crates it just skips serializing
attributes that are not stable and that do not have the corresponding
feature enabled. For attributes from the current crate we can just use
the feature information provided by `TyCtx`.

r​? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
0 files changed, 0 insertions, 0 deletions