-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Panic: non-eager expansion without a parent scope #70624
Comments
Likely a duplicate of #55414. |
This was discussed briefly on Zulip. Removing @rustbot ping cleanup Would be nice if we figure out if this is a dupe or not. |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @jakevossen5 @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @senden9 @shekohex @sinato @spastorino @turboladen @woshilapin @yerke |
I'm not sure how exactly to prove that this is the same bug but, at the very least, I've compiled both on Stack backtracestack backtrace: 0: ::fmt 1: core::fmt::write 2: std::io::Write::write_fmt 3: std::panicking::default_hook::{{closure}} 4: std::panicking::default_hook 5: rustc_driver::report_ice 6: std::panicking::rust_panic_with_hook 7: rust_begin_unwind 8: core::panicking::panic_fmt 9: core::option::expect_failed 10: rustc_resolve::macros::::resolve_macro_invocation 11: rustc_expand::expand::MacroExpander::fully_expand_fragment 12: rustc_expand::expand::MacroExpander::expand_crate 13: rustc_session::utils::::time 14: rustc_interface::passes::configure_and_expand_inner 15: rustc_interface::passes::configure_and_expand::{{closure}} 16: rustc_data_structures::box_region::PinnedGenerator::new 17: rustc_interface::passes::configure_and_expand 18: rustc_interface::queries::Queries::expansion 19: rustc_interface::interface::run_compiler_in_existing_thread_pool 20: scoped_tls::ScopedKey::set 21: syntax::with_globalsHowever, the following thing is a difference between both bugs. No compiler messageIn the case of #55414, the compiler doesn't show any message (except than
|
I got the same error message with macro_rules! breakme {
( $name:ident ) => { breakme!($name, stringify!($name), $); };
( $name:ident, $name_str:expr, $d:tt ) => {
#[doc = $name_str]
#[macro_export]
macro_rules! $name {
( $format:expr, $d( $arg:tt ),+ ) => {
format!($format, $d( $arg ),+);
}
}
}
}
breakme!(hello); Error log
|
Closing as a duplicate of #55414. |
@petrochenkov But that have a different error. |
Which one? |
I tried this code:
I didn't actually expect it to work ( yet ), but it shouldn't have panicked.
Meta
playground link.
Backtrace
The text was updated successfully, but these errors were encountered: