Skip to content

Implement declarative (macro_rules!) attribute macros (RFC 3697)#144579

Merged
bors merged 12 commits intorust-lang:masterfrom
joshtriplett:mbe-attr
Aug 9, 2025
Merged

Implement declarative (macro_rules!) attribute macros (RFC 3697)#144579
bors merged 12 commits intorust-lang:masterfrom
joshtriplett:mbe-attr

Conversation

@joshtriplett
Copy link
Member

@joshtriplett joshtriplett commented Jul 28, 2025

This implements RFC 3697, "Declarative (macro_rules!) attribute macros".

I would suggest reading this commit-by-commit. This first introduces the
feature gate, then adds parsing for attribute rules (doing nothing with them),
then adds the ability to look up and apply macro_rules! attributes by path,
then adds support for local attributes, then adds a test, and finally makes
various improvements to errors.


Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants