-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macros: don't cfg
-process items before applying attribute proc macros
#39336
Comments
cfg
-process items applying attribute proc macroscfg
-process items before applying attribute proc macros
@jseyfried, |
Suppose we have an attribute proc macro #[proc_macro_attribute]
fn attr(input: TokenStream) -> TokenStream { ... } and an invocation of #[attr] fn f() { #[cfg(any())] fn g() {} } Today, we Instead, we want the |
I got it. |
Is this still available to be picked up with a Mentor? |
@jdhorwitz |
@jdhorwitz are you still working on this? If not, I'd like to take it up. Thx. |
@shioju feel free to pick it up :) |
@shioju are you still working on this? |
I have looked into this issue as a way to getting to know the rustc source code. I think I might be able to make a fix now, unless anyone is currently working on it? |
Hey all, sorry for holding this up. Not working on this now. Please go ahead. |
…ried Apply attr proc macros before cfg processing Fixes #39336. r? @jseyfried
Hey all, I searched all over the web but cannot find an easy answer to this. If I want to process all |
cc #38356
The text was updated successfully, but these errors were encountered: