-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way
Description
Code
Discovered by @wmstack when compiling PR #144935 in CI at commit ff668ec. CI logs link.
The func(&tmp)
should have been func(tmp.as_ref())
. So, the code shouldn't compile, but shouldn't ICE either.
Error output
2025-08-06T04:12:01.5211900Z thread 'rustc' panicked at compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:2591:13:
2025-08-06T04:12:01.5212315Z assertion `left == right` failed
2025-08-06T04:12:01.5212518Z left: 2
2025-08-06T04:12:01.5212946Z right: 1
Backtrace
2025-08-06T04:12:01.5213134Z stack backtrace:
2025-08-06T04:12:01.5352128Z 0: 0xffac0acecfbc - std::backtrace_rs::backtrace::libunwind::trace::hbeb8ff6f1dc1cc87
2025-08-06T04:12:01.5352880Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
2025-08-06T04:12:01.5353567Z 1: 0xffac0acecfbc - std::backtrace_rs::backtrace::trace_unsynchronized::hcbd64546bb0bc534
2025-08-06T04:12:01.5354166Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
2025-08-06T04:12:01.5354713Z 2: 0xffac0acecfbc - std::sys::backtrace::_print_fmt::h603a72fdd1aa34ed
2025-08-06T04:12:01.5355187Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/backtrace.rs:66:9
2025-08-06T04:12:01.5355825Z 3: 0xffac0acecfbc - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h3ce2a2908d55aef0
2025-08-06T04:12:01.5356459Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/backtrace.rs:39:26
2025-08-06T04:12:01.5362411Z 4: 0xffac0ad3708c - core::fmt::rt::Argument::fmt::h339b92050a687755
2025-08-06T04:12:01.5364808Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/fmt/rt.rs:173:76
2025-08-06T04:12:01.5365396Z 5: 0xffac0ad3708c - core::fmt::write::h573f24ca33aa5022
2025-08-06T04:12:01.5365827Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/fmt/mod.rs:1465:25
2025-08-06T04:12:01.5366274Z 6: 0xffac0ace153c - std::io::default_write_fmt::hcc8919f01e1578fe
2025-08-06T04:12:01.5366728Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/io/mod.rs:639:11
2025-08-06T04:12:01.5367161Z 7: 0xffac0ace153c - std::io::Write::write_fmt::h13fa4cc44f72e24a
2025-08-06T04:12:01.5367595Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/io/mod.rs:1954:13
2025-08-06T04:12:01.5368075Z 8: 0xffac0acece70 - std::sys::backtrace::BacktraceLock::print::h1465080d3a17b5f1
2025-08-06T04:12:01.5368578Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/backtrace.rs:42:9
2025-08-06T04:12:01.5371731Z 9: 0xffac0acf08a0 - std::panicking::default_hook::{{closure}}::haac60c33ad8953eb
2025-08-06T04:12:01.5372266Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:300:27
2025-08-06T04:12:01.5374547Z 10: 0xffac0acf06fc - std::panicking::default_hook::hfbe61bc0eb59097c
2025-08-06T04:12:01.5375057Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:327:9
2025-08-06T04:12:01.5376440Z 11: 0xffac071c8258 - <alloc[cf75e2ab30ac120f]::boxed::Box<rustc_driver_impl[f8dcd73e3f98802]::install_ice_hook::{closure#1}> as core[86de0986de23a55d]::ops::function::Fn<(&dyn for<'a, 'b> core[86de0986de23a55d]::ops::function::Fn<(&'a std[57c45f57ec3c24e5]::panic::PanicHookInfo<'b>,), Output = ()> + core[86de0986de23a55d]::marker::Sync + core[86de0986de23a55d]::marker::Send, &std[57c45f57ec3c24e5]::panic::PanicHookInfo)>>::call
2025-08-06T04:12:01.5382823Z 12: 0xffac0acf1314 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1caa90323394741e
2025-08-06T04:12:01.5383373Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1980:9
2025-08-06T04:12:01.5383856Z 13: 0xffac0acf1314 - std::panicking::rust_panic_with_hook::h448ca412e27acd2b
2025-08-06T04:12:01.5384331Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:841:13
2025-08-06T04:12:01.5384841Z 14: 0xffac0acf1014 - std::panicking::begin_panic_handler::{{closure}}::he6c71f258db522c4
2025-08-06T04:12:01.5385347Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:706:13
2025-08-06T04:12:01.5385842Z 15: 0xffac0aced4b8 - std::sys::backtrace::__rust_end_short_backtrace::hf8d7a4365255b145
2025-08-06T04:12:01.5386407Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/backtrace.rs:168:18
2025-08-06T04:12:01.5386869Z 16: 0xffac0acf0cf8 - __rustc[b7e3ce0d707010f2]::rust_begin_unwind
2025-08-06T04:12:01.5387311Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:697:5
2025-08-06T04:12:01.5387765Z 17: 0xffac070fcf28 - core::panicking::panic_fmt::h3247d961c5317d14
2025-08-06T04:12:01.5388212Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/panicking.rs:75:14
2025-08-06T04:12:01.5388691Z 18: 0xffac070fd2d8 - core::panicking::assert_failed_inner::h7fd8184ef71a017b
2025-08-06T04:12:01.5389100Z 19: 0xffac070fd1d4 - core::panicking::assert_failed::h64ff2d6ff79bc2ce
2025-08-06T04:12:01.5389560Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/panicking.rs:387:5
2025-08-06T04:12:01.5390112Z 20: 0xffac07862244 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::label_generic_mismatches
2025-08-06T04:12:01.5390854Z 21: 0xffac078578ac - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::report_arg_errors
2025-08-06T04:12:01.5391439Z 22: 0xffac07856880 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_argument_types
2025-08-06T04:12:01.5391984Z 23: 0xffac0782c4f4 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::confirm_overloaded_call
2025-08-06T04:12:01.5392506Z 24: 0xffac078b5080 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_kind
2025-08-06T04:12:01.5393190Z 25: 0xffac0783a1f0 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
2025-08-06T04:12:01.5393780Z 26: 0xffac078ae29c - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_with_expectation
2025-08-06T04:12:01.5394311Z 27: 0xffac0785ea54 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_block
2025-08-06T04:12:01.5394822Z 28: 0xffac078af930 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_kind
2025-08-06T04:12:01.5395370Z 29: 0xffac0783a1f0 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
2025-08-06T04:12:01.5395953Z 30: 0xffac078ae29c - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_expr_with_expectation
2025-08-06T04:12:01.5396513Z 31: 0xffac0783b6b4 - <rustc_hir_typeck[49158a53ae87b46c]::fn_ctxt::FnCtxt>::check_return_or_body_tail
2025-08-06T04:12:01.5396989Z 32: 0xffac07adfca8 - rustc_hir_typeck[49158a53ae87b46c]::check::check_fn
2025-08-06T04:12:01.5397390Z 33: 0xffac07aeb17c - rustc_hir_typeck[49158a53ae87b46c]::typeck_with_inspect
2025-08-06T04:12:01.5398319Z 34: 0xffac0956f468 - rustc_query_impl[6c9b933e04a41676]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6c9b933e04a41676]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 8usize]>>
2025-08-06T04:12:01.5399948Z 35: 0xffac094b5d60 - <rustc_query_impl[6c9b933e04a41676]::query_impl::typeck::dynamic_query::{closure#2} as core[86de0986de23a55d]::ops::function::FnOnce<(rustc_middle[9bffbefec4c2d3c6]::ty::context::TyCtxt, rustc_span[41a6e2c377868cd4]::def_id::LocalDefId)>>::call_once
2025-08-06T04:12:01.5402885Z 36: 0xffac094fb484 - <std[57c45f57ec3c24e5]::thread::local::LocalKey<core[86de0986de23a55d]::cell::Cell<*const ()>>>::with::<rustc_middle[9bffbefec4c2d3c6]::ty::context::tls::enter_context<rustc_query_system[ff5dd8c2f29163d8]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[6c9b933e04a41676]::DynamicConfig<rustc_query_system[ff5dd8c2f29163d8]::query::caches::DefaultCache<rustc_span[41a6e2c377868cd4]::def_id::LocalModDefId, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[6c9b933e04a41676]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 8usize]>>
2025-08-06T04:12:01.5406297Z 37: 0xffac094201e4 - rustc_query_system[ff5dd8c2f29163d8]::query::plumbing::try_execute_query::<rustc_query_impl[6c9b933e04a41676]::DynamicConfig<rustc_data_structures[2c9f1c1f23740c75]::vec_cache::VecCache<rustc_span[41a6e2c377868cd4]::def_id::LocalDefId, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[ff5dd8c2f29163d8]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[6c9b933e04a41676]::plumbing::QueryCtxt, false>
2025-08-06T04:12:01.5407963Z 38: 0xffac096874fc - rustc_query_impl[6c9b933e04a41676]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
2025-08-06T04:12:01.5408775Z 39: 0xffac07e88cb4 - <rustc_middle[9bffbefec4c2d3c6]::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis[3a61bc066ce42c2d]::check_crate::{closure#2}>::{closure#0}
2025-08-06T04:12:01.5410339Z 40: 0xffac07e7ca54 - rustc_data_structures[2c9f1c1f23740c75]::sync::parallel::par_for_each_in::<&rustc_span[41a6e2c377868cd4]::def_id::LocalDefId, &[rustc_span[41a6e2c377868cd4]::def_id::LocalDefId], <rustc_middle[9bffbefec4c2d3c6]::ty::context::TyCtxt>::par_hir_body_owners<rustc_hir_analysis[3a61bc066ce42c2d]::check_crate::{closure#2}>::{closure#0}>
2025-08-06T04:12:01.5411679Z 41: 0xffac07d55944 - rustc_hir_analysis[3a61bc066ce42c2d]::check_crate
2025-08-06T04:12:01.5412082Z 42: 0xffac073d86c0 - rustc_interface[75c05ebdc46d0f4d]::passes::analysis
2025-08-06T04:12:01.5413101Z 43: 0xffac0956fb2c - rustc_query_impl[6c9b933e04a41676]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6c9b933e04a41676]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 0usize]>>
2025-08-06T04:12:01.5414462Z 44: 0xffac094b6ea4 - <rustc_query_impl[6c9b933e04a41676]::query_impl::analysis::dynamic_query::{closure#2} as core[86de0986de23a55d]::ops::function::FnOnce<(rustc_middle[9bffbefec4c2d3c6]::ty::context::TyCtxt, ())>>::call_once
2025-08-06T04:12:01.5417025Z 45: 0xffac094fa1b8 - <std[57c45f57ec3c24e5]::thread::local::LocalKey<core[86de0986de23a55d]::cell::Cell<*const ()>>>::with::<rustc_middle[9bffbefec4c2d3c6]::ty::context::tls::enter_context<rustc_query_system[ff5dd8c2f29163d8]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[6c9b933e04a41676]::DynamicConfig<rustc_query_system[ff5dd8c2f29163d8]::query::caches::SingleCache<rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[6c9b933e04a41676]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 0usize]>>::{closure#0}, rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 0usize]>>
2025-08-06T04:12:01.5419955Z 46: 0xffac093bb430 - rustc_query_system[ff5dd8c2f29163d8]::query::plumbing::try_execute_query::<rustc_query_impl[6c9b933e04a41676]::DynamicConfig<rustc_query_system[ff5dd8c2f29163d8]::query::caches::SingleCache<rustc_middle[9bffbefec4c2d3c6]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[6c9b933e04a41676]::plumbing::QueryCtxt, false>
2025-08-06T04:12:01.5421645Z 47: 0xffac096724d4 - rustc_query_impl[6c9b933e04a41676]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
2025-08-06T04:12:01.5424342Z 48: 0xffac071397f8 - <std[57c45f57ec3c24e5]::thread::local::LocalKey<core[86de0986de23a55d]::cell::Cell<*const ()>>>::with::<rustc_middle[9bffbefec4c2d3c6]::ty::context::tls::enter_context<<rustc_middle[9bffbefec4c2d3c6]::ty::context::GlobalCtxt>::enter<rustc_interface[75c05ebdc46d0f4d]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>>::{closure#1}, core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>>::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>>
2025-08-06T04:12:01.5427896Z 49: 0xffac0719682c - <rustc_middle[9bffbefec4c2d3c6]::ty::context::TyCtxt>::create_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>, rustc_interface[75c05ebdc46d0f4d]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
2025-08-06T04:12:01.5432019Z 50: 0xffac071795b0 - <rustc_interface[75c05ebdc46d0f4d]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[e164ea3d64afd4b1]::session::Session, rustc_middle[9bffbefec4c2d3c6]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[2c9f1c1f23740c75]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[9bffbefec4c2d3c6]::ty::context::GlobalCtxt>, &rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_middle[9bffbefec4c2d3c6]::arena::Arena>, &rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_hir[c4d5b34c706ef8ed]::Arena>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
2025-08-06T04:12:01.5439170Z 51: 0xffac071c8020 - <alloc[cf75e2ab30ac120f]::boxed::Box<dyn for<'a> core[86de0986de23a55d]::ops::function::FnOnce<(&'a rustc_session[e164ea3d64afd4b1]::session::Session, rustc_middle[9bffbefec4c2d3c6]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[2c9f1c1f23740c75]::jobserver::Proxy>, &'a std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[9bffbefec4c2d3c6]::ty::context::GlobalCtxt<'a>>, &'a rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_middle[9bffbefec4c2d3c6]::arena::Arena<'a>>, &'a rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_hir[c4d5b34c706ef8ed]::Arena<'a>>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2}), Output = core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>>> as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[e164ea3d64afd4b1]::session::Session, rustc_middle[9bffbefec4c2d3c6]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[2c9f1c1f23740c75]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[9bffbefec4c2d3c6]::ty::context::GlobalCtxt>, &rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_middle[9bffbefec4c2d3c6]::arena::Arena>, &rustc_data_structures[2c9f1c1f23740c75]::sync::worker_local::WorkerLocal<rustc_hir[c4d5b34c706ef8ed]::Arena>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2})>>::call_once
2025-08-06T04:12:01.5444523Z 52: 0xffac0715fcc0 - rustc_interface[75c05ebdc46d0f4d]::passes::create_and_enter_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[75c05ebdc46d0f4d]::queries::Linker>, rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}::{closure#2}>
2025-08-06T04:12:01.5446519Z 53: 0xffac071516dc - <scoped_tls[21646fa6031b800c]::ScopedKey<rustc_span[41a6e2c377868cd4]::SessionGlobals>>::set::<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_with_globals<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_pool_with_globals<rustc_interface[75c05ebdc46d0f4d]::interface::run_compiler<(), rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
2025-08-06T04:12:01.5448916Z 54: 0xffac071e0bf8 - rustc_span[41a6e2c377868cd4]::create_session_globals_then::<(), rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_with_globals<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_pool_with_globals<rustc_interface[75c05ebdc46d0f4d]::interface::run_compiler<(), rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
2025-08-06T04:12:01.5451203Z 55: 0xffac071f7a74 - std[57c45f57ec3c24e5]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_with_globals<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_pool_with_globals<rustc_interface[75c05ebdc46d0f4d]::interface::run_compiler<(), rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
2025-08-06T04:12:01.5453892Z 56: 0xffac07159f00 - <<std[57c45f57ec3c24e5]::thread::Builder>::spawn_unchecked_<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_with_globals<rustc_interface[75c05ebdc46d0f4d]::util::run_in_thread_pool_with_globals<rustc_interface[75c05ebdc46d0f4d]::interface::run_compiler<(), rustc_driver_impl[f8dcd73e3f98802]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[86de0986de23a55d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
2025-08-06T04:12:01.5455521Z 57: 0xffac0acf5294 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4301b1eb7e190497
2025-08-06T04:12:01.5456070Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
2025-08-06T04:12:01.5456616Z 58: 0xffac0acf5294 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h63c57e2bd87c106a
2025-08-06T04:12:01.5457164Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
2025-08-06T04:12:01.5457677Z 59: 0xffac0acf5294 - std::sys::pal::unix::thread::Thread::new::thread_start::h029a7b8769f51646
2025-08-06T04:12:01.5458224Z at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/pal/unix/thread.rs:97:17
2025-08-06T04:12:01.5458643Z 60: 0xffac06404b30 - <unknown>
2025-08-06T04:12:01.5458857Z 61: 0xffac0646d88c - <unknown>
2025-08-06T04:12:01.5459068Z 62: 0x0 - <unknown>
2025-08-06T04:12:01.5459210Z
2025-08-06T04:12:01.5464975Z error: the compiler unexpectedly panicked. this is a bug.
2025-08-06T04:12:01.5465256Z
2025-08-06T04:12:01.5465638Z 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
2025-08-06T04:12:01.5466076Z
2025-08-06T04:12:01.5466229Z note: please make sure that you have updated to the latest nightly
2025-08-06T04:12:01.5466790Z
2025-08-06T04:12:01.5467190Z warning: the ICE couldn't be written to `/checkout/rustc-ice-2025-08-06T04_11_50-12575.txt`: Read-only file system (os error 30)
2025-08-06T04:12:01.5467590Z
2025-08-06T04:12:01.5467794Z note: rustc 1.91.0-nightly (ebbc8c298 2025-08-06) running on aarch64-unknown-linux-gnu
2025-08-06T04:12:01.5468072Z
2025-08-06T04:12:01.5469910Z note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debug-assertions=on -C symbol-mangling-version=legacy -Z randomize-layout -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C prefer-dynamic -C llvm-args=-import-instr-limit=10 -Z inline-mir -Z inline-mir-preserve-debug -Z mir_strip_debuginfo=locals-in-tiny-functions -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C embed-bitcode=yes -Z unstable-options -C force-frame-pointers=non-leaf -Z crate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/") -Z binary-dep-depinfo -Z force-unstable-if-unmarked
2025-08-06T04:12:01.5471787Z
2025-08-06T04:12:01.5471923Z note: some of the compiler flags provided by cargo are hidden
2025-08-06T04:12:01.5472132Z
2025-08-06T04:12:01.5472212Z query stack during panic:
2025-08-06T04:12:01.5472584Z #0 [typeck] type-checking `str::iter::<impl at library/core/src/str/iter.rs:136:1: 136:40>::peek_with`
2025-08-06T04:12:01.5473225Z #1 [analysis] running analysis passes on this crate
2025-08-06T04:12:01.5473480Z end of query stack
2025-08-06T04:12:03.6888258Z [RUSTC-TIMING] core test:false 13.268
2025-08-06T04:12:03.6889298Z error: could not compile `core` (lib)
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way