error: expected expression, found `$`
--> /tmp/icemaker_global_tempdir.XuIwICfk97tD/rustc_testrunner_tmpdir_reporting.EntH3x6ljXRV/mvce.rs:1:70
|
1 | static REGEX: () = format!(|| async move { reuse impl Trait for S2 { $x } });
| ^ expected expression
thread 'rustc' (50860) panicked at /rustc-dev/77cf889bc178ddb44d6a1c78e5a820b5abb31d8d/compiler/rustc_resolve/src/macros.rs:164:32:
no entry found for key
stack backtrace:
0: 0x7fc593bf1ff6 - <<std[9eda52036cb1db6b]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[2ff53be78585266f]::fmt::Display>::fmt
1: 0x7fc59420ec88 - core[2ff53be78585266f]::fmt::write
2: 0x7fc593c0746c - <std[9eda52036cb1db6b]::sys::stdio::unix::Stderr as core[2ff53be78585266f]::io::write::Write>::write_fmt
3: 0x7fc593bc637a - std[9eda52036cb1db6b]::panicking::default_hook::{closure#0}
4: 0x7fc593be4713 - std[9eda52036cb1db6b]::panicking::default_hook
5: 0x7fc592bbc3cb - std[9eda52036cb1db6b]::panicking::update_hook::<alloc[d2bfd98fd5ef7b90]::boxed::Box<rustc_driver_impl[2fa0c13d259555aa]::install_ice_hook::{closure#1}>>::{closure#0}
6: 0x7fc593be4bb2 - std[9eda52036cb1db6b]::panicking::panic_with_hook
7: 0x7fc593bc6432 - std[9eda52036cb1db6b]::panicking::panic_handler::{closure#0}
8: 0x7fc593bbd0f9 - std[9eda52036cb1db6b]::sys::backtrace::__rust_end_short_backtrace::<std[9eda52036cb1db6b]::panicking::panic_handler::{closure#0}, !>
9: 0x7fc593bc7d8d - __rustc[3a1348ea94f84ccb]::rust_begin_unwind
10: 0x7fc59095070c - core[2ff53be78585266f]::panicking::panic_fmt
11: 0x7fc5919cd8a4 - core[2ff53be78585266f]::option::expect_failed
12: 0x7fc59377a9dd - <rustc_resolve[53d9ea867dc44edc]::Resolver as rustc_expand[6b3017429006d1f5]::base::ResolverExpand>::invocation_parent
13: 0x7fc594723ebc - <rustc_resolve[53d9ea867dc44edc]::Resolver as rustc_expand[6b3017429006d1f5]::base::ResolverExpand>::resolve_macro_invocation
14: 0x7fc595899169 - <rustc_expand[6b3017429006d1f5]::expand::MacroExpander>::fully_expand_fragment
15: 0x7fc594de3da7 - rustc_builtin_macros[c16f3e467a91077b]::util::expr_to_spanned_string
16: 0x7fc594de60ed - rustc_builtin_macros[c16f3e467a91077b]::format::make_format_args
17: 0x7fc594ddb4c8 - rustc_builtin_macros[c16f3e467a91077b]::format::expand_format_args_impl
18: 0x7fc595897aaf - <rustc_expand[6b3017429006d1f5]::expand::MacroExpander>::fully_expand_fragment
19: 0x7fc595890e94 - <rustc_expand[6b3017429006d1f5]::expand::MacroExpander>::expand_crate
20: 0x7fc5949d6d11 - rustc_interface[6c4f4a5fe08534b6]::passes::resolver_for_lowering_raw
21: 0x7fc5949d6516 - rustc_query_impl[dfb0cc289539bd44]::query_impl::resolver_for_lowering_raw::invoke_provider_fn::__rust_begin_short_backtrace
22: 0x7fc59530ad01 - rustc_query_impl[dfb0cc289539bd44]::execution::try_execute_query::<rustc_middle[a6f0f0cf12fc39f8]::query::caches::SingleCache<rustc_middle[a6f0f0cf12fc39f8]::query::erase::ErasedData<[u8; 24usize]>>, false>
23: 0x7fc59530aa78 - rustc_query_impl[dfb0cc289539bd44]::query_impl::resolver_for_lowering_raw::execute_query_non_incr::__rust_end_short_backtrace
24: 0x7fc5952e7fc0 - rustc_interface[6c4f4a5fe08534b6]::interface::run_compiler::<(), rustc_driver_impl[2fa0c13d259555aa]::run_compiler::{closure#0}>::{closure#1}
25: 0x7fc59534c47a - std[9eda52036cb1db6b]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[6c4f4a5fe08534b6]::util::run_in_thread_with_globals<rustc_interface[6c4f4a5fe08534b6]::util::run_in_thread_pool_with_globals<rustc_interface[6c4f4a5fe08534b6]::interface::run_compiler<(), rustc_driver_impl[2fa0c13d259555aa]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
26: 0x7fc59534c22d - <std[9eda52036cb1db6b]::thread::lifecycle::spawn_unchecked<rustc_interface[6c4f4a5fe08534b6]::util::run_in_thread_with_globals<rustc_interface[6c4f4a5fe08534b6]::util::run_in_thread_pool_with_globals<rustc_interface[6c4f4a5fe08534b6]::interface::run_compiler<(), rustc_driver_impl[2fa0c13d259555aa]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[2ff53be78585266f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
27: 0x7fc595350650 - <std[9eda52036cb1db6b]::sys::thread::unix::Thread>::new::thread_start
28: 0x7fc58ec97739 - <unknown>
29: 0x7fc58ed1bedc - <unknown>
30: 0x0 - <unknown>
error: the compiler unexpectedly panicked. This is a bug
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: please make sure that you have updated to the latest nightly
note: rustc 1.99.0-nightly (77cf889bc 2026-07-12) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z dump-mir-dir=dir
query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
error: aborting due to 1 previous error
snippet:
Version information
Possibly related line of code:
rust/compiler/rustc_resolve/src/macros.rs
Lines 158 to 170 in 77cf889
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc --edition=2024Program output