Skip to content

error: could not compile smoldot (lib) #124983

Closed as not planned
Closed as not planned
@asggWa

Description

@asggWa

RUST_BACKTRACE=full cargo install contracts-node

Code

<code>

Meta

rustc --version --verbose:

<version>

Error output

<output>
Backtrace

r::babe::{impl#3}::scale_encoding::{opaque#0}::{opaque#0}) }), [u8; 4_usize]>
  --> /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/header/babe.rs:83:17
   |
83 | /                 iter::once(either::Right(either::Left([1]))).chain(
84 | |                     digest
85 | |                         .scale_encoding()
86 | |                         .map(either::Right)
87 | |                         .map(either::Right),
88 | |                 ),
   | |_________________^

thread 'rustc' panicked at compiler/rustc_infer/src/infer/mod.rs:957:17:
Box<dyn Any>
stack backtrace:
   0:     0x7eea8fb8cb35 - std::backtrace_rs::backtrace::libunwind::trace::h5761d3dffa08db44
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5
   1:     0x7eea8fb8cb35 - std::backtrace_rs::backtrace::trace_unsynchronized::h0f4768fbebdaf463
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7eea8fb8cb35 - std::sys_common::backtrace::_print_fmt::h0f1ddf5238908f12
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7eea8fb8cb35 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h9ed9f2d7ae62e022
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7eea8fbdbceb - core::fmt::rt::Argument::fmt::h2487dad2ca6d062e
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/core/src/fmt/rt.rs:165:63
   5:     0x7eea8fbdbceb - core::fmt::write::h0bc9a505be76e05c
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/core/src/fmt/mod.rs:1157:21
   6:     0x7eea8fb8187f - std::io::Write::write_fmt::h0f23cb8d3327e857
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/io/mod.rs:1835:15
   7:     0x7eea8fb8c90e - std::sys_common::backtrace::_print::he50856b6cf64a583
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7eea8fb8c90e - std::sys_common::backtrace::print::hfdd019ce24af5225
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7eea8fb8f279 - std::panicking::default_hook::{{closure}}::h1163b2590251d538
  10:     0x7eea8fb8efbd - std::panicking::default_hook::h5c1fb68b0aba8647
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/panicking.rs:298:9
  11:     0x7eea92cbd01f - std[358a485bdeedacac]::panicking::update_hook::<alloc[2c4c5c3fe998082a]::boxed::Box<rustc_driver_impl[9d9cd9ab2aa8a316]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7eea8fb8f976 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h3c840eb1ef2fb0b9
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2036:9
  13:     0x7eea8fb8f976 - std::panicking::rust_panic_with_hook::hfc1ecf4bdfb5b9cb
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/panicking.rs:799:13
  14:     0x7eea92ced064 - std[358a485bdeedacac]::panicking::begin_panic::<rustc_errors[f166065fd0e5d53b]::ExplicitBug>::{closure#0}
  15:     0x7eea92ce9a06 - std[358a485bdeedacac]::sys_common::backtrace::__rust_end_short_backtrace::<std[358a485bdeedacac]::panicking::begin_panic<rustc_errors[f166065fd0e5d53b]::ExplicitBug>::{closure#0}, !>
  16:     0x7eea92ce4fb6 - std[358a485bdeedacac]::panicking::begin_panic::<rustc_errors[f166065fd0e5d53b]::ExplicitBug>
  17:     0x7eea92cf61f1 - <rustc_errors[f166065fd0e5d53b]::diagnostic::BugAbort as rustc_errors[f166065fd0e5d53b]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0x7eea92f49b58 - <rustc_errors[f166065fd0e5d53b]::DiagCtxt>::span_bug::<rustc_span[cc5921ff865fa645]::span_encoding::Span, alloc[2c4c5c3fe998082a]::string::String>
  19:     0x7eea92f80a3d - rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt::<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}
  20:     0x7eea92f80d6a - rustc_middle[e9b840acf01cb871]::ty::context::tls::with_opt::<rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7eea92f6646b - rustc_middle[e9b840acf01cb871]::ty::context::tls::with_context_opt::<rustc_middle[e9b840acf01cb871]::ty::context::tls::with_opt<rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7eea92f65197 - rustc_middle[e9b840acf01cb871]::util::bug::span_bug_fmt::<rustc_span[cc5921ff865fa645]::span_encoding::Span>
  23:     0x7eea90c9bb81 - <rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::FulfillProcessor as rustc_data_structures[1fbab3d16c19bb9d]::obligation_forest::ObligationProcessor>::process_obligation
  24:     0x7eea9400d663 - <rustc_data_structures[1fbab3d16c19bb9d]::obligation_forest::ObligationForest<rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::FulfillProcessor>
  25:     0x7eea9400cbdf - <rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::FulfillmentContext as rustc_infer[32368f2a260f83a8]::traits::engine::TraitEngine>::select_where_possible
  26:     0x7eea9439f341 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::expected_inputs_for_expected_output
  27:     0x7eea90f1321a - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_method_argument_types
  28:     0x7eea94955970 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  29:     0x7eea90f139e5 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_method_argument_types
  30:     0x7eea94955970 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  31:     0x7eea949494d4 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_block_with_expected
  32:     0x7eea94954b33 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  33:     0x7eea9491cbf5 - rustc_hir_typeck[15e91898126c457e]::check::check_fn
  34:     0x7eea94912726 - rustc_hir_typeck[15e91898126c457e]::typeck
  35:     0x7eea94912197 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  36:     0x7eea9436a771 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_span[cc5921ff865fa645]::def_id::LocalDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  37:     0x7eea94369494 - rustc_query_impl[e06443bf8a44708d]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7eea94a8dd2f - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_span[cc5921ff865fa645]::def_id::LocalDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  39:     0x7eea94d6a36b - rustc_hir_analysis[51b9faaa5d5af751]::collect::type_of::type_of_opaque
  40:     0x7eea94d6a2a5 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::type_of_opaque::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  41:     0x7eea94093a57 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  42:     0x7eea94ffb35e - rustc_query_impl[e06443bf8a44708d]::query_impl::type_of_opaque::get_query_non_incr::__rust_end_short_backtrace
  43:     0x7eea946843fc - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  44:     0x7eea91df9d7b - rustc_hir_analysis[51b9faaa5d5af751]::collect::type_of::type_of
  45:     0x7eea94094e66 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  46:     0x7eea94093a57 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  47:     0x7eea9409355b - rustc_query_impl[e06443bf8a44708d]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  48:     0x7eea946843fc - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  49:     0x7eea94ee9513 - rustc_hir_analysis[51b9faaa5d5af751]::check::check::check_item_type
  50:     0x7eea9467a807 - rustc_hir_analysis[51b9faaa5d5af751]::check::wfcheck::check_well_formed
  51:     0x7eea946792ad - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  52:     0x7eea94678a40 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_hir[9147807d325e6214]::hir_id::OwnerId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  53:     0x7eea946787bf - rustc_query_impl[e06443bf8a44708d]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
  54:     0x7eea946766f7 - rustc_hir_analysis[51b9faaa5d5af751]::check::wfcheck::check_mod_type_wf
  55:     0x7eea9467651f - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  56:     0x7eea94dacf06 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefaultCache<rustc_span[cc5921ff865fa645]::def_id::LocalModDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  57:     0x7eea94daccbf - rustc_query_impl[e06443bf8a44708d]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace
  58:     0x7eea943677c6 - rustc_hir_analysis[51b9faaa5d5af751]::check_crate
  59:     0x7eea9435da07 - rustc_interface[694408107d23096b]::passes::analysis
  60:     0x7eea9435d555 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  61:     0x7eea94da77a5 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::SingleCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  62:     0x7eea94da7509 - rustc_query_impl[e06443bf8a44708d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  63:     0x7eea94c3718e - rustc_interface[694408107d23096b]::interface::run_compiler::<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}
  64:     0x7eea94c13e89 - std[358a485bdeedacac]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[694408107d23096b]::util::run_in_thread_with_globals<rustc_interface[694408107d23096b]::util::run_in_thread_pool_with_globals<rustc_interface[694408107d23096b]::interface::run_compiler<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>
  65:     0x7eea94c13c36 - <<std[358a485bdeedacac]::thread::Builder>::spawn_unchecked_<rustc_interface[694408107d23096b]::util::run_in_thread_with_globals<rustc_interface[694408107d23096b]::util::run_in_thread_pool_with_globals<rustc_interface[694408107d23096b]::interface::run_compiler<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#2} as core[736cab3ae0fb6cbd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  66:     0x7eea8fb997bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h66c61a1da042c42c
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2022:9
  67:     0x7eea8fb997bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0ff1fe22c18aae99
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2022:9
  68:     0x7eea8fb997bb - std::sys::pal::unix::thread::Thread::new::thread_start::ha1eb1e2d1f1b6368
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys/pal/unix/thread.rs:108:17
  69:     0x7eea8f894ac3 - start_thread
                               at ./nptl/pthread_create.c:442:8
  70:     0x7eea8f926850 - __GI___clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
  71:                0x0 - <unknown>

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 `/home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/rustc-ice-2024-05-10T19_24_57-182093.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C strip=debuginfo

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

query stack during panic:
#0 [typeck] type-checking `header::babe::<impl at /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/header/babe.rs:38:1: 38:33>::scale_encoding`
#1 [type_of_opaque] computing type of opaque `header::babe::<impl at /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/header/babe.rs:38:1: 38:33>::scale_encoding::{opaque#0}`
#2 [type_of] computing type of `header::babe::<impl at /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/header/babe.rs:38:1: 38:33>::scale_encoding::{opaque#0}`
#3 [check_well_formed] checking that `header::babe::<impl at /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/header/babe.rs:38:1: 38:33>::scale_encoding::{opaque#0}` is well-formed
#4 [check_mod_type_wf] checking that types are well-formed in module `header::babe`
#5 [analysis] running analysis passes on this crate
end of query stack
   Compiling pallet-collator-selection v12.0.1
   Compiling staging-parachain-info v0.10.0
error: internal compiler error: compiler/rustc_infer/src/infer/mod.rs:957:17: opaque types got hidden types registered from within subtype predicate: itertools::Either<Alias(Opaque, AliasTy { args: ['?85, &'?78 [u8], '?76], def_id: DefId(0:29696 ~ smoldot[8e03]::util::protobuf::bytes_tag_encode::{opaque#0}::{opaque#0}) }), ?556t> vs itertools::Either<Alias(Opaque, AliasTy { args: ['?80, &'?78 [u8], '?76], def_id: DefId(0:29696 ~ smoldot[8e03]::util::protobuf::bytes_tag_encode::{opaque#0}::{opaque#0}) }), ?539t>
   --> /home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/src/network/protocol/identify.rs:81:5
    |
81  | /     protobuf::string_tag_encode(5, config.protocol_version)
82  | |         .map(either::Left)
83  | |         .map(either::Left)
84  | |         .map(either::Left)
...   |
106 | |                 .map(either::Left),
107 | |         )
    | |_________^

thread 'rustc' panicked at compiler/rustc_infer/src/infer/mod.rs:957:17:
Box<dyn Any>
stack backtrace:
   0:     0x7eea8fb8cb35 - std::backtrace_rs::backtrace::libunwind::trace::h5761d3dffa08db44
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5
   1:     0x7eea8fb8cb35 - std::backtrace_rs::backtrace::trace_unsynchronized::h0f4768fbebdaf463
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7eea8fb8cb35 - std::sys_common::backtrace::_print_fmt::h0f1ddf5238908f12
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7eea8fb8cb35 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h9ed9f2d7ae62e022
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7eea8fbdbceb - core::fmt::rt::Argument::fmt::h2487dad2ca6d062e
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/core/src/fmt/rt.rs:165:63
   5:     0x7eea8fbdbceb - core::fmt::write::h0bc9a505be76e05c
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/core/src/fmt/mod.rs:1157:21
   6:     0x7eea8fb8187f - std::io::Write::write_fmt::h0f23cb8d3327e857
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/io/mod.rs:1835:15
   7:     0x7eea8fb8c90e - std::sys_common::backtrace::_print::he50856b6cf64a583
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7eea8fb8c90e - std::sys_common::backtrace::print::hfdd019ce24af5225
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7eea8fb8f279 - std::panicking::default_hook::{{closure}}::h1163b2590251d538
  10:     0x7eea8fb8efbd - std::panicking::default_hook::h5c1fb68b0aba8647
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/panicking.rs:298:9
  11:     0x7eea92cbd01f - std[358a485bdeedacac]::panicking::update_hook::<alloc[2c4c5c3fe998082a]::boxed::Box<rustc_driver_impl[9d9cd9ab2aa8a316]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7eea8fb8f976 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h3c840eb1ef2fb0b9
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2036:9
  13:     0x7eea8fb8f976 - std::panicking::rust_panic_with_hook::hfc1ecf4bdfb5b9cb
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/panicking.rs:799:13
  14:     0x7eea92ced064 - std[358a485bdeedacac]::panicking::begin_panic::<rustc_errors[f166065fd0e5d53b]::ExplicitBug>::{closure#0}
  15:     0x7eea92ce9a06 - std[358a485bdeedacac]::sys_common::backtrace::__rust_end_short_backtrace::<std[358a485bdeedacac]::panicking::begin_panic<rustc_errors[f166065fd0e5d53b]::ExplicitBug>::{closure#0}, !>
  16:     0x7eea92ce4fb6 - std[358a485bdeedacac]::panicking::begin_panic::<rustc_errors[f166065fd0e5d53b]::ExplicitBug>
  17:     0x7eea92cf61f1 - <rustc_errors[f166065fd0e5d53b]::diagnostic::BugAbort as rustc_errors[f166065fd0e5d53b]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0x7eea92f49b58 - <rustc_errors[f166065fd0e5d53b]::DiagCtxt>::span_bug::<rustc_span[cc5921ff865fa645]::span_encoding::Span, alloc[2c4c5c3fe998082a]::string::String>
  19:     0x7eea92f80a3d - rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt::<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}
  20:     0x7eea92f80d6a - rustc_middle[e9b840acf01cb871]::ty::context::tls::with_opt::<rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7eea92f6646b - rustc_middle[e9b840acf01cb871]::ty::context::tls::with_context_opt::<rustc_middle[e9b840acf01cb871]::ty::context::tls::with_opt<rustc_middle[e9b840acf01cb871]::util::bug::opt_span_bug_fmt<rustc_span[cc5921ff865fa645]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7eea92f65197 - rustc_middle[e9b840acf01cb871]::util::bug::span_bug_fmt::<rustc_span[cc5921ff865fa645]::span_encoding::Span>
  23:     0x7eea90c9bb81 - <rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::FulfillProcessor as rustc_data_structures[1fbab3d16c19bb9d]::obligation_forest::ObligationProcessor>::process_obligation
  24:     0x7eea9400d663 - <rustc_data_structures[1fbab3d16c19bb9d]::obligation_forest::ObligationForest<rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[dd261b4bcb684ed0]::traits::fulfill::FulfillProcessor>
  25:     0x7eea90f135e3 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_method_argument_types
  26:     0x7eea94955970 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  27:     0x7eea94954b88 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  28:     0x7eea949494d4 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_block_with_expected
  29:     0x7eea94954b33 - <rustc_hir_typeck[15e91898126c457e]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  30:     0x7eea9491cbf5 - rustc_hir_typeck[15e91898126c457e]::check::check_fn
  31:     0x7eea94912726 - rustc_hir_typeck[15e91898126c457e]::typeck
  32:     0x7eea94912197 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  33:     0x7eea9436a771 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_span[cc5921ff865fa645]::def_id::LocalDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  34:     0x7eea94369494 - rustc_query_impl[e06443bf8a44708d]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  35:     0x7eea94a8dd2f - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_span[cc5921ff865fa645]::def_id::LocalDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  36:     0x7eea94d6a36b - rustc_hir_analysis[51b9faaa5d5af751]::collect::type_of::type_of_opaque
  37:     0x7eea94d6a2a5 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::type_of_opaque::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  38:     0x7eea94093a57 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  39:     0x7eea94ffb35e - rustc_query_impl[e06443bf8a44708d]::query_impl::type_of_opaque::get_query_non_incr::__rust_end_short_backtrace
  40:     0x7eea946843fc - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  41:     0x7eea91df9d7b - rustc_hir_analysis[51b9faaa5d5af751]::collect::type_of::type_of
  42:     0x7eea94094e66 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>
  43:     0x7eea94093a57 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  44:     0x7eea9409355b - rustc_query_impl[e06443bf8a44708d]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7eea946843fc - rustc_middle[e9b840acf01cb871]::query::plumbing::query_get_at::<rustc_query_system[bf821f29d6463424]::query::caches::DefIdCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 8usize]>>>
  46:     0x7eea94ee9513 - rustc_hir_analysis[51b9faaa5d5af751]::check::check::check_item_type
  47:     0x7eea9467a807 - rustc_hir_analysis[51b9faaa5d5af751]::check::wfcheck::check_well_formed
  48:     0x7eea946792ad - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  49:     0x7eea94678a40 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::VecCache<rustc_hir[9147807d325e6214]::hir_id::OwnerId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  50:     0x7eea946787bf - rustc_query_impl[e06443bf8a44708d]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
  51:     0x7eea946766f7 - rustc_hir_analysis[51b9faaa5d5af751]::check::wfcheck::check_mod_type_wf
  52:     0x7eea9467651f - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  53:     0x7eea94dacf06 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::DefaultCache<rustc_span[cc5921ff865fa645]::def_id::LocalModDefId, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  54:     0x7eea94daccbf - rustc_query_impl[e06443bf8a44708d]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace
  55:     0x7eea943677c6 - rustc_hir_analysis[51b9faaa5d5af751]::check_crate
  56:     0x7eea9435da07 - rustc_interface[694408107d23096b]::passes::analysis
  57:     0x7eea9435d555 - rustc_query_impl[e06443bf8a44708d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[e06443bf8a44708d]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>
  58:     0x7eea94da77a5 - rustc_query_system[bf821f29d6463424]::query::plumbing::try_execute_query::<rustc_query_impl[e06443bf8a44708d]::DynamicConfig<rustc_query_system[bf821f29d6463424]::query::caches::SingleCache<rustc_middle[e9b840acf01cb871]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[e06443bf8a44708d]::plumbing::QueryCtxt, false>
  59:     0x7eea94da7509 - rustc_query_impl[e06443bf8a44708d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  60:     0x7eea94c3718e - rustc_interface[694408107d23096b]::interface::run_compiler::<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}
  61:     0x7eea94c13e89 - std[358a485bdeedacac]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[694408107d23096b]::util::run_in_thread_with_globals<rustc_interface[694408107d23096b]::util::run_in_thread_pool_with_globals<rustc_interface[694408107d23096b]::interface::run_compiler<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>
  62:     0x7eea94c13c36 - <<std[358a485bdeedacac]::thread::Builder>::spawn_unchecked_<rustc_interface[694408107d23096b]::util::run_in_thread_with_globals<rustc_interface[694408107d23096b]::util::run_in_thread_pool_with_globals<rustc_interface[694408107d23096b]::interface::run_compiler<core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>, rustc_driver_impl[9d9cd9ab2aa8a316]::run_compiler::{closure#0}>::{closure#1}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[736cab3ae0fb6cbd]::result::Result<(), rustc_span[cc5921ff865fa645]::ErrorGuaranteed>>::{closure#2} as core[736cab3ae0fb6cbd]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  63:     0x7eea8fb997bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h66c61a1da042c42c
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2022:9
  64:     0x7eea8fb997bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h0ff1fe22c18aae99
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/alloc/src/boxed.rs:2022:9
  65:     0x7eea8fb997bb - std::sys::pal::unix::thread::Thread::new::thread_start::ha1eb1e2d1f1b6368
                               at /rustc/8f9080db423ca0fb6bef0686ce9a93940cdf1f13/library/std/src/sys/pal/unix/thread.rs:108:17
  66:     0x7eea8f894ac3 - start_thread
                               at ./nptl/pthread_create.c:442:8
  67:     0x7eea8f926850 - __GI___clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
  68:                0x0 - <unknown>

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 `/home/treebtc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoldot-0.11.0/rustc-ice-2024-05-10T19_24_57-182093.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C strip=debuginfo

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

query stack during panic:
#0 [typeck] type-checking `network::protocol::identify::build_identify_response`
#1 [type_of_opaque] computing type of opaque `network::protocol::identify::build_identify_response::{opaque#0}`
#2 [type_of] computing type of `network::protocol::identify::build_identify_response::{opaque#0}`
#3 [check_well_formed] checking that `network::protocol::identify::build_identify_response::{opaque#0}` is well-formed
#4 [check_mod_type_wf] checking that types are well-formed in module `network::protocol::identify`
#5 [analysis] running analysis passes on this crate
end of query stack
   Compiling cumulus-test-relay-sproof-builder v0.10.0
   Compiling pallet-asset-tx-payment v31.0.0
error: could not compile `smoldot` (lib)
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.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