Skip to content

rust bootstrap ICE with debuginfo=2 #93866

Closed as not planned
Closed as not planned
@pnkfelix

Description

@pnkfelix

I tried a bootstrap with this config.toml, atop rust commit 502d6aa:

changelog-seen = 2
[rust]
optimize = true
debug = true

debuginfo-level = 2

then I ran this in a

time x.py clean && time x.py build && time x.py test

I expected to see this happen: Successful bootstrap

Instead, this happened: ICE from compiler. (I think its the freshly built compiler, not the beta one.)

thread 'rustc' panicked at 'fat_pointer_kind() - Encountered unexpected `pointee_ty`: (bool, dyn std::fmt::Display)', compiler/rustc_codegen_llvm/src/debuginfo/utils.rs:102:13
Backtrace

  Compiling core v0.0.0 (/media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core)
thread 'rustc' panicked at 'fat_pointer_kind() - Encountered unexpected `pointee_ty`: (bool, dyn std::fmt::Display)', compiler/rustc_codegen_llvm/src/debuginfo/utils.rs:102:13
stack backtrace:
   0:     0x7ff4b1ca6a9b - std::backtrace_rs::backtrace::libunwind::trace::h7be589ea84d78ccb
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7ff4b1ca6a9b - std::backtrace_rs::backtrace::trace_unsynchronized::hacacbb77fe8e9349
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7ff4b1ca6a9b - std::sys_common::backtrace::_print_fmt::hf8665e188d70bed1
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7ff4b1ca6a9b - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1dcd155849bc98cf
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7ff4b1d10ece - core::fmt::write::hdac1ddaec9404324
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/fmt/mod.rs:1190:17
   5:     0x7ff4b1c713d1 - std::io::Write::write_fmt::hd7a68350b4327f1b
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/io/mod.rs:1657:15
   6:     0x7ff4b1ca68cb - std::sys_common::backtrace::_print::hbf7b7a88628e4614
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7ff4b1ca68cb - std::sys_common::backtrace::print::h71dcc4ba6a85d390
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7ff4b1c85bb4 - std::panicking::default_hook::{{closure}}::h960542327b89b71b
   9:     0x7ff4b1c85772 - std::panicking::default_hook::h0b87d7f342c043fc
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:314:9
  10:     0x7ff4b2d2bfaa - <alloc[234d9d29e64d0e8b]::boxed::Box<dyn for<'a, 'b> core[2c93cc726be6ffee]::ops::function::Fn<(&'a core[2c93cc726be6ffee]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[2c93cc726be6ffee]::marker::Send + core[2c93cc726be6ffee]::marker::Sync> as core[2c93cc726be6ffee]::ops::function::Fn<(&core[2c93cc726be6ffee]::panic::panic_info::PanicInfo,)>>::call
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1868:9
  11:     0x7ff4b2d2bfaa - rustc_driver[696b8639a901568d]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:1167:13
  12:     0x7ff4b1c86374 - std::panicking::rust_panic_with_hook::hf61b0da4f2724229
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:702:17
  13:     0x7ff4b1ca6f87 - std::panicking::begin_panic_handler::{{closure}}::h6cc9f51b636e0e55
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:588:13
  14:     0x7ff4b1ca6bc4 - std::sys_common::backtrace::__rust_end_short_backtrace::hd258c90a1d7b0549
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:138:18
  15:     0x7ff4b1c85d62 - rust_begin_unwind
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:584:5
  16:     0x7ff4b1c3d313 - core::panicking::panic_fmt::h96672f910e11dfd0
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/panicking.rs:143:14
  17:     0x7ff4b2fbf2ff - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::utils::fat_pointer_kind
  18:     0x7ff4b2feecc0 - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::metadata::pointer_or_reference_metadata
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs:447:39
  19:     0x7ff4b2feff8e - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::metadata::type_metadata
  20:     0x7ff4b309627c - <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:443:63
  21:     0x7ff4b309627c - core[2c93cc726be6ffee]::iter::adapters::map::map_fold::<&rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>, core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, (), <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}, core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, <alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}>::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/adapters/map.rs:84:28
  22:     0x7ff4b309627c - <core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>> as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::fold::<(), core[2c93cc726be6ffee]::iter::adapters::map::map_fold<&rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>, core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, (), <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}, core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, <alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}>::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/traits/iterator.rs:2203:21
  23:     0x7ff4b309627c - <core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}> as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::fold::<(), core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, <alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/adapters/map.rs:124:9
  24:     0x7ff4b309627c - <core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}> as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::for_each::<<alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/traits/iterator.rs:772:9
  25:     0x7ff4b309627c - <alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/vec/spec_extend.rs:40:17
  26:     0x7ff4b309627c - <alloc[234d9d29e64d0e8b]::vec::Vec<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>> as core[2c93cc726be6ffee]::iter::traits::collect::Extend<core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>>>::extend::<core[2c93cc726be6ffee]::iter::adapters::map::Map<core[2c93cc726be6ffee]::slice::iter::Iter<rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>>, <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature::{closure#1}>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/vec/mod.rs:2618:9
  27:     0x7ff4b309627c - <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:442:17
  28:     0x7ff4b2f9c4a3 - <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:330:32
  29:     0x7ff4b313d074 - <rustc_codegen_llvm[800b62df817f1a66]::context::CodegenCx as rustc_codegen_ssa[e361a97867a928d7]::traits::debuginfo::DebugInfoMethods>::create_function_debug_context
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:308:13
  30:     0x7ff4b313d074 - rustc_codegen_ssa[e361a97867a928d7]::mir::codegen_mir::<rustc_codegen_llvm[800b62df817f1a66]::builder::Builder>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/mir/mod.rs:147:25
  31:     0x7ff4b2f92056 - rustc_codegen_ssa[e361a97867a928d7]::base::codegen_instance::<rustc_codegen_llvm[800b62df817f1a66]::builder::Builder>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/base.rs:361:5
  32:     0x7ff4b30d695b - <rustc_middle[b3cc987cefcbf362]::mir::mono::MonoItem as rustc_codegen_ssa[e361a97867a928d7]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[800b62df817f1a66]::builder::Builder>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/mono_item.rs:69:17
  33:     0x7ff4b3013f8b - rustc_codegen_llvm[800b62df817f1a66]::base::compile_codegen_unit::module_codegen
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/base.rs:92:17
  34:     0x7ff4b2fe54d7 - <rustc_query_system[e8f80d766dd37798]::dep_graph::graph::DepGraph<rustc_middle[b3cc987cefcbf362]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[b3cc987cefcbf362]::ty::context::TyCtxt, rustc_span[b0923153a3d20a7e]::symbol::Symbol, rustc_codegen_ssa[e361a97867a928d7]::ModuleCodegen<rustc_codegen_llvm[800b62df817f1a66]::ModuleLlvm>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_query_system/src/dep_graph/graph.rs:280:14
  35:     0x7ff4b3013931 - rustc_codegen_llvm[800b62df817f1a66]::base::compile_codegen_unit
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/base.rs:62:23
  36:     0x7ff4b2f94cf9 - <rustc_codegen_llvm[800b62df817f1a66]::LlvmCodegenBackend as rustc_codegen_ssa[e361a97867a928d7]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/lib.rs:119:9
  37:     0x7ff4b2f94cf9 - rustc_codegen_ssa[e361a97867a928d7]::base::codegen_crate::<rustc_codegen_llvm[800b62df817f1a66]::LlvmCodegenBackend>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/base.rs:684:38
  38:     0x7ff4b30498e3 - <rustc_codegen_llvm[800b62df817f1a66]::LlvmCodegenBackend as rustc_codegen_ssa[e361a97867a928d7]::traits::backend::CodegenBackend>::codegen_crate
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/lib.rs:329:18
  39:     0x7ff4b2e89588 - rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:1107:9
  40:     0x7ff4b2e89588 - <rustc_data_structures[1ddc1fe35ab83b3b]::profiling::VerboseTimingGuard>::run::<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_data_structures/src/profiling.rs:644:9
  41:     0x7ff4b2e89588 - <rustc_session[29758d0a0e0d6976]::session::Session>::time::<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_session/src/utils.rs:16:9
  42:     0x7ff4b2f3e7da - rustc_interface[7567e2be895364c9]::passes::start_codegen
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:1106:19
  43:     0x7ff4b2f3e7da - <rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:253:20
  44:     0x7ff4b2f3e7da - <rustc_interface[7567e2be895364c9]::passes::QueryContext>::enter::<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:834:42
  45:     0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::enter_context::<<rustc_interface[7567e2be895364c9]::passes::QueryContext>::enter<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1776:50
  46:     0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::set_tlv::<rustc_middle[b3cc987cefcbf362]::ty::context::tls::enter_context<<rustc_interface[7567e2be895364c9]::passes::QueryContext>::enter<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1760:9
  47:     0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::enter_context::<<rustc_interface[7567e2be895364c9]::passes::QueryContext>::enter<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1776:9
  48:     0x7ff4b2f3e7da - <rustc_interface[7567e2be895364c9]::passes::QueryContext>::enter::<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>, rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:834:9
  49:     0x7ff4b2f0c9ae - <rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:244:13
  50:     0x7ff4b2f0c9ae - <rustc_interface[7567e2be895364c9]::queries::Query<alloc[234d9d29e64d0e8b]::boxed::Box<dyn core[2c93cc726be6ffee]::any::Any>>>::compute::<<rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:37:28
  51:     0x7ff4b2f0c9ae - <rustc_interface[7567e2be895364c9]::queries::Queries>::ongoing_codegen
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:242:9
  52:     0x7ff4b2cbd863 - rustc_driver[696b8639a901568d]::run_compiler::{closure#1}::{closure#2}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:411:13
  53:     0x7ff4b2cbd863 - <rustc_interface[7567e2be895364c9]::interface::Compiler>::enter::<rustc_driver[696b8639a901568d]::run_compiler::{closure#1}::{closure#2}, core[2c93cc726be6ffee]::result::Result<core[2c93cc726be6ffee]::option::Option<rustc_interface[7567e2be895364c9]::queries::Linker>, rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:390:19
  54:     0x7ff4b2d133a6 - rustc_driver[696b8639a901568d]::run_compiler::{closure#1}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:316:22
  55:     0x7ff4b2d133a6 - rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#1}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:229:13
  56:     0x7ff4b2d133a6 - rustc_span[b0923153a3d20a7e]::with_source_map::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#1}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_span/src/lib.rs:1013:5
  57:     0x7ff4b2cbb664 - rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:223:5
  58:     0x7ff4b2c88673 - rustc_interface[7567e2be895364c9]::interface::run_compiler::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:245:12
  59:     0x7ff4b2c88673 - rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals::<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/util.rs:148:13
  60:     0x7ff4b2c88673 - <scoped_tls[6e5e256e101db251]::ScopedKey<rustc_span[b0923153a3d20a7e]::SessionGlobals>>::set::<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /home/pnkfelix/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  61:     0x7ff4b2c84d29 - rustc_span[b0923153a3d20a7e]::create_session_globals_then::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0}>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_span/src/lib.rs:111:5
  62:     0x7ff4b2c84d29 - rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals::<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/util.rs:146:9
  63:     0x7ff4b2c84d29 - std[ea736e51db5ff63b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:122:18
  64:     0x7ff4b2c88299 - <std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_::<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/thread/mod.rs:498:17
  65:     0x7ff4b2c88299 - <core[2c93cc726be6ffee]::panic::unwind_safe::AssertUnwindSafe<<std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}> as core[2c93cc726be6ffee]::ops::function::FnOnce<()>>::call_once
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/panic/unwind_safe.rs:271:9
  66:     0x7ff4b2c88299 - std[ea736e51db5ff63b]::panicking::try::do_call::<core[2c93cc726be6ffee]::panic::unwind_safe::AssertUnwindSafe<<std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:492:40
  67:     0x7ff4b2c88299 - std[ea736e51db5ff63b]::panicking::try::<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, core[2c93cc726be6ffee]::panic::unwind_safe::AssertUnwindSafe<<std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:456:19
  68:     0x7ff4b2c88299 - std[ea736e51db5ff63b]::panic::catch_unwind::<core[2c93cc726be6ffee]::panic::unwind_safe::AssertUnwindSafe<<std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panic.rs:137:14
  69:     0x7ff4b2c88299 - <std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_::<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/thread/mod.rs:497:30
  70:     0x7ff4b2c88299 - <<std[ea736e51db5ff63b]::thread::Builder>::spawn_unchecked_<rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[7567e2be895364c9]::interface::run_compiler<core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1} as core[2c93cc726be6ffee]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/ops/function.rs:227:5
  71:     0x7ff4b1c67f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4eb0a7546fd8ef36
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1854:9
  72:     0x7ff4b1c67f53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::he4fcc93023938fb9
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1854:9
  73:     0x7ff4b1c67f53 - std::sys::unix::thread::Thread::new::thread_start::h6cd91a2002f08122
                               at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys/unix/thread.rs:108:17
  74:     0x7ff4b1a23927 - start_thread
                               at ./nptl/./nptl/pthread_create.c:435:8
  75:     0x7ff4b1ab39e4 - __clone
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:100
  76:                0x0 - <unknown>

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.60.0-dev running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on -C symbol-mangling-version=legacy -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C prefer-dynamic -C embed-bitcode=yes -Z crate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/") -Z binary-dep-depinfo -Z force-unstable-if-unmarked

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

query stack during panic:
end of query stack
error: could not compile `core`
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions