-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand macros in attributes #18849
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@eddyb on IRC:
|
This would be quite convenient. |
@SimonSapin you quoted me out of context, you get to write the RFC for it. |
Is it possible to do this backward-compatibly after 1.0? |
Should be fine, yes. |
Future searchers: I stumbled on this issue as I created a generated module in |
Closing. If someone wants to pursue this, please follow the RFC process here https://github.com/rust-lang/rfcs#before-creating-an-rfc; the change is major enough to warrant this. |
Is anyone working on this, or is there an RFC in the pipeline? If not, I'm willing to start work on one. |
To my knowledge no one is working on this, but asking on internals.rust-lang.org is likely a good start. |
@pierzchalski Have you gotten a chance to start an RFC for this? |
Something like this would be nice for code generation in Cargo. (See rust-lang/cargo#824.)
But it currently doesn’t parse:
Can we make this work? I have a hack in #18810 (comment) to work around it, but it’s ugly.
CC @alexcrichton @eddyb
The text was updated successfully, but these errors were encountered: