You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no scoping mechanism for syntax expander names at all (thus macro names). There should be. There always should have been, and we punted on it over and over while working on other "more important" issues.
See also #3114 and #2247. This is work that remains to be done. It would be fantastic if you were to, say, propose and implement something here. Almost anything would be better than the current situation.
I think (hope) this is an easy fix; I'm creating the issue so I can refer to it in code.
Currently, macros defined by macro_rules! escape from the contexts in which they're defined; I'm assuming that's an accident. So, for instance,
...fails the test, because the bogus definition from the boring() function is still in effect.
The text was updated successfully, but these errors were encountered: