rust-lang / rust

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

ICE when Running `clippy` #130057

Open HTGAzureX1212 opened 1 week ago

HTGAzureX1212 commented 1 week ago

Code

// this seem to happen to various libraries

Meta

rustc --version --verbose:

rustc 1.83.0-nightly (26b5599e4 2024-09-06)
binary: rustc
commit-hash: 26b5599e4d6ed2b45152c60493c1788c0a27533d
commit-date: 2024-09-06
host: aarch64-apple-darwin
release: 1.83.0-nightly
LLVM version: 19.1.0

Error output

thread 'rustc' panicked at /rustc/26b5599e4d6ed2b45152c60493c1788c0a27533d/compiler/rustc_type_ir/src/search_graph/global_cache.rs:62:13:
assertion failed: prev.is_none()
Backtrace

``` stack backtrace: 0: 0x111d90a9c - ::fmt::hda72d0b3de12f065 1: 0x10f1877bc - core::fmt::write::h8bfa502f5cc4dda3 2: 0x111d84978 - std::io::Write::write_fmt::h17fbac587145cfed 3: 0x111d9095c - std::sys::backtrace::BacktraceLock::print::h58377318c506a3c7 4: 0x111d92dd0 - std::panicking::default_hook::{{closure}}::h96f4a7be6d90142e 5: 0x111d92c38 - std::panicking::default_hook::hd79886ee3087935e 6: 0x10fd3c350 - as core[94ad9d4d908f6461]::ops::function::Fn<(&dyn for<'a, 'b> core[94ad9d4d908f6461]::ops::function::Fn<(&'a std[ad387e49fc9cc2b]::panic::PanicHookInfo<'b>,), Output = ()> + core[94ad9d4d908f6461]::marker::Send + core[94ad9d4d908f6461]::marker::Sync, &std[ad387e49fc9cc2b]::panic::PanicHookInfo)>>::call 7: 0x111d93648 - std::panicking::rust_panic_with_hook::hbda367e9987bb323 8: 0x111d9329c - std::panicking::begin_panic_handler::{{closure}}::hd113d89f37c6444e 9: 0x111d90f44 - std::sys::backtrace::__rust_end_short_backtrace::h6dc3541121714390 10: 0x111d92f98 - _rust_begin_unwind 11: 0x11440d824 - core::panicking::panic_fmt::ha4ed2ed3e5df3b69 12: 0x11440d890 - core::panicking::panic::h630e1a4f566210b8 13: 0x111a57798 - >::insert 14: 0x111b85750 - ::with_global_cache::<(), , rustc_middle[1887ba0865664dfc]::ty::context::TyCtxt>>::insert_global_cache::{closure#0}> 15: 0x111a3da0c - , rustc_middle[1887ba0865664dfc]::ty::context::TyCtxt>>::with_new_goal::<>::evaluate_canonical_goal::{closure#0}::{closure#0}::{closure#0}> 16: 0x1119d0c50 - >::evaluate_goal_raw 17: 0x1119bd1b4 - >::enter_root::, ::evaluate_root_goal::{closure#0}> 18: 0x111b1a628 - as rustc_infer[a3beb9df81eadba]::traits::engine::TraitEngine>::select_where_possible 19: 0x111b164f4 - as rustc_infer[a3beb9df81eadba]::traits::engine::TraitEngine>::select_all_or_error 20: 0x111ac24b4 - rustc_trait_selection[262c305b222e0f60]::traits::coherence::overlap 21: 0x111ac2074 - rustc_trait_selection[262c305b222e0f60]::traits::coherence::overlapping_impls 22: 0x111a5bee0 - ::insert 23: 0x111a5cba0 - ::insert 24: 0x111b21968 - rustc_trait_selection[262c305b222e0f60]::traits::specialize::specialization_graph_provider 25: 0x11131592c - rustc_query_impl[e449e3aba67804d2]::plumbing::__rust_begin_short_backtrace::> 26: 0x11135d874 - >::call_once 27: 0x11122853c - rustc_query_system[788c67797adc2256]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e449e3aba67804d2]::plumbing::QueryCtxt, false> 28: 0x1113d25cc - rustc_query_impl[e449e3aba67804d2]::query_impl::specialization_graph_of::get_query_non_incr::__rust_end_short_backtrace 29: 0x10ffbc400 - rustc_hir_analysis[28256a7b954b6e07]::coherence::coherent_trait 30: 0x111310568 - rustc_query_impl[e449e3aba67804d2]::plumbing::__rust_begin_short_backtrace::> 31: 0x111392f30 - >::call_once 32: 0x11121a840 - rustc_query_system[788c67797adc2256]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e449e3aba67804d2]::plumbing::QueryCtxt, false> 33: 0x1113ca114 - rustc_query_impl[e449e3aba67804d2]::query_impl::coherent_trait::get_query_non_incr::__rust_end_short_backtrace 34: 0x10ffa6a30 - rustc_middle[1887ba0865664dfc]::query::plumbing::query_ensure_error_guaranteed::>, ()> 35: 0x10ffc252c - rustc_hir_analysis[28256a7b954b6e07]::check::wfcheck::check_item 36: 0x10ffb4fec - rustc_hir_analysis[28256a7b954b6e07]::check::wfcheck::check_well_formed 37: 0x111312504 - rustc_query_impl[e449e3aba67804d2]::plumbing::__rust_begin_short_backtrace::> 38: 0x111393bac - >::call_once 39: 0x1112aa9c8 - rustc_query_system[788c67797adc2256]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e449e3aba67804d2]::plumbing::QueryCtxt, false> 40: 0x1113d9140 - rustc_query_impl[e449e3aba67804d2]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace 41: 0x1100e8690 - rustc_middle[1887ba0865664dfc]::query::plumbing::query_ensure_error_guaranteed::>, ()> 42: 0x1100decc0 - ::run::, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ImplItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_impl_items::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> 43: 0x110167314 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 44: 0x11013f5f4 - , rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}>::{closure#0}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>>::run_inline 45: 0x110072448 - rayon_core[9a15260e3976e105]::join::join_context::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#0}, rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0} 46: 0x110167414 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 47: 0x11013f5f4 - , rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}>::{closure#0}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>>::run_inline 48: 0x110072448 - rayon_core[9a15260e3976e105]::join::join_context::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#0}, rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0} 49: 0x110167414 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 50: 0x11013f5f4 - , rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}>::{closure#0}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>>::run_inline 51: 0x110072448 - rayon_core[9a15260e3976e105]::join::join_context::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#0}, rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0} 52: 0x110167414 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 53: 0x110072338 - rayon_core[9a15260e3976e105]::join::join_context::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#0}, rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0} 54: 0x110167414 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 55: 0x110072338 - rayon_core[9a15260e3976e105]::join::join_context::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#0}, rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0} 56: 0x110167414 - rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper::, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>> 57: 0x1101428a0 - , rayon[e571a3c0d03016c4]::iter::plumbing::bridge_producer_consumer::helper, rayon[e571a3c0d03016c4]::iter::filter_map::FilterMapConsumer>::and<()>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#1}>, rustc_data_structures[8428aac10069dc79]::sync::parallel::enabled::try_par_for_each_in<&[rustc_hir[12e471aba44b55e7]::hir::ItemId], rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed, ::par_items::{closure#0}>::{closure#0}::{closure#0}>>::{closure#1}>::{closure#0}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>> as rayon_core[9a15260e3976e105]::job::Job>::execute 58: 0x11441e500 - ::wait_until_cold 59: 0x10f2fc874 - ::run 60: 0x10fd17bac - rustc_span[7c9ced27a73e4be5]::set_session_globals_then::<(), rustc_interface[92bcb4b7e2f9024e]::util::run_in_thread_pool_with_globals, rustc_driver_impl[f7ca03732884a872]::run_compiler::{closure#0}>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}::{closure#0}> 61: 0x10fd38c24 - <::spawn<::build_scoped, rustc_driver_impl[f7ca03732884a872]::run_compiler::{closure#0}>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[92bcb4b7e2f9024e]::util::run_in_thread_pool_with_globals, rustc_driver_impl[f7ca03732884a872]::run_compiler::{closure#0}>::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[94ad9d4d908f6461]::result::Result<(), rustc_span[7c9ced27a73e4be5]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[94ad9d4d908f6461]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 62: 0x10fd4c498 - std[ad387e49fc9cc2b]::sys::backtrace::__rust_begin_short_backtrace:: + core[94ad9d4d908f6461]::marker::Send>, ()> 63: 0x10fd4c9c8 - <::spawn_unchecked_ + core[94ad9d4d908f6461]::marker::Send>, ()>::{closure#1} as core[94ad9d4d908f6461]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 64: 0x111d9dc54 - std::sys::pal::unix::thread::Thread::new::thread_start::hd56dfb63fbabbc24 65: 0x19c181f94 - __pthread_joiner_wake 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/htgazurex1212/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-types-0.2.7/rustc-ice-2024-09-07T03_24_21-65448.txt` to your bug report note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C target-cpu=native -Z macro-backtrace -Z threads=8 -Z validate-mir note: some of the compiler flags provided by cargo are hidden query stack during panic: #0 [specialization_graph_of] building specialization graph of trait `core::cmp::PartialEq` #1 [coherent_trait] coherence checking all impls of trait `core::cmp::PartialEq` end of query stack error: could not compile `postgres-types` (lib) ```

Please also kindly note that the same issue has also been reproduced on x86_64-unknown-linux-gnu (see logs):

rustc 1.83.0-nightly (26b5599e4 2024-09-06)
binary: rustc
commit-hash: 26b5599e4d6ed2b45152c60493c1788c0a27533d
commit-date: 2024-09-06
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0

This issue only seems to surface when running cargo clippy. A normal cargo build seems to be unaffected.

HTGAzureX1212 commented 1 week ago

requested file stored on filesystem: rustc-ice-2024-09-07T03_24_21-65448.txt

matthiaskrgr commented 1 week ago

not using -Zthreads will fix this

fmease commented 1 week ago

cc #129112

SparrowLii commented 6 days ago

this should be fixed by #130094