rust-lang / rust-lang/rust

Separate type for cross-crate encoded attributes

Open
#144,728 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.