Cannot macro_use a macro that uses an internal macro #25003
Open
Description
opened on Apr 30, 2015
For instance, trying to use the log crate:
#[macro_use(debug)] extern crate log;
fn main() {
debug!("hello");
}
Errors with:
<log macros>:4:1: 4:4 error: macro undefined: 'log!'
<log macros>:4 log ! ( $ crate:: LogLevel:: Debug , $ ( $ arg ) * ) ; )
If you import the log macro also, all is well. In this case, that's possible. However, a crate that has an internal macro for sanity, and not to be exported, is stuck.
Activity