Closed as duplicate of#143351
Description
Code
<code>
Meta
rustc --version --verbose
:
rustc 1.90.0-nightly (da58c0513 2025-07-03)
binary: rustc
commit-hash: da58c051315268a197ce280f6ba07bbd03c66535
commit-date: 2025-07-03
host: x86_64-unknown-linux-gnu
release: 1.90.0-nightly
LLVM version: 20.1.7
Error output
thread 'rustc' panicked at compiler/rustc_parse/src/parser/mod.rs:1400:13:
assertion failed: !self.token.kind.is_close_delim_or_eof()
stack backtrace:
0: 0x7f61e891ab95 - std::backtrace::Backtrace::create::ha23dbb93c61c8dfd
1: 0x7f61e891aae5 - std::backtrace::Backtrace::force_capture::hcf7d29f280c9a155
2: 0x7f61e79ff57c - std[4c753eefc38e611f]::panicking::update_hook::<alloc[52d37518c7e65bd5]::boxed::Box<rustc_driver_impl[4ceb8fef541c3c89]::install_ice_hook::{closure#1}>>::{closure#0}
3: 0x7f61e8934cdb - std::panicking::rust_panic_with_hook::hb7e8da047aff3a07
4: 0x7f61e89349a6 - std::panicking::begin_panic_handler::{{closure}}::h8172934590c86311
5: 0x7f61e8930ff9 - std::sys::backtrace::__rust_end_short_backtrace::h7f7916d1eada9ebc
6: 0x7f61e89346bd - __rustc[689ec07a40e2eaf3]::rust_begin_unwind
7: 0x7f61e50a61f0 - core::panicking::panic_fmt::hbea0fe892fb47fcf
8: 0x7f61e53fa95c - core::panicking::panic::hf5b0fbf294ddf5ff
9: 0x7f61e93cf316 - <rustc_parse[19434d7fed914604]::parser::Parser>::parse_token_tree
10: 0x7f61e9ddf0c4 - rustc_expand[741b2a39e970fde]::mbe::macro_rules::compile_declarative_macro
11: 0x7f61e9dde61d - <rustc_resolve[79c9b39e8e4c3b18]::Resolver>::compile_macro
12: 0x7f61e9872ae9 - <rustc_resolve[79c9b39e8e4c3b18]::def_collector::DefCollector as rustc_ast[4ee61d1cc044460]::visit::Visitor>::visit_item
13: 0x7f61e9871b7f - <rustc_resolve[79c9b39e8e4c3b18]::def_collector::DefCollector as rustc_ast[4ee61d1cc044460]::visit::Visitor>::visit_crate
14: 0x7f61e987180c - <rustc_resolve[79c9b39e8e4c3b18]::Resolver as rustc_expand[741b2a39e970fde]::base::ResolverExpand>::visit_ast_fragment_with_placeholders
15: 0x7f61e90e0b77 - <rustc_expand[741b2a39e970fde]::expand::MacroExpander>::collect_invocations
16: 0x7f61ea630c46 - <rustc_expand[741b2a39e970fde]::expand::MacroExpander>::fully_expand_fragment
17: 0x7f61ea6306f9 - <rustc_expand[741b2a39e970fde]::expand::MacroExpander>::expand_crate
18: 0x7f61e9b4aaff - rustc_interface[b4fd03ac85b435ff]::passes::configure_and_expand
19: 0x7f61ea1ccc83 - rustc_interface[b4fd03ac85b435ff]::passes::resolver_for_lowering_raw
20: 0x7f61ea1cca0d - rustc_query_impl[f1e02cc070b3fce1]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f1e02cc070b3fce1]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[70415016df95c802]::query::erase::Erased<[u8; 16usize]>>
21: 0x7f61ea1cc9e7 - <rustc_query_impl[f1e02cc070b3fce1]::query_impl::resolver_for_lowering_raw::dynamic_query::{closure#2} as core[95da0b4bbfd84352]::ops::function::FnOnce<(rustc_middle[70415016df95c802]::ty::context::TyCtxt, ())>>::call_once
22: 0x7f61ea54e1ea - rustc_query_system[b1c6291b83d15898]::query::plumbing::try_execute_query::<rustc_query_impl[f1e02cc070b3fce1]::DynamicConfig<rustc_query_system[b1c6291b83d15898]::query::caches::SingleCache<rustc_middle[70415016df95c802]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[f1e02cc070b3fce1]::plumbing::QueryCtxt, true>
23: 0x7f61ea54dc01 - rustc_query_impl[f1e02cc070b3fce1]::query_impl::resolver_for_lowering_raw::get_query_incr::__rust_end_short_backtrace
24: 0x7f61ea2a9f00 - rustc_interface[b4fd03ac85b435ff]::passes::create_and_enter_global_ctxt::<core[95da0b4bbfd84352]::option::Option<rustc_interface[b4fd03ac85b435ff]::queries::Linker>, rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
25: 0x7f61ea270cc3 - rustc_interface[b4fd03ac85b435ff]::interface::run_compiler::<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}
26: 0x7f61e7a10db4 - <rustc_thread_pool[c04ab4be491473f1]::job::StackJob<rustc_thread_pool[c04ab4be491473f1]::latch::LatchRef<rustc_thread_pool[c04ab4be491473f1]::latch::LockLatch>, <rustc_thread_pool[c04ab4be491473f1]::registry::Registry>::in_worker_cold<<rustc_thread_pool[c04ab4be491473f1]::thread_pool::ThreadPool>::install<rustc_interface[b4fd03ac85b435ff]::util::run_in_thread_pool_with_globals<rustc_interface[b4fd03ac85b435ff]::interface::run_compiler<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}::{closure#0}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> as rustc_thread_pool[c04ab4be491473f1]::job::Job>::execute
27: 0x7f61e8657b7e - <rustc_thread_pool[c04ab4be491473f1]::registry::WorkerThread>::wait_until_cold
28: 0x7f61e8655561 - <rustc_thread_pool[c04ab4be491473f1]::registry::ThreadBuilder>::run
29: 0x7f61e79f6add - std[4c753eefc38e611f]::sys::backtrace::__rust_begin_short_backtrace::<<rustc_thread_pool[c04ab4be491473f1]::ThreadPoolBuilder>::build_scoped<rustc_interface[b4fd03ac85b435ff]::util::run_in_thread_pool_with_globals<rustc_interface[b4fd03ac85b435ff]::interface::run_compiler<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[b4fd03ac85b435ff]::util::run_in_thread_pool_with_globals<rustc_interface[b4fd03ac85b435ff]::interface::run_compiler<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
30: 0x7f61e7a03772 - <<std[4c753eefc38e611f]::thread::Builder>::spawn_unchecked_<<rustc_thread_pool[c04ab4be491473f1]::ThreadPoolBuilder>::build_scoped<rustc_interface[b4fd03ac85b435ff]::util::run_in_thread_pool_with_globals<rustc_interface[b4fd03ac85b435ff]::interface::run_compiler<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#0}, rustc_interface[b4fd03ac85b435ff]::util::run_in_thread_pool_with_globals<rustc_interface[b4fd03ac85b435ff]::interface::run_compiler<(), rustc_driver_impl[4ceb8fef541c3c89]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#5}::{closure#0}::{closure#1}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#1} as core[95da0b4bbfd84352]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
31: 0x7f61ea2153bd - std::sys::pal::unix::thread::Thread::new::thread_start::hc3b694f3a738a566
32: 0x7f61eba12112 - start_thread
at ./nptl/pthread_create.c:447:8
33: 0x7f61eba908f8 - __GI___clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
34: 0x0 - <unknown>
rustc version: 1.90.0-nightly (da58c0513 2025-07-03)
platform: x86_64-unknown-linux-gnu
query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
Backtrace
<backtrace>
I have no idea when the ICE happened bc I was running bacon test
in the background. There are two ice files but they seem to be about the same error.