Separate type for cross-crate encoded attributes
Open
@jdonszelmann is already working on this.
Since Jul 31, 2025.
A-attributes
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
As per a suggestion of @lcnr. I've got some ideas on how to do this, but they mostly make sense when all attributes become parsed. At that point I think we can get rid of AttributeKind, and AttributeExt, and instead make one enum (Attribute) where the unparsed tool attributes become just an (uncommon) variant.
Part of the attribute rework: https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163
@rustbot labels +A-attributes
@rustbot claim
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.