-
Notifications
You must be signed in to change notification settings - Fork 260
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
#[macro_use(info)] raise error: macro undefined: 'log!' #54
Comments
The |
This is annoying. Is there a way this could be handled better using |
How many people actually selectively import log macros, though? |
Relevant API guidelines issue: rust-lang/api-guidelines#68 |
Rust issue: rust-lang/rust#25003 |
The bulk of the However, I'd be tempted to just duplicate |
This is going to come up with Rust 2018 - because you now import macros, the EDIT: I don't really see any way around the problem, unless the inner macro expansion happens before the macro is expanded in the consumer crate. Otherwise it's hard to support both versions. |
Code:
Error:
I will use
#[macro_use]
for now but I thought it was interesting to limit the macro to import in the namespace$rustc --version rustc 1.1.0-dev
The text was updated successfully, but these errors were encountered: