-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Use our new syntax extension loading machinery to remove the hardcoded macros in libsyntax #11763
Comments
Pulling the procedural macros out ( |
They all have to go into a single module at the moment unfortunately. Ideally, the logging macros would live in std::logging, condition! would live in std::condition, format! in std::fmt, etc. However, this introduces cyclic dependencies between those modules and the macros they use which the current expansion system can't deal with. We may be able to get around this by changing the expansion phase to a two-pass system but that's for a later PR. Closes rust-lang#2247 cc rust-lang#11763
They all have to go into a single module at the moment unfortunately. Ideally, the logging macros would live in std::logging, condition! would live in std::condition, format! in std::fmt, etc. However, this introduces cyclic dependencies between those modules and the macros they use which the current expansion system can't deal with. We may be able to get around this by changing the expansion phase to a two-pass system but that's for a later PR. Closes #2247 cc #11763
They all have to go into a single module at the moment unfortunately. Ideally, the logging macros would live in std::logging, condition! would live in std::condition, format! in std::fmt, etc. However, this introduces cyclic dependencies between those modules and the macros they use which the current expansion system can't deal with. We may be able to get around this by changing the expansion phase to a two-pass system but that's for a later PR. Closes rust-lang#2247 cc rust-lang#11763
While this situation isn't perfect, @sfackler has moved the macros out of libsyntax and into libstd. |
Triage: I am not aware of any more changes on this front. |
I'm content to close this now, what's left is just cleanup work. |
We've got a lot of syntax extensions hardcoded into src/libsyntax/ext. That shouldn't be necessary anymore. Fix this terrible hack!
The text was updated successfully, but these errors were encountered: