Skip to content

Support inside macro_rules! #15372

Closed Answered by flodiebold
maxwell8888 asked this question in Q&A
Discussion options

You must be logged in to vote

The code in a macro_rules declaration doesn't have any meaning by itself, it's just a bunch of tokens. So we can't analyze it in any meaningful way. It might be possible to look at the usages of the macro, if you use it, and apply the analysis from there back to the macro declaration. But this would be quite complicated, would only work once you use the macro somewhere, and would also not necessarily give you the results you might expect. So it's quite unlikely that's going to happen any time soon.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maxwell8888
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants