-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Resolve the nested inner macros correctly #12404
Comments
cc me |
Could you give a code example of this to aid future triagers? |
Certainly.
should compile but it doesn't right now. Note
does work but only because |
I'm not sure that The only reason that |
@alexcrichton it currently fails with a "undefined macro: |
This would be an appropriate place for partial expansion, if we had it. Specifically: expand the argument until it's clear that it is or isn't a string. |
Looks like this may be fixed:
|
Hi @steveklabnik, It works. Why this issue still opened? |
Yeah, I think that we've solved this. |
Added msrv to threadlocal initializer check closes: rust-lang#12404 changelog:[`thread_local_initializer_can_be_made_const`]: Check for MSRV (>= 1.59) before processing.
Currently, the inner macro in a nested macro invocation is not properly resolved which prevents nested macro invocation from working. If we are to support such invocation, this issue ought to be fixed.
cc #11692. #9323 is also relevant with regard to the macro scope rules in general.
Example from #13876:
The expression
println!(format!("test"))
produces the following error:The text was updated successfully, but these errors were encountered: