Closed kmcallister closed 9 years ago
I ran into this issue a few days ago. This is extremely annoying because it makes it very hard to package macros as modules because your users need to extern crate
not only your library but also all of that libraries dependencies.
I think our diagnostics and story here has improved greatly over time, so I'm going to close this as basically fixed, and new follow-up bugs can certainly be filed if new aspects crop up!
This is a lot of noise which makes it hard to understand the root problem. In a sense, this is a macro hygeine issue; the
format!
macro wants to "close over" a reference to the cratedebug
. Macros injecting crate dependencies would probably be bad, but we could allow them (at least procedural syntax extensions) to specify a list of crate dependencies, so that error messages can be more informative.