Repository navigation
[ICE]: predicate.rs:440:9 #163206
Copy link
Copy link
Closed
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.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Code
use std::collections::HashMap;
use std::cell::{OnceCell, RefCell};
///////////////////////////////
// StatInfo - statistics
#[derive(Default, Debug, Clone, Copy)]
pub struct StatInfo {
total: usize, // total size of th series
}
impl StatInfo {
pub fn calculate<'a, I>(total: usize, iter: I) -> StatInfo where I: Iterator<Item = &'a f64> {
StatInfo { total }
}
}
///////////////////////////////
/// StatFrame - data frame
pub struct StatFrame<const N: usize> {
num: Option<usize>,
data: Vec<[f64; N]>,
stat_info_cache: OnceCell<[StatInfo; N]>,
}
impl<const N: usize> StatFrame<N> {
pub fn get_frame_stat_info(&self) -> [StatInfo; N] {
let calc_fn = || {
let mut res = [StatInfo::default(); N];
for i in 0..N {
res[i] = StatInfo::calculate(self.data.len(), self.data.iter().map(|f| &f[i]));
}
res
};
if let None = self.num {
return calc_fn();
}
*self.stat_info_cache.get_or_init(calc_fn)
}
fn new() -> Self {
Self{ num: None, data: Vec::new(), stat_info_cache: OnceCell::new() }
}
pub fn push(&mut self, value: [f64; N]) {
self.data.push(value);
}
}
//////////////////////////////
/// Statistics series -
pub struct StatSeries<const N: usize> {
headers: Vec<String>,
frames: Vec<StatFrame<N>>,
stat_info_cache: RefCell<HashMap<(usize, usize), [StatInfo; N]>>,
}
impl<const N: usize> StatSeries<N> {
pub fn new<H>(headers: [H; N]) -> Self where String: for <'a> From<&'a H> {
let headers: Vec<String> = (&headers[0..N]).iter().map(|s| String::from(s)).collect();
Self{ headers, frames: Vec::new(), stat_info_cache: RefCell::new(HashMap::new()) }
}
pub fn complete_frame(&mut self, mut new_frame: StatFrame<N>) {
new_frame.num = Some(self.frames.len());
self.frames.push(new_frame);
}
}
fn main() {
let series = StatSeries::<2>::new(["time", "length"]);
let mut writer = StatFrame::<2>::new();
println!("Hello, world!");
writer.push([2.0, 3.0]);
series.complete_frame(writer);
}Meta
rustc --version --verbose:
rustc 1.98.1 (48a229cea 2026-09-01)
binary: rustc
commit-hash: 48a229ceaefd4985c50990b14116b6d856af0985
commit-date: 2026-09-01
host: x86_64-pc-windows-msvc
release: 1.98.1
LLVM version: 22.1.8
Error output
Compiling t v0.1.0 (C:\work\mipt\ann\t)
thread 'rustc' (40220) panicked at /rustc-dev/48a229ceaefd4985c50990b14116b6d856af0985/compiler\rustc_middle\src\ty\predicate.rs:440:9:
`TraitPredicate(<std::string::String as std::convert::From<&'a str>>, polarity:Positive)` has escaping bound vars, so it cannot be wrapped in a dummy binder.
stack backtrace:
0: 0x7ff89c3819b9 - std::backtrace_rs::backtrace::win64::trace
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: 0x7ff89c3819b9 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff89c3819b9 - std::sys::backtrace::_print_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:74
3: 0x7ff89c3819b9 - std::sys::backtrace::impl$0::print::impl$0::fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:44
4: 0x7ff89c3aa9f1 - core::fmt::write
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\fmt\mod.rs:0
5: 0x7ff89c391874 - std::io::default_write_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\mod.rs:626
6: 0x7ff89c391874 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\mod.rs:1730
7: 0x7ff89c358255 - std::sys::backtrace::BacktraceLock::print
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:47
8: 0x7ff89c358255 - std::panicking::default_hook::closure$0
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:292
9: 0x7ff89c373bb8 - std::panicking::default_hook
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:319
10: 0x7fffb7b6ca9b - core[6380f46c71b215e4]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[cc4061f12a820a34]::Level, &str), usize), <((rustc_lint_defs[cc4061f12a820a34]::Level, &str), usize) as core[6380f46c71b215e4]::cmp::PartialOrd>::lt>
11: 0x7ff89c373fd4 - std::panicking::panic_with_hook
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:823
12: 0x7ff89c35832e - std::panicking::panic_handler::closure$0
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:688
13: 0x7ff89c3557af - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:182
14: 0x7ff89c358e7e - std::panicking::panic_handler
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:679
15: 0x7ff89c3ce38d - core::panicking::panic_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\panicking.rs:80
16: 0x7fffb61a6583 - <rustc_middle[fafc4954b0cce51f]::ty::predicate::Predicate as rustc_type_ir[b4770ccbd73e2fc1]::upcast::UpcastFrom<rustc_middle[fafc4954b0cce51f]::ty::context::TyCtxt, rustc_type_ir[b4770ccbd73e2fc1]::predicate::TraitPredicate<rustc_middle[fafc4954b0cce51f]::ty::context::TyCtxt>>>::upcast_from
17: 0x7fffb9b8eb27 - RINvMs0_NtCsinu1ktnSElL_21rustc_data_structures17obligation_forestINtB6_16ObligationForestNtNtNtCs3uc0NMkBLP_21rustc_trait_selection6traits7fulfill26PendingPredicateObligationE8compressNCINvB2_19process_obligationsNtNvXs0_B1s_INtB1s_18FulfillmentContextpEI
18: 0x7fffb9cff9c9 - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::fuzzy_match_tys
19: 0x7fffb9d0560f - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::note_obligation_cause
20: 0x7fffb9cec87f - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::report_selection_error
21: 0x7fffb9d187c0 - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::report_fulfillment_errors
22: 0x7fffb64f8dcc - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
23: 0x7fffb64da728 - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
24: 0x7fffb653f43a - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
25: 0x7fffb654453d - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
26: 0x7fffb64dae69 - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
27: 0x7fffb65e3a3d - rustc_hir_typeck[93fe51c8ee75a5c7]::intrinsicck::check_transmutes
28: 0x7fffb64962cc - <hashbrown[aae0934c93aa5b95]::raw::RawTable<usize>>::reserve_rehash::<indexmap[6c9cd7c48621ec65]::inner::get_hash<(rustc_middle[fafc4954b0cce51f]::ty::predicate::Predicate, rustc_middle[fafc4954b0cce51f]::traits::ObligationCause), ()>::{closure#0}>
29: 0x7fffb64aaa00 - rustc_hir_typeck[93fe51c8ee75a5c7]::typeck_root
30: 0x7fffb71eac3b - rustc_query_impl[757a2518e15308ec]::dep_kind_vtables::make_dep_kind_vtables
31: 0x7fffb70ebf3d - RINvMs6_NtCseFzGwGcGReH_9hashbrown3rawINtB6_8RawTableTTNtNtNtCslxZn9F6ZAXH_12rustc_middle2ty8instance8InstanceNtNtBX_4mono14CollectionModeETINtNtNtBX_5query5erase10ErasedDataAhj20_ENtNtNtBX_9dep_graph5graph12DepNodeIndexEEE14reserve_rehashNCNvMs1_NtCsinu1k
32: 0x7fffb71eaae5 - rustc_query_impl[757a2518e15308ec]::dep_kind_vtables::make_dep_kind_vtables
33: 0x7fffb664b7fc - rustc_hir_analysis[10dc7e69540c429d]::check_crate
34: 0x7fffb634e190 - rustc_interface[d9e19aed855a9319]::passes::analysis
35: 0x7fffb5e5853a - rustc_query_impl[757a2518e15308ec]::plumbing::verify_query_key_hashes
36: 0x7fffb5d3be3c - <<rustc_ty_utils[a23332fb4bb35fd4]::opaque_types::OpaqueTypeCollector>::collect_taits_declared_in_body::TaitInBodyFinder as rustc_hir[55250e77a429a444]::intravisit::Visitor>::visit_nested_item
37: 0x7fffb5e5848a - rustc_query_impl[757a2518e15308ec]::plumbing::verify_query_key_hashes
38: 0x7fffb36d09e7 - std[2a1f8e54e2930f4]::sys::backtrace::__rust_begin_short_backtrace::<std[2a1f8e54e2930f4]::thread::lifecycle::spawn_unchecked<ctrlc[75dfe702384e6772]::set_handler_inner<rustc_driver_impl[9361cccfbcde1e27]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
39: 0x7fffb36c8a05 - RINvNtNtCse0R8cuyqEa_3std3sys9backtrace28___rust_begin_short_backtraceNCNCINvNtCsiHMamp5DUIn_15rustc_interface4util26run_in_thread_with_globalsNCINvB1d_31run_in_thread_pool_with_globalsNCINvNtB1f_9interface12run_compileruNCNvCscEvGEeMUPR3_17rustc_driver_im
40: 0x7fffb36d4a97 - std[2a1f8e54e2930f4]::sys::backtrace::__rust_begin_short_backtrace::<std[2a1f8e54e2930f4]::thread::lifecycle::spawn_unchecked<ctrlc[75dfe702384e6772]::set_handler_inner<rustc_driver_impl[9361cccfbcde1e27]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
41: 0x7ff89c37e6a3 - std::sys::thread::windows::impl$0::new::thread_start
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\thread\windows.rs:58
42: 0x7ff8eeb4cd87 - BaseThreadInitThunk
43: 0x7ff8efcecaec - RtlUserThreadStart
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: rustc 1.98.1 (48a229cea 2026-09-01) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [typeck_root] type-checking `main`
#1 [analysis] running analysis passes on crate `t`
end of query stack
error: could not compile `t` (bin "t")
Caused by:
process didn't exit successfully: `C:\Users\Alexander\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name t --edition=2024 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=35f9c81f52acd07b --out-dir C:\work\mipt\ann\t\target\debug\deps -C incremental=C:\work\mipt\ann\t\target\debug\incremental -L dependency=C:\work\mipt\ann\t\target\debug\deps` (exit code: 101)
Backtrace
Compiling t v0.1.0 (C:\work\mipt\ann\t)
thread 'rustc' (19064) panicked at /rustc-dev/48a229ceaefd4985c50990b14116b6d856af0985/compiler\rustc_middle\src\ty\predicate.rs:440:9:
`TraitPredicate(<std::string::String as std::convert::From<&'a str>>, polarity:Positive)` has escaping bound vars, so it cannot be wrapped in a dummy binder.
stack backtrace:
0: 0x7ff89c3819b9 - std::backtrace_rs::backtrace::win64::trace
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: 0x7ff89c3819b9 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ff89c3819b9 - std::sys::backtrace::_print_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:74
3: 0x7ff89c3819b9 - std::sys::backtrace::impl$0::print::impl$0::fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:44
4: 0x7ff89c3aa9f1 - core::fmt::write
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\fmt\mod.rs:0
5: 0x7ff89c391874 - std::io::default_write_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\mod.rs:626
6: 0x7ff89c391874 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\mod.rs:1730
7: 0x7ff89c358255 - std::sys::backtrace::BacktraceLock::print
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:47
8: 0x7ff89c358255 - std::panicking::default_hook::closure$0
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:292
9: 0x7ff89c373bb8 - std::panicking::default_hook
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:319
10: 0x7fffb7b6ca9b - core[6380f46c71b215e4]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[cc4061f12a820a34]::Level, &str), usize), <((rustc_lint_defs[cc4061f12a820a34]::Level, &str), usize) as core[6380f46c71b215e4]::cmp::PartialOrd>::lt>
11: 0x7ff89c373fd4 - std::panicking::panic_with_hook
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:823
12: 0x7ff89c35832e - std::panicking::panic_handler::closure$0
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:688
13: 0x7ff89c3557af - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\backtrace.rs:182
14: 0x7ff89c358e7e - std::panicking::panic_handler
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\panicking.rs:679
15: 0x7ff89c3ce38d - core::panicking::panic_fmt
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\panicking.rs:80
16: 0x7fffb61a6583 - <rustc_middle[fafc4954b0cce51f]::ty::predicate::Predicate as rustc_type_ir[b4770ccbd73e2fc1]::upcast::UpcastFrom<rustc_middle[fafc4954b0cce51f]::ty::context::TyCtxt, rustc_type_ir[b4770ccbd73e2fc1]::predicate::TraitPredicate<rustc_middle[fafc4954b0cce51f]::ty::context::TyCtxt>>>::upcast_from
17: 0x7fffb9b8eb27 - RINvMs0_NtCsinu1ktnSElL_21rustc_data_structures17obligation_forestINtB6_16ObligationForestNtNtNtCs3uc0NMkBLP_21rustc_trait_selection6traits7fulfill26PendingPredicateObligationE8compressNCINvB2_19process_obligationsNtNvXs0_B1s_INtB1s_18FulfillmentContextpEI
18: 0x7fffb9cff9c9 - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::fuzzy_match_tys
19: 0x7fffb9d0560f - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::note_obligation_cause
20: 0x7fffb9cec87f - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::report_selection_error
21: 0x7fffb9d187c0 - <rustc_trait_selection[a7b393a2f6556b]::error_reporting::TypeErrCtxt>::report_fulfillment_errors
22: 0x7fffb64f8dcc - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
23: 0x7fffb64da728 - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
24: 0x7fffb653f43a - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
25: 0x7fffb654453d - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
26: 0x7fffb64dae69 - rustc_hir_typeck[93fe51c8ee75a5c7]::used_trait_imports
27: 0x7fffb65e3a3d - rustc_hir_typeck[93fe51c8ee75a5c7]::intrinsicck::check_transmutes
28: 0x7fffb64962cc - <hashbrown[aae0934c93aa5b95]::raw::RawTable<usize>>::reserve_rehash::<indexmap[6c9cd7c48621ec65]::inner::get_hash<(rustc_middle[fafc4954b0cce51f]::ty::predicate::Predicate, rustc_middle[fafc4954b0cce51f]::traits::ObligationCause), ()>::{closure#0}>
29: 0x7fffb64aaa00 - rustc_hir_typeck[93fe51c8ee75a5c7]::typeck_root
30: 0x7fffb71eac3b - rustc_query_impl[757a2518e15308ec]::dep_kind_vtables::make_dep_kind_vtables
31: 0x7fffb70ebf3d - RINvMs6_NtCseFzGwGcGReH_9hashbrown3rawINtB6_8RawTableTTNtNtNtCslxZn9F6ZAXH_12rustc_middle2ty8instance8InstanceNtNtBX_4mono14CollectionModeETINtNtNtBX_5query5erase10ErasedDataAhj20_ENtNtNtBX_9dep_graph5graph12DepNodeIndexEEE14reserve_rehashNCNvMs1_NtCsinu1k
32: 0x7fffb71eaae5 - rustc_query_impl[757a2518e15308ec]::dep_kind_vtables::make_dep_kind_vtables
33: 0x7fffb664b7fc - rustc_hir_analysis[10dc7e69540c429d]::check_crate
34: 0x7fffb634e190 - rustc_interface[d9e19aed855a9319]::passes::analysis
35: 0x7fffb5e5853a - rustc_query_impl[757a2518e15308ec]::plumbing::verify_query_key_hashes
36: 0x7fffb5d3be3c - <<rustc_ty_utils[a23332fb4bb35fd4]::opaque_types::OpaqueTypeCollector>::collect_taits_declared_in_body::TaitInBodyFinder as rustc_hir[55250e77a429a444]::intravisit::Visitor>::visit_nested_item
37: 0x7fffb5e5848a - rustc_query_impl[757a2518e15308ec]::plumbing::verify_query_key_hashes
38: 0x7fffb36d09e7 - std[2a1f8e54e2930f4]::sys::backtrace::__rust_begin_short_backtrace::<std[2a1f8e54e2930f4]::thread::lifecycle::spawn_unchecked<ctrlc[75dfe702384e6772]::set_handler_inner<rustc_driver_impl[9361cccfbcde1e27]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
39: 0x7fffb36c8a05 - RINvNtNtCse0R8cuyqEa_3std3sys9backtrace28___rust_begin_short_backtraceNCNCINvNtCsiHMamp5DUIn_15rustc_interface4util26run_in_thread_with_globalsNCINvB1d_31run_in_thread_pool_with_globalsNCINvNtB1f_9interface12run_compileruNCNvCscEvGEeMUPR3_17rustc_driver_im
40: 0x7fffb36d4a97 - std[2a1f8e54e2930f4]::sys::backtrace::__rust_begin_short_backtrace::<std[2a1f8e54e2930f4]::thread::lifecycle::spawn_unchecked<ctrlc[75dfe702384e6772]::set_handler_inner<rustc_driver_impl[9361cccfbcde1e27]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
41: 0x7ff89c37e6a3 - std::sys::thread::windows::impl$0::new::thread_start
at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\sys\thread\windows.rs:58
42: 0x7ff8eeb4cd87 - BaseThreadInitThunk
43: 0x7ff8efcecaec - RtlUserThreadStart
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: rustc 1.98.1 (48a229cea 2026-09-01) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [typeck_root] type-checking `main`
#1 [analysis] running analysis passes on crate `t`
end of query stack
error: could not compile `t` (bin "t")
Caused by:
process didn't exit successfully: `C:\Users\Alexander\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name t --edition=2024 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=35f9c81f52acd07b --out-dir C:\work\mipt\ann\t\target\debug\deps -C incremental=C:\work\mipt\ann\t\target\debug\incremental -L dependency=C:\work\mipt\ann\t\target\debug\deps` (exit code: 101)
Reactions are currently unavailable
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.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Activity
alexander-markov-1977 commentedon Sep 23, 2026
The issue repproduces on Linux respectively.
maxdexh commentedon Sep 23, 2026
Errors correctly in 1.80 and on next-solver
Edit: The
fixed-by-next-solverlabel is still not in the allowed label list :/@rustbot label T-types regression-from-stable-to-stable E-needs-bisection
rustbot commentedon Sep 23, 2026
Error: Label fixed-by-next-solver can only be set by Rust team members
Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.
lsunsi commentedon Sep 23, 2026
Reduced to:
lsunsi commentedon Sep 23, 2026
searched nightlies: from nightly-2026-04-29 to nightly-2026-09-23
regressed nightly: nightly-2026-07-31
searched commit range: 1a833e1...8ab9fdf
regressed commit: be3d26d
bisected with cargo-bisect-rustc v0.6.11
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
3 remaining items
maxdexh commentedon Sep 23, 2026
Even though this is fixed by next-solver, it is still a stable-to-stable regression. IMO we should not just close this with a test
lqd commentedon Sep 23, 2026
This PR landed in 1.99 and the ICE in the OP is present on 1.98, so it seems you bisected for the fix, not the PR introducing the regression.
1.99 will be stable in a week or so, and judging from beta #159049 does indeed fix the ICE. This issue will become an E-needs-test quite soon unless I'm missing something?
maxdexh commentedon Sep 23, 2026
Yup! I did not see it got fixed on old-solver already. In that case, I agree closing with test is totally the right way ^^
lsunsi commentedon Sep 23, 2026
@lqd you were right, the regression was in
nightly-2026-02-11.probably in one of these commits
Rollup merge of rust-lang#163228 - lsunsi:issue163206, r=ShoyuVanilla
Unrolled build for #163228 in rollup 163244
Rollup merge of #163228 - lsunsi:issue163206, r=ShoyuVanilla