rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
94.89k stars 12.23k forks source link

ICE: failed to normalize, generic_const_exprs #110630

Open matthiaskrgr opened 1 year ago

matthiaskrgr commented 1 year ago

Code

#![feature(generic_const_exprs)]

use std::ops::Mul;

pub trait Indices<const N: usize> {
    const NUM_ELEMS: usize = I::NUM_ELEMS * N;
}

pub trait Concat<J> {
    type Output;
}

pub struct Tensor<I: Indices<N>, const N: usize>
where
    [u8; I::NUM_ELEMS]: Sized, {}

impl<I: Indices<N>, J: Indices<N>, const N: usize> Mul<Tensor<J, N>> for Tensor<I, N>
where
    I: Concat<T>,
    <I as Concat<J>>::Output: Indices<N>,
    [u8; I::NUM_ELEMS]: Sized,
    [u8; J::NUM_ELEMS]: Sized,
    [u8; <I as Concat<J>>::Output::NUM_ELEMS]: Sized,
{
    type Output = Tensor<<I as Concat<J>>::Output, N>;
}

Meta

rustc --version --verbose:

rustc 1.71.0-nightly (39c6804b9 2023-04-19)
binary: rustc
commit-hash: 39c6804b92aa202369e402525cee329556bc1db0
commit-date: 2023-04-19
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2

Error output

yes
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`. ```

matthiaskrgr commented 1 year ago
pbdeuchler commented 1 year ago

I'm getting this as well with the bitvec crate on nightly

Backtrace

``` #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<::Mem>, maybe try to call `try_normalize_erasing_regions` instead #0 92.22 #0 92.22 thread 'rustc' panicked at 'Box', /rustc/39c6804b92aa202369e402525cee329556bc1db0/compiler/rustc_errors/src/lib.rs:1643:9 #0 92.22 stack backtrace: #0 92.23 0: 0xffff7f92d174 - std::backtrace_rs::backtrace::libunwind::trace::h12be91c7b6627c6d #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 #0 92.24 1: 0xffff7f92d174 - std::backtrace_rs::backtrace::trace_unsynchronized::h4bdab7ec283fe3be #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 #0 92.24 2: 0xffff7f92d174 - std::sys_common::backtrace::_print_fmt::he3e23b7445a93ab7 #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:65:5 #0 92.24 3: 0xffff7f92d174 - ::fmt::h0b8e6c555078be05 #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:44:22 #0 92.24 4: 0xffff7f984638 - core::fmt::write::h552f8b618807d728 #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/core/src/fmt/mod.rs:1254:17 #0 92.24 5: 0xffff7f922548 - std::io::Write::write_fmt::h152cf3f5e88b0a25 #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/io/mod.rs:1698:15 #0 92.24 6: 0xffff7f92cfc8 - std::sys_common::backtrace::_print::h9f38c7a813da777d #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:47:5 #0 92.24 7: 0xffff7f92cfc8 - std::sys_common::backtrace::print::hbf1753281d02ce4f #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:34:9 #0 92.24 8: 0xffff7f92f8ec - std::panicking::default_hook::{{closure}}::hb1ad0964de2ba130 #0 92.24 9: 0xffff7f92f6dc - std::panicking::default_hook::h7cdfed1a64e285f9 #0 92.24 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:288:9 #0 92.26 10: 0xffff806c6a64 - rustc_driver_impl[834bde73645836c3]::DEFAULT_HOOK::{closure#0}::{closure#0} #0 92.26 11: 0xffff7f92ff68 - as core::ops::function::Fn>::call::hed64ebfa41cbc02a #0 92.26 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1976:9 #0 92.27 12: 0xffff7f92ff68 - std::panicking::rust_panic_with_hook::h317e3aa4f76fcfc7 #0 92.27 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:695:13 #0 92.27 13: 0xffff851795e8 - std[ee9b954e96d984cc]::panicking::begin_panic::::{closure#0} #0 92.27 14: 0xffff8517723c - std[ee9b954e96d984cc]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> #0 92.27 15: 0xffff805a4c34 - std[ee9b954e96d984cc]::panicking::begin_panic:: #0 92.27 16: 0xffff852545e8 - ::bug::<&alloc[73ea3e3568c2066d]::string::String> #0 92.27 17: 0xffff85254298 - ::bug::<&alloc[73ea3e3568c2066d]::string::String> #0 92.27 18: 0xffff852198a0 - rustc_middle[8ab10741ae762805]::util::bug::opt_span_bug_fmt::::{closure#0} #0 92.27 19: 0xffff85217248 - rustc_middle[8ab10741ae762805]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} #0 92.27 20: 0xffff85217214 - rustc_middle[8ab10741ae762805]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> #0 92.27 21: 0xffff805a4ef4 - rustc_middle[8ab10741ae762805]::util::bug::bug_fmt #0 92.27 22: 0xffff851e7404 - ::normalize_generic_arg_after_erasing_regions #0 92.27 23: 0xffff851e7444 - >::fold_ty #0 92.27 24: 0xffff83783a30 - >, >::move_paths_for_fields::{closure#0}> as core[2d48004a85dc5565]::iter::traits::iterator::Iterator>::fold::<(), core[2d48004a85dc5565]::iter::traits::iterator::Iterator::for_each::call<(rustc_middle[8ab10741ae762805]::mir::syntax::Place, core[2d48004a85dc5565]::option::Option<()>), )>>::extend_trusted>, >::move_paths_for_fields::{closure#0}>>::{closure#0}>::{closure#0}> #0 92.27 25: 0xffff838b3d04 - )> as alloc[73ea3e3568c2066d]::vec::spec_from_iter::SpecFromIter<(rustc_middle[8ab10741ae762805]::mir::syntax::Place, core[2d48004a85dc5565]::option::Option<()>), core[2d48004a85dc5565]::iter::adapters::map::Map>, >::move_paths_for_fields::{closure#0}>>>::from_iter #0 92.27 26: 0xffff83790cdc - >::open_drop_for_adt #0 92.27 27: 0xffff83790648 - >::elaborate_drop #0 92.27 28: 0xffff838d8028 - rustc_mir_transform[2a96cee0d5989ce9]::shim::make_shim #0 92.27 29: 0xffff843fc124 - >>::with::::{closure#0}, rustc_middle[8ab10741ae762805]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[8ab10741ae762805]::query::erase::Erased<[u8; 8usize]>> #0 92.27 30: 0xffff8467a4cc - rustc_query_system[d43ab53be31e41e1]::query::plumbing::try_execute_query:: #0 92.27 31: 0xffff84511e78 - ::mir_shims #0 92.27 32: 0xffff852b8e24 - ::instance_mir #0 92.27 33: 0xffff838986ec - ::try_inlining #0 92.27 34: 0xffff83897fc4 - ::process_blocks #0 92.27 35: 0xffff838980dc - ::process_blocks #0 92.27 36: 0xffff83897a88 - ::run_pass #0 92.27 37: 0xffff838d23a4 - rustc_mir_transform[2a96cee0d5989ce9]::pass_manager::run_passes_inner #0 92.27 38: 0xffff83819ec4 - rustc_mir_transform[2a96cee0d5989ce9]::optimized_mir #0 92.28 39: 0xffff84607c04 - rustc_query_system[d43ab53be31e41e1]::query::plumbing::try_execute_query:: #0 92.28 40: 0xffff84508368 - ::optimized_mir #0 92.28 41: 0xffff84a03614 - ::encode_crate_root #0 92.28 42: 0xffff84a10ba4 - rustc_metadata[6fb9eab109fb1453]::rmeta::encoder::encode_metadata_impl #0 92.28 43: 0xffff849b2480 - rustc_data_structures[3d18d37d82609441]::sync::join:: #0 92.28 44: 0xffff84a103c4 - rustc_metadata[6fb9eab109fb1453]::rmeta::encoder::encode_metadata #0 92.28 45: 0xffff8499a980 - rustc_metadata[6fb9eab109fb1453]::fs::encode_and_write_metadata #0 92.28 46: 0xffff8078b2a0 - rustc_interface[7da19b7ad2a25e97]::passes::start_codegen #0 92.28 47: 0xffff80776d34 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[2d48004a85dc5565]::result::Result, rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>> #0 92.28 48: 0xffff8073fd58 - ::ongoing_codegen #0 92.28 49: 0xffff8069b230 - ::enter::, rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>> #0 92.28 50: 0xffff806d10f0 - rustc_span[566bd16bcf1e2cd5]::set_source_map::, rustc_interface[7da19b7ad2a25e97]::interface::run_compiler, rustc_driver_impl[834bde73645836c3]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> #0 92.29 51: 0xffff806799bc - >::set::, rustc_driver_impl[834bde73645836c3]::run_compiler::{closure#1}>::{closure#0}, core[2d48004a85dc5565]::result::Result<(), rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>> #0 92.29 52: 0xffff806d6464 - std[ee9b954e96d984cc]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[834bde73645836c3]::run_compiler::{closure#1}>::{closure#0}, core[2d48004a85dc5565]::result::Result<(), rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2d48004a85dc5565]::result::Result<(), rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>> #0 92.29 53: 0xffff806e3d1c - <::spawn_unchecked_, rustc_driver_impl[834bde73645836c3]::run_compiler::{closure#1}>::{closure#0}, core[2d48004a85dc5565]::result::Result<(), rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[2d48004a85dc5565]::result::Result<(), rustc_span[566bd16bcf1e2cd5]::ErrorGuaranteed>>::{closure#1} as core[2d48004a85dc5565]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} #0 92.29 54: 0xffff7f939620 - as core::ops::function::FnOnce>::call_once::h82ef39943f2999bd #0 92.29 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9 #0 92.29 55: 0xffff7f939620 - as core::ops::function::FnOnce>::call_once::hae7c2ed10f6de47e #0 92.29 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9 #0 92.29 56: 0xffff7f939620 - std::sys::unix::thread::Thread::new::thread_start::h5463bf79a61ca5d5 #0 92.29 at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys/unix/thread.rs:108:17 #0 92.29 57: 0xffff7f6b1648 - start_thread #0 92.29 58: 0xffff7f7e5c1c - #0 92.29 59: 0x0 - #0 92.29 #0 92.29 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 #0 92.29 #0 92.29 note: rustc 1.71.0-nightly (39c6804b9 2023-04-19) running on aarch64-unknown-linux-gnu #0 92.29 #0 92.29 note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no #0 92.29 #0 92.29 note: some of the compiler flags provided by cargo are hidden #0 92.29 #0 92.29 query stack during panic: #0 92.29 #0 [mir_shims] generating MIR shim for `core::ptr::drop_in_place` #0 92.29 #1 [optimized_mir] optimizing MIR for `vec::ops::::drop::{closure#0}` #0 92.29 end of query stack #0 92.34 error: could not compile `bitvec` (lib) #0 92.34 warning: build failed, waiting for other jobs to finish. ```

matthiaskrgr commented 1 year ago

@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?

pbdeuchler commented 1 year ago

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.

12101111 commented 1 year ago

I submit the ICE from bitvec to another issue: https://github.com/rust-lang/rust/issues/110682

pbdeuchler commented 1 year ago

I submit the ICE from bitvec to another issue: #110682

🫡

matthiaskrgr commented 1 year ago

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