Skip to content

Commit

Permalink
Auto merge of #130036 - weiznich:diagnostic_unstable_tracking, r=comp…
Browse files Browse the repository at this point in the history
…iler-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`
  • Loading branch information
bors committed Sep 8, 2024
2 parents be628d3 + 641159a commit db600cf
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit db600cf

Please sign in to comment.