Open matthiaskrgr opened 1 year ago
proly related to https://github.com/rust-lang/rust/issues/83288
I'm getting this as well with the bitvec
crate on nightly
```
#0 92.22 error: internal compiler error: compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:195:90: Failed to normalize alloc::raw_vec::RawVec<
@pbdeuchler this has probably different root causes as my and your query stack during panic:
s are different.
What version of bitvec are you compiling?
A convenience crate was pulling it in, i've removed the code calling that crate so I can't be 100% sure but diffing from the latest commit (a couple days ago) it looks like:
-[[package]]
-name = "bitvec"
-version = "0.18.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98fcd36dda4e17b7d7abc64cb549bf0201f4ab71e00700c798ca7e62ed3761fa"
-dependencies = [
- "funty",
- "radium",
- "wyz",
-]
-
Which is about 3 years old. It was compiling just fine on nightly the other week though.
I submit the ICE from bitvec
to another issue: https://github.com/rust-lang/rust/issues/110682
I submit the ICE from
bitvec
to another issue: #110682
🫡
searched toolchains nightly-2023-01-12 through nightly-2023-04-28
Regression in nightly-2023-01-13 Regression in 2b8590ef3bd1221830ec8a4131ea9d02b1636746 https://github.com/rust-lang/rust/pull/106309 cc @compiler-errors
Code
Meta
rustc --version --verbose
:Error output
Backtrace
``` error: internal compiler error: compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:195:90: Failed to normalize >::Output, maybe try to call `try_normalize_erasing_regions` instead thread 'rustc' panicked at 'Box', /rustc/39c6804b92aa202369e402525cee329556bc1db0/compiler/rustc_errors/src/lib.rs:1643:9
stack backtrace:
0: 0x7f6af5168d43 - std::backtrace_rs::backtrace::libunwind::trace::h2a7e49770a0c8eb3
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7f6af5168d43 - std::backtrace_rs::backtrace::trace_unsynchronized::h6a543332a97578fa
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f6af5168d43 - std::sys_common::backtrace::_print_fmt::heb3e5fffa7940917
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7f6af5168d43 - ::fmt::h810a6e7cce2ac2e2
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f6af51c9daf - core::fmt::write::h9ad46b7c2a3eb976
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/core/src/fmt/mod.rs:1254:17
5: 0x7f6af515bd01 - std::io::Write::write_fmt::h1c9baacb87e6b9c9
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/io/mod.rs:1698:15
6: 0x7f6af5168b55 - std::sys_common::backtrace::_print::hca33eaa945a8a7ce
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:47:5
7: 0x7f6af5168b55 - std::sys_common::backtrace::print::h00199beaff62c71c
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:34:9
8: 0x7f6af516b807 - std::panicking::default_hook::{{closure}}::hd62eb02492041726
9: 0x7f6af516b5f5 - std::panicking::default_hook::hb077d6100095f68a
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:288:9
10: 0x7f6af84416e5 - >::call_once::{shim:vtable#0}
11: 0x7f6af516bf45 - as core::ops::function::Fn>::call::h616a4bdc344416e6
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1976:9
12: 0x7f6af516bf45 - std::panicking::rust_panic_with_hook::hd2d604a080396eb9
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:695:13
13: 0x7f6af89111a1 - std[ca44723e5ea5c648]::panicking::begin_panic::::{closure#0}
14: 0x7f6af890f4f6 - std[ca44723e5ea5c648]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !>
15: 0x7f6af896b2b6 - std[ca44723e5ea5c648]::panicking::begin_panic::
16: 0x7f6af8995cb6 - ::bug::<&alloc[27ecb065d74dda4e]::string::String>
17: 0x7f6af8995980 - ::bug::<&alloc[27ecb065d74dda4e]::string::String>
18: 0x7f6af89688db - rustc_middle[6b53c1a405df2db5]::util::bug::opt_span_bug_fmt::::{closure#0}
19: 0x7f6af89680da - rustc_middle[6b53c1a405df2db5]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0}
20: 0x7f6af89680a6 - rustc_middle[6b53c1a405df2db5]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !>
21: 0x7f6af65d42dd - rustc_middle[6b53c1a405df2db5]::util::bug::bug_fmt
22: 0x7f6af68eb46f - >::fold_ty
23: 0x7f6af77e0e1d - <&rustc_middle[6b53c1a405df2db5]::ty::list::List as rustc_type_ir[7988ade75723acf4]::fold::TypeFoldable>::fold_with::
24: 0x7f6af6bf8eb1 - rustc_ty_utils[bf48d55383bd79c7]::instance::inner_resolve_instance
25: 0x7f6af6953df1 - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::
26: 0x7f6af68b00cd - ::resolve_opt_const_arg
27: 0x7f6af660a3f9 - ::const_eval_resolve_for_typeck
28: 0x7f6af8791853 - ::const_eval_resolve
29: 0x7f6af8790061 - ::try_const_eval_resolve
30: 0x7f6af65abdfe - ::process_obligation
31: 0x7f6af659be49 - >::process_obligations::
32: 0x7f6af6e46d70 - ::select_all_or_error
33: 0x7f6af90ab583 - ::probe::>::visit_const::{closure#0}>
34: 0x7f6af8ff9285 - >::visit_const
35: 0x7f6af8ff909f - rustc_trait_selection[c5baa1ad5e4ebced]::traits::const_evaluatable::satisfied_from_param_env
36: 0x7f6af6614df8 - rustc_trait_selection[c5baa1ad5e4ebced]::traits::const_evaluatable::is_const_evaluatable
37: 0x7f6af65a7bf1 - ::process_obligation
38: 0x7f6af659be49 - >::process_obligations::
39: 0x7f6af6e46d70 - ::select_all_or_error
40: 0x7f6af8587ce1 - ::visit_ty
41: 0x7f6af85877f1 - rustc_hir_analysis[b76cf653628f06f0]::hir_wf_check::diagnostic_hir_wf_check
42: 0x7f6af8d5f565 - >>::with::::{closure#0}, rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 8usize]>>
43: 0x7f6af8cd61ba - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::
44: 0x7f6af8dff20f - ::diagnostic_hir_wf_check
45: 0x7f6af90ca486 - ::report_selection_error
46: 0x7f6af90d46d1 - ::report_fulfillment_error
47: 0x7f6af90c7770 - ::report_fulfillment_errors
48: 0x7f6af7272301 - rustc_hir_analysis[b76cf653628f06f0]::check::wfcheck::check_associated_item
49: 0x7f6af726b002 - rustc_hir_analysis[b76cf653628f06f0]::check::wfcheck::check_well_formed
50: 0x7f6af668371e - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::
51: 0x7f6af75855b1 - rustc_data_structures[a36227c7e9b5ca0d]::sync::par_for_each_in::<&[rustc_hir[90ff4a02f3a736a3]::hir::ImplItemId], ::par_impl_items::{closure#0}>
52: 0x7f6af75850ba - rustc_hir_analysis[b76cf653628f06f0]::check::wfcheck::check_mod_type_wf
53: 0x7f6af7a75481 - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::
54: 0x7f6af7a750a9 - ::check_mod_type_wf
55: 0x7f6af780d387 - rustc_data_structures[a36227c7e9b5ca0d]::sync::par_for_each_in::<&[rustc_hir[90ff4a02f3a736a3]::hir_id::OwnerId], ::par_for_each_module::{closure#0}>
56: 0x7f6af7809c7d - rustc_hir_analysis[b76cf653628f06f0]::check_crate
57: 0x7f6af7803bad - rustc_interface[582898756836a6b1]::passes::analysis
58: 0x7f6af7ba3702 - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::
59: 0x7f6af7ba3410 - ::analysis
60: 0x7f6af7a640e6 - >>::with::::enter>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
61: 0x7f6af763dca8 - ::enter::, rustc_span[35742d543528875]::ErrorGuaranteed>>
62: 0x7f6af7637caf - rustc_span[35742d543528875]::set_source_map::, rustc_interface[582898756836a6b1]::interface::run_compiler, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
63: 0x7f6af76378c8 - >::set::, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
64: 0x7f6af7636edb - std[ca44723e5ea5c648]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
65: 0x7f6af7d09431 - <::spawn_unchecked_, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#1} as core[87dac7cd678aec56]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
66: 0x7f6af51763d5 - as core::ops::function::FnOnce>::call_once::haab69effe0fa19e3
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9
67: 0x7f6af51763d5 - as core::ops::function::FnOnce>::call_once::hb0775fd74e9e7829
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9
68: 0x7f6af51763d5 - std::sys::unix::thread::Thread::new::thread_start::h0e7436fc32c0c985
at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys/unix/thread.rs:108:17
69: 0x7f6af4f10bb5 -
70: 0x7f6af4f92d90 -
71: 0x0 -
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.71.0-nightly (39c6804b9 2023-04-19) running on x86_64-unknown-linux-gnu
query stack during panic:
#0 [resolve_instance] resolving instance `<>::Output as Indices>::NUM_ELEMS`
#1 [diagnostic_hir_wf_check] performing HIR wf-checking for predicate `Binder(TraitPredicate(>, polarity:Positive), [])` at item `Ty(DefId(0:21 ~ treereduce[952b]::{impl#0}::Output))`
#2 [check_well_formed] checking that `::Output` is well-formed
#3 [check_mod_type_wf] checking that types are well-formed in top-level module
#4 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to 12 previous errors; 1 warning emitted
Some errors have detailed explanations: E0277, E0392, E0412, E0433, E0601.
For more information about an error, try `rustc --explain E0277`.
```