Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE in rustc 1.61.0-nightly (52b34550a 2022-03-15) running on x86_64-unknown-linux-gnu #95001

Closed
bsodmike opened this issue Mar 16, 2022 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@bsodmike
Copy link

Rust: rustc 1.61.0-nightly (52b34550a 2022-03-15) running on x86_64-unknown-linux-gnu

This was running in a CI job, the most I have are the following details:

Compiling sqlx-core v0.5.10
thread 'rustc' panicked at 'assertion failed: !value.has_escaping_bound_vars()', /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/compiler/rustc_middle/src/ty/sty.rs:1089:9
stack backtrace:
   0:     0x7f7870f0c9bd - std::backtrace_rs::backtrace::libunwind::trace::h4630fb3ea0978244
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f7870f0c9bd - std::backtrace_rs::backtrace::trace_unsynchronized::hf18a5a72046346f1
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f7870f0c9bd - std::sys_common::backtrace::_print_fmt::hf749d0aa30a58698
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f7870f0c9bd - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h9b8410cdaf24e94d
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f7870f6649c - core::fmt::write::h4628ef2f511cb2a1
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/core/src/fmt/mod.rs:1190:17
   5:     0x7f7870efdf41 - std::io::Write::write_fmt::h0500ef668fc0f1ca
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/io/mod.rs:1655:15
   6:     0x7f7870f0fa35 - std::sys_common::backtrace::_print::h0bef26ee54194799
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f7870f0fa35 - std::sys_common::backtrace::print::hd94733c6e7c5f533
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f7870f0fa35 - std::panicking::default_hook::{{closure}}::heee50b6b48941df3
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:295:22
   9:     0x7f7870f0f6e9 - std::panicking::default_hook::hfbe8348e52a92768
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:314:9
  10:     0x7f78716a9291 - rustc_driver[689e96f3a05e42de]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f785d28b453 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf6742bb05b768df7
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/alloc/src/boxed.rs:1867:9
  12:     0x7f785d28ffbc - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::h3d40097bc245e86b
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/proc_macro/src/bridge/client.rs:319:21
  13:     0x7f785d2a0130 - std::panicking::update_hook::{{closure}}::h8e0ce5dfd8df1aba
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:258:41
  14:     0x7f7870f10180 - std::panicking::rust_panic_with_hook::h123c71abd7d4640f
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:702:17
  15:     0x7f7870f0ff79 - std::panicking::begin_panic_handler::{{closure}}::h4dff286ac3d07322
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:586:13
  16:     0x7f7870f0ce74 - std::sys_common::backtrace::__rust_end_short_backtrace::h1350a023dcdb3181
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys_common/backtrace.rs:138:18
  17:     0x7f7870f0fce9 - rust_begin_unwind
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/panicking.rs:584:5
  18:     0x7f7870ed3c73 - core::panicking::panic_fmt::hdc1c83fe453b97e2
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/core/src/panicking.rs:143:14
  19:     0x7f7870ed3b3d - core::panicking::panic::hb1922f21f0c33350
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/core/src/panicking.rs:48:5
  20:     0x7f78732dc31f - rustc_trait_selection[ca55f1b2036c5dee]::traits::type_known_to_meet_bound_modulo_regions
  21:     0x7f7872b74df5 - <rustc_infer[769fe71a64f3976f]::infer::InferCtxtBuilder>::enter::<bool, rustc_ty_utils[89a13c48e2035fd7]::common_traits::is_item_raw::{closure#0}>
  22:     0x7f787382b04e - rustc_ty_utils[89a13c48e2035fd7]::common_traits::is_item_raw
  23:     0x7f7872f54cdc - rustc_query_system[ccda753483a689aa]::query::plumbing::try_execute_query::<rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt, rustc_query_system[ccda753483a689aa]::query::caches::DefaultCache<rustc_middle[f9f9a681d[394](..runs/5568287437?check_suite_focus=true#step:10:394)29ab]::ty::ParamEnvAnd<rustc_middle[f9f9a681d39429ab]::ty::Ty>, bool>>
  24:     0x7f7873a2033b - rustc_query_system[ccda753483a689aa]::query::plumbing::get_query::<rustc_query_impl[7c11a1a95cade8b5]::queries::is_sized_raw, rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt>
  25:     0x7f7873484e55 - <rustc_middle[f9f9a681d39429ab]::ty::Ty>::is_sized
  26:     0x7f787340ed8e - <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached
  27:     0x7f7873425d06 - rustc_middle[f9f9a681d39429ab]::ty::layout::layout_of
  28:     0x7f7872fb503a - rustc_query_system[ccda753483a689aa]::query::plumbing::get_query::<rustc_query_impl[7c11a1a95cade8b5]::queries::layout_of, rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt>
  29:     0x7f7873052f60 - <rustc_query_impl[7c11a1a95cade8b5]::Queries as rustc_middle[f9f9a681d39429ab]::ty::query::QueryEngine>::layout_of
  30:     0x7f787343128b - <alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::FieldDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  31:     0x7f787343071c - <alloc[2b3e5422ad2b1e63]::vec::Vec<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::VariantDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  32:     0x7f787340e980 - <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached
  33:     0x7f7873425d06 - rustc_middle[f9f9a681d39429ab]::ty::layout::layout_of
  34:     0x7f7872fb503a - rustc_query_system[ccda753483a689aa]::query::plumbing::get_query::<rustc_query_impl[7c11a1a95cade8b5]::queries::layout_of, rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt>
  35:     0x7f7873052f60 - <rustc_query_impl[7c11a1a95cade8b5]::Queries as rustc_middle[f9f9a681d39429ab]::ty::query::QueryEngine>::layout_of
  36:     0x7f787343128b - <alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::FieldDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  37:     0x7f787343071c - <alloc[2b3e5422ad2b1e63]::vec::Vec<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::VariantDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  38:     0x7f787340e980 - <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached
  39:     0x7f7873425d06 - rustc_middle[f9f9a681d39429ab]::ty::layout::layout_of
  40:     0x7f7872fb503a - rustc_query_system[ccda753483a689aa]::query::plumbing::get_query::<rustc_query_impl[7c11a1a95cade8b5]::queries::layout_of, rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt>
  41:     0x7f7873052f60 - <rustc_query_impl[7c11a1a95cade8b5]::Queries as rustc_middle[f9f9a681d39429ab]::ty::query::QueryEngine>::layout_of
  42:     0x7f787343128b - <alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::FieldDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  43:     0x7f787343071c - <alloc[2b3e5422ad2b1e63]::vec::Vec<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>> as alloc[2b3e5422ad2b1e63]::vec::spec_from_iter::SpecFromIter<alloc[2b3e5422ad2b1e63]::vec::Vec<rustc_target[5665e444836c2cfe]::abi::TyAndLayout<rustc_middle[f9f9a681d39429ab]::ty::Ty>>, core[2748ca54e7081f8b]::iter::adapters::GenericShunt<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::slice::iter::Iter<rustc_middle[f9f9a681d39429ab]::ty::VariantDef>, <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::convert::Infallible, rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutError>>>>::from_iter
  44:     0x7f787340e980 - <rustc_middle[f9f9a681d39429ab]::ty::layout::LayoutCx<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt>>::layout_of_uncached
  45:     0x7f7873425d06 - rustc_middle[f9f9a681d39429ab]::ty::layout::layout_of
  46:     0x7f7872fb503a - rustc_query_system[ccda753483a689aa]::query::plumbing::get_query::<rustc_query_impl[7c11a1a95cade8b5]::queries::layout_of, rustc_query_impl[7c11a1a95cade8b5]::plumbing::QueryCtxt>
  47:     0x7f7873052f60 - <rustc_query_impl[7c11a1a95cade8b5]::Queries as rustc_middle[f9f9a681d39429ab]::ty::query::QueryEngine>::layout_of
  48:     0x7f7873059555 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_debuginfo_type_name
  49:     0x7f7873058cd6 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_debuginfo_type_name
  50:     0x7f787305bbc3 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_generic_params_internal
  51:     0x7f7873057a83 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_debuginfo_type_name
  52:     0x7f787305bbc3 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_generic_params_internal
  53:     0x7f7873057a83 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::push_debuginfo_type_name
  54:     0x7f78730574e0 - rustc_codegen_ssa[8aeb056d12bc5476]::debuginfo::type_names::compute_debuginfo_type_name
  55:     0x7f78735859ee - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node
  56:     0x7f78735be91f - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_type_di_node
  57:     0x7f787290449a - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  58:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  59:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  60:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  61:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  62:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  63:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  64:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  65:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  66:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  67:     0x7f7872902f5c - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_pointer_or_reference_di_node
  68:     0x7f7872904414 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  69:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  70:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  71:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  72:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  73:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  74:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  75:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  76:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  77:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  78:     0x7f7872932739 - <smallvec[cfd7c96d45c440de]::SmallVec<[&rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata; 16usize]> as core[2748ca54e7081f8b]::iter::traits::collect::Extend<&rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata>>::extend::<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::ops::range::Range<usize>, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#0}::{closure#0}>>
  79:     0x7f78728c6f34 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#1}>
  80:     0x7f78728dfb8a - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<(rustc_target[5665e444836c2cfe]::abi::VariantIdx,)>>::call_once
  81:     0x7f7872931f9c - <smallvec[cfd7c96d45c440de]::SmallVec<[rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::VariantMemberInfo; 16usize]> as core[2748ca54e7081f8b]::iter::traits::collect::Extend<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::VariantMemberInfo>>::extend::<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::ops::range::Range<rustc_target[5665e444836c2cfe]::abi::VariantIdx>, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}::{closure#0}>>
  82:     0x7f78735680aa - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}, for<'a, 'b, 'c> fn(&'a rustc_codegen_llvm[718acca89ba432ab]::context::CodegenCx<'b, 'c>) -> smallvec[cfd7c96d45c440de]::SmallVec<[&'b rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata; 16usize]>>
  83:     0x7f7873585a72 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node
  84:     0x7f78735be91f - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_type_di_node
  85:     0x7f787290449a - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  86:     0x7f7872900000 - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<((usize, &rustc_middle[f9f9a681d39429ab]::ty::FieldDef),)>>::call_once
  87:     0x7f78728c5d5b - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::build_struct_type_di_node::{closure#1}>
  88:     0x7f7872904155 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  89:     0x7f7872932739 - <smallvec[cfd7c96d45c440de]::SmallVec<[&rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata; 16usize]> as core[2748ca54e7081f8b]::iter::traits::collect::Extend<&rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata>>::extend::<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::ops::range::Range<usize>, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#0}::{closure#0}>>
  90:     0x7f78728c6f34 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#0}, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_variant_struct_type_di_node::{closure#1}>
  91:     0x7f78728dfb8a - <&mut rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}::{closure#0} as core[2748ca54e7081f8b]::ops::function::FnOnce<(rustc_target[5665e444836c2cfe]::abi::VariantIdx,)>>::call_once
  92:     0x7f7872931f9c - <smallvec[cfd7c96d45c440de]::SmallVec<[rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::VariantMemberInfo; 16usize]> as core[2748ca54e7081f8b]::iter::traits::collect::Extend<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::VariantMemberInfo>>::extend::<core[2748ca54e7081f8b]::iter::adapters::map::Map<core[2748ca54e7081f8b]::ops::range::Range<rustc_target[5665e444836c2cfe]::abi::VariantIdx>, rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}::{closure#0}>>
  93:     0x7f78735680aa - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_map::build_type_with_children::<rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node::{closure#0}, for<'a, 'b, 'c> fn(&'a rustc_codegen_llvm[718acca89ba432ab]::context::CodegenCx<'b, 'c>) -> smallvec[cfd7c96d45c440de]::SmallVec<[&'b rustc_codegen_llvm[718acca89ba432ab]::llvm_::ffi::Metadata; 16usize]>>
  94:     0x7f7873585a72 - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::native::build_enum_type_di_node
  95:     0x7f78735be91f - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::enums::build_enum_type_di_node
  96:     0x7f787290449a - rustc_codegen_llvm[718acca89ba432ab]::debuginfo::metadata::type_di_node
  97:     0x7f78728e5d7e - <rustc_codegen_llvm[718acca89ba432ab]::context::CodegenCx as rustc_codegen_ssa[8aeb056d12bc5476]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn
  98:     0x7f78729119b2 - rustc_codegen_ssa[8aeb056d12bc5476]::mir::codegen_mir::<rustc_codegen_llvm[718acca89ba432ab]::builder::Builder>
  99:     0x7f78728d0324 - rustc_codegen_llvm[718acca89ba432ab]::base::compile_codegen_unit::module_codegen
 100:     0x7f787358eb66 - <rustc_query_system[ccda753483a689aa]::dep_graph::graph::DepGraph<rustc_middle[f9f9a681d39429ab]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[f9f9a681d39429ab]::ty::context::TyCtxt, rustc_span[71d6b32be7db1b29]::symbol::Symbol, rustc_codegen_ssa[8aeb056d12bc5476]::ModuleCodegen<rustc_codegen_llvm[718acca89ba432ab]::ModuleLlvm>>
 101:     0x7f787357d889 - rustc_codegen_llvm[718acca89ba432ab]::base::compile_codegen_unit
 102:     0x7f787356bacc - <rustc_codegen_llvm[718acca89ba432ab]::LlvmCodegenBackend as rustc_codegen_ssa[8aeb056d12bc5476]::traits::backend::CodegenBackend>::codegen_crate
 103:     0x7f787354ce07 - <rustc_session[b6943ffe4755727e]::session::Session>::time::<alloc[2b3e5422ad2b1e63]::boxed::Box<dyn core[2748ca54e7081f8b]::any::Any>, rustc_interface[ed5ba2b564642d99]::passes::start_codegen::{closure#0}>
 104:     0x7f787353b878 - <rustc_interface[ed5ba2b564642d99]::passes::QueryContext>::enter::<<rustc_interface[ed5ba2b564642d99]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2748ca54e7081f8b]::result::Result<alloc[2b3e5422ad2b1e63]::boxed::Box<dyn core[2748ca54e7081f8b]::any::Any>, rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>
 105:     0x7f787353424f - <rustc_interface[ed5ba2b564642d99]::queries::Queries>::ongoing_codegen
 106:     0x7f78734f7d6b - <rustc_interface[ed5ba2b564642d99]::interface::Compiler>::enter::<rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}::{closure#2}, core[2748ca54e7081f8b]::result::Result<core[2748ca54e7081f8b]::option::Option<rustc_interface[ed5ba2b564642d99]::queries::Linker>, rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>
 107:     0x7f787350addf - rustc_span[71d6b32be7db1b29]::with_source_map::<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_interface[ed5ba2b564642d99]::interface::create_compiler_and_run<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}>::{closure#1}>
 108:     0x7f787350a5e4 - rustc_interface[ed5ba2b564642d99]::interface::create_compiler_and_run::<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}>
 109:     0x7f78734f5762 - <scoped_tls[a18bab56a8f82071]::ScopedKey<rustc_span[71d6b32be7db1b29]::SessionGlobals>>::set::<rustc_interface[ed5ba2b564642d99]::interface::run_compiler<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}>::{closure#0}, core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>
 110:     0x7f78734f3c1f - std[14bdc88f27c1cbe3]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[ed5ba2b564642d99]::util::run_in_thread_pool_with_globals<rustc_interface[ed5ba2b564642d99]::interface::run_compiler<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}>::{closure#0}, core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>::{closure#0}, core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>
 111:     0x7f787350bd62 - <<std[14bdc88f27c1cbe3]::thread::Builder>::spawn_unchecked_<rustc_interface[ed5ba2b564642d99]::util::run_in_thread_pool_with_globals<rustc_interface[ed5ba2b564642d99]::interface::run_compiler<core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>, rustc_driver[689e96f3a05e42de]::run_compiler::{closure#1}>::{closure#0}, core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>::{closure#0}, core[2748ca54e7081f8b]::result::Result<(), rustc_errors[31a36e023e39c2ba]::ErrorGuaranteed>>::{closure#1} as core[2748ca54e7081f8b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 112:     0x7f7870f1a313 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hd90ad1cbe107fac7
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/alloc/src/boxed.rs:1853:9
 113:     0x7f7870f1a313 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h47f9929b43ba9f68
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/alloc/src/boxed.rs:1853:9
 114:     0x7f7870f1a313 - std::sys::unix::thread::Thread::new::thread_start::hf5007aed9e46726b
                               at /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/library/std/src/sys/unix/thread.rs:108:17
 115:     0x7f7870e[406](../runs/5568287437?check_suite_focus=true#step:10:406)09 - start_thread
 116:     0x7f7870d5a293 - clone
 117:                0x0 - <unknown>

error: internal compiler error: unexpected panic
Error: internal compiler error: unexpected panic
note: 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.61.0-nightly (52b3[455](../runs/5568287437?check_suite_focus=true#step:10:455)0a 2022-03-15) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [is_sized_raw] computing whether `dyn core::future::future::Future<Output = core::result::Result<(), error::Error>> + core::marker::Send` is `Sized`
#1 [layout_of] computing layout of `*const dyn core::future::future::Future<Output = core::result::Result<(), error::Error>> + core::marker::Send`
#2 [layout_of] computing layout of `core::ptr::unique::Unique<dyn core::future::future::Future<Output = core::result::Result<(), error::Error>> + core::marker::Send>`
#3 [layout_of] computing layout of `alloc::boxed::Box<dyn core::future::future::Future<Output = core::result::Result<(), error::Error>> + core::marker::Send>`
#4 [layout_of] computing layout of `core::pin::Pin<alloc::boxed::Box<dyn core::future::future::Future<Output = core::result::Result<(), error::Error>> + core::marker::Send>>`
end of query stack
error: could not compile `sqlx-core`
Error: warning: build failed, waiting for other jobs to finish...
error: build failed
@bsodmike bsodmike added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 16, 2022
@ErikBjare
Copy link

ErikBjare commented Mar 16, 2022

I've stumbled upon this too (when building rocket).

Seems to be a regression in the latest nightly (bug not present in 2022-03-14), see ActivityWatch/aw-server-rust#269 for details and logs.

@bsodmike
Copy link
Author

Thanks @ErikBjare cc @chrisabruce

@lqd
Copy link
Member

lqd commented Mar 16, 2022

This looks like a duplicate of #94998, so I'll close this issue as such, and we can have all the information in the other one. Thanks a bunch for opening an issue!

@lqd lqd closed this as completed Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants