stack backtrace:
0: 0x110beed38 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4be40145f5d75785
1: 0x10e0b3fa0 - core::fmt::write::hd06feb16faadf189
2: 0x110be3458 - std::io::Write::write_fmt::hc6cf7b2e99bf22bc
3: 0x110beebf8 - std::sys::backtrace::BacktraceLock::print::h71ad846416a2462e
4: 0x110bf37ac - std::panicking::default_hook::{{closure}}::h042040ba5abec632
5: 0x110bf3484 - std::panicking::default_hook::hd9c5d70c9db20ad3
6: 0x10eca9634 - rustc_driver_impl[8b0268481b7962e9]::install_ice_hook::{closure#1}
7: 0x110bf4138 - std::panicking::panic_with_hook::h1810c54bae6a048a
8: 0x110bf3d20 - std::panicking::begin_panic_handler::{{closure}}::h8b20b2c90c553e7d
9: 0x110bef1c8 - std::sys::backtrace::__rust_end_short_backtrace::h03af09e1370f0090
10: 0x110bf3a24 - __rustc[269c9db68a919973]::rust_begin_unwind
11: 0x113830ed8 - core::panicking::panic_fmt::h2878cd0613276299
12: 0x10f89b110 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
13: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
14: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
15: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
16: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
17: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
18: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
19: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
20: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
21: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
22: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
23: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
24: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
25: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
26: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
27: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
28: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
29: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
30: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
31: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
32: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
33: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
34: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
35: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
36: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
37: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
38: 0x10f994df4 - <&rustc_middle[8cfe2b71c271f46e]::ty::list::RawList<(), rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable::{closure#0}
39: 0x10f89a970 - <rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
40: 0x10f8d57d4 - <rustc_type_ir[24ddb17102b43e49]::ty_info::WithCachedTypeInfo<rustc_type_ir[24ddb17102b43e49]::ty_kind::TyKind<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>> as rustc_data_structures[1947b2a35693e62c]::stable_hasher::HashStable<rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext>>::hash_stable
41: 0x110331910 - <rustc_query_impl[81c1fb27ac7807d3]::query_impl::try_normalize_generic_arg_after_erasing_regions::dynamic_query::{closure#7} as core[5d5355db94f3a3e8]::ops::function::FnOnce<(&mut rustc_query_system[432617d3f03f8cd3]::ich::hcx::StableHashingContext, &rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 8usize]>)>>::call_once
42: 0x1100eb12c - <rustc_query_system[432617d3f03f8cd3]::dep_graph::graph::DepGraphData<rustc_middle[8cfe2b71c271f46e]::dep_graph::DepsType>>::hash_result_and_alloc_node::<rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 8usize]>>
43: 0x110166a00 - rustc_query_system[432617d3f03f8cd3]::query::plumbing::try_execute_query::<rustc_query_impl[81c1fb27ac7807d3]::DynamicConfig<rustc_query_system[432617d3f03f8cd3]::query::caches::DefaultCache<rustc_middle[8cfe2b71c271f46e]::ty::PseudoCanonicalInput<rustc_middle[8cfe2b71c271f46e]::ty::generic_args::GenericArg>, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[81c1fb27ac7807d3]::plumbing::QueryCtxt, true>
44: 0x1103d44cc - rustc_query_impl[81c1fb27ac7807d3]::query_impl::try_normalize_generic_arg_after_erasing_regions::get_query_incr::__rust_end_short_backtrace
45: 0x10f9d1498 - <rustc_middle[8cfe2b71c271f46e]::ty::normalize_erasing_regions::TryNormalizeAfterErasingRegionsFolder>::try_normalize_generic_arg_after_erasing_regions
46: 0x10eae3a08 - <rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>::try_normalize_erasing_regions::<rustc_middle[8cfe2b71c271f46e]::mir::consts::Const>
47: 0x10eba6d28 - <rustc_const_eval[69d1c5271ed2fe25]::interpret::eval_context::InterpCx<rustc_const_eval[69d1c5271ed2fe25]::const_eval::machine::CompileTimeMachine>>::instantiate_from_current_frame_and_normalize_erasing_regions::<rustc_middle[8cfe2b71c271f46e]::mir::consts::Const>
48: 0x10ebc2ae0 - <rustc_const_eval[69d1c5271ed2fe25]::interpret::eval_context::InterpCx<rustc_const_eval[69d1c5271ed2fe25]::const_eval::machine::CompileTimeMachine>>::eval_operand
49: 0x10ebcee94 - <rustc_const_eval[69d1c5271ed2fe25]::interpret::eval_context::InterpCx<rustc_const_eval[69d1c5271ed2fe25]::const_eval::machine::CompileTimeMachine>>::eval_callee_and_args
50: 0x10ebd08bc - <rustc_const_eval[69d1c5271ed2fe25]::interpret::eval_context::InterpCx<rustc_const_eval[69d1c5271ed2fe25]::const_eval::machine::CompileTimeMachine>>::eval_terminator
51: 0x10ebe3978 - rustc_const_eval[69d1c5271ed2fe25]::const_eval::eval_queries::eval_to_allocation_raw_provider
52: 0x11036026c - rustc_query_impl[81c1fb27ac7807d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 24usize]>>
53: 0x1103196f0 - <rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2} as core[5d5355db94f3a3e8]::ops::function::FnOnce<(rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt, rustc_middle[8cfe2b71c271f46e]::ty::PseudoCanonicalInput<rustc_middle[8cfe2b71c271f46e]::mir::interpret::GlobalId>)>>::call_once
54: 0x11016b058 - rustc_query_system[432617d3f03f8cd3]::query::plumbing::try_execute_query::<rustc_query_impl[81c1fb27ac7807d3]::DynamicConfig<rustc_query_system[432617d3f03f8cd3]::query::caches::DefaultCache<rustc_middle[8cfe2b71c271f46e]::ty::PseudoCanonicalInput<rustc_middle[8cfe2b71c271f46e]::mir::interpret::GlobalId>, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[81c1fb27ac7807d3]::plumbing::QueryCtxt, true>
55: 0x110395014 - rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_allocation_raw::get_query_incr::__rust_end_short_backtrace
56: 0x10ebe06dc - rustc_const_eval[69d1c5271ed2fe25]::const_eval::eval_queries::eval_to_const_value_raw_provider
57: 0x110360ae4 - rustc_query_impl[81c1fb27ac7807d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 24usize]>>
58: 0x11031eee0 - <rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_const_value_raw::dynamic_query::{closure#2} as core[5d5355db94f3a3e8]::ops::function::FnOnce<(rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt, rustc_middle[8cfe2b71c271f46e]::ty::PseudoCanonicalInput<rustc_middle[8cfe2b71c271f46e]::mir::interpret::GlobalId>)>>::call_once
59: 0x11016d470 - rustc_query_system[432617d3f03f8cd3]::query::plumbing::try_execute_query::<rustc_query_impl[81c1fb27ac7807d3]::DynamicConfig<rustc_query_system[432617d3f03f8cd3]::query::caches::DefaultCache<rustc_middle[8cfe2b71c271f46e]::ty::PseudoCanonicalInput<rustc_middle[8cfe2b71c271f46e]::mir::interpret::GlobalId>, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 24usize]>>, false, true, false>, rustc_query_impl[81c1fb27ac7807d3]::plumbing::QueryCtxt, true>
60: 0x110395b84 - rustc_query_impl[81c1fb27ac7807d3]::query_impl::eval_to_const_value_raw::get_query_incr::__rust_end_short_backtrace
61: 0x10ef000f0 - <rustc_middle[8cfe2b71c271f46e]::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis[7d59adf90d525765]::check_crate::{closure#2}>::{closure#0}
62: 0x10f06c384 - rustc_hir_analysis[7d59adf90d525765]::check_crate
63: 0x10f599ef8 - rustc_interface[d58e630bd7cba391]::passes::run_required_analyses
64: 0x10f59bb48 - rustc_interface[d58e630bd7cba391]::passes::analysis
65: 0x110362704 - rustc_query_impl[81c1fb27ac7807d3]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[81c1fb27ac7807d3]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 0usize]>>
66: 0x11013a2d4 - rustc_query_system[432617d3f03f8cd3]::query::plumbing::try_execute_query::<rustc_query_impl[81c1fb27ac7807d3]::DynamicConfig<rustc_query_system[432617d3f03f8cd3]::query::caches::SingleCache<rustc_middle[8cfe2b71c271f46e]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[81c1fb27ac7807d3]::plumbing::QueryCtxt, true>
67: 0x11036e848 - rustc_query_impl[81c1fb27ac7807d3]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
68: 0x10ec4ccec - rustc_interface[d58e630bd7cba391]::passes::create_and_enter_global_ctxt::<core[5d5355db94f3a3e8]::option::Option<rustc_interface[d58e630bd7cba391]::queries::Linker>, rustc_driver_impl[8b0268481b7962e9]::run_compiler::{closure#0}::{closure#2}>
69: 0x10ec5a20c - rustc_interface[d58e630bd7cba391]::interface::run_compiler::<(), rustc_driver_impl[8b0268481b7962e9]::run_compiler::{closure#0}>::{closure#1}
70: 0x10ec4f634 - std[6da48340117c12e6]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[d58e630bd7cba391]::util::run_in_thread_with_globals<rustc_interface[d58e630bd7cba391]::util::run_in_thread_pool_with_globals<rustc_interface[d58e630bd7cba391]::interface::run_compiler<(), rustc_driver_impl[8b0268481b7962e9]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
71: 0x10ec5c538 - <<std[6da48340117c12e6]::thread::Builder>::spawn_unchecked_<rustc_interface[d58e630bd7cba391]::util::run_in_thread_with_globals<rustc_interface[d58e630bd7cba391]::util::run_in_thread_pool_with_globals<rustc_interface[d58e630bd7cba391]::interface::run_compiler<(), rustc_driver_impl[8b0268481b7962e9]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5d5355db94f3a3e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
72: 0x110bf74c0 - std::sys::pal::unix::thread::Thread::new::thread_start::h2e153fa80cfbfd28
73: 0x188b6ac0c - __pthread_cond_wait
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: please attach the file at `/Users/timch/foo/rustc-ice-2025-08-05T08_44_34-28957.txt` to your bug report
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [try_normalize_generic_arg_after_erasing_regions] normalizing `foo<core::option::Option<<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<i32>>>>>>> as Project>::Projected<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<core::option::Option<i32>>>>>>>>>>`
#1 [eval_to_allocation_raw] const-evaluating + checking `X`
... and 2 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
error: could not compile `foo` (lib)
Caused by:
process didn't exit successfully: `/Users/timch/.rustup/toolchains/nightly-aarch64-apple-darwin/bin/rustc --crate-name foo --edition=2024 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=76 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=09721b7f59b77245 -C extra-filename=-890f97683d406f94 --out-dir /Users/timch/foo/target/debug/deps -C incremental=/Users/timch/foo/target/debug/incremental -L dependency=/Users/timch/foo/target/debug/deps` (exit status: 101)
Code
This code gives two different ICEs, depending on whether incremental compilation is on or not.
Discovered by @Nemo157
Meta (playground linux, incremental compilation off)
Reproducible on the playground with version
1.91.0-nightly (2025-08-04 0060d5a2a8a86a31f629)Error output (playground linux, incremental compilation off)
Backtrace
Meta (MacOS, incremental compilation on)
rustc --version --verbose:Error output (MacOS, incremental compilation on)
Backtrace