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
It seems the debug! code isn't properly pushing a span onto the macro expansion span stack. This code:
fn main() {
let a = ~"";
debug!("foo: %s %s", a);
}
Only reports the error inside the macro, but not where that macro is getting used:
<core-macros>:33:24: 33:42 error: not enough arguments to fmt! for the given format string
<core-macros>:33 __log(4u32, fmt!( $($arg),+ ))
^~~~~~~~~~~~~~~~~~