-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Unresolved macro panic!
with inner module
#16511
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
Labels
C-bug
Category: bug
Comments
The macro expands to an inner module: fn foo() {
mod init {
pub fn init() {
panic!("test-log");
}
}
init::init();
} which seems to break all sorts of things, not just |
r-a expands that to // Recursive expansion of test macro
// ==================================
#[::core::prelude::v1::test]
fn foo() {
mod init {
pub fn init() {
{
let mut env_logger_builder = ::test_log::env_logger::builder();
let _ = env_logger_builder.is_test(true).try_init();
}
}
}
init::init();
{}
} for me 🤔 no panic in sight (and no diagnostics either) |
Sorry, you need |
panic!
with #[test_log::test]
panic!
with inner module
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: