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 with const_impl_trait + const_evaluatable_checked #88119

Closed
CraftSpider opened this issue Aug 17, 2021 · 2 comments · Fixed by #97171
Closed

ICE with const_impl_trait + const_evaluatable_checked #88119

CraftSpider opened this issue Aug 17, 2021 · 2 comments · Fixed by #97171
Labels
A-const-generics Area: const generics (parameters and arguments) C-bug Category: This is a bug. F-const_trait_impl `#![feature(const_trait_impl)]` F-generic_const_exprs `#![feature(generic_const_exprs)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@CraftSpider
Copy link
Contributor

Playing around with some more complex possibilities of const traits + checked evaluation, and ran into an ICE. I minimized it as much as I could, but I imagine this may not be the most minimal example.

Code

Uncomment the lines marked as 'Does ICE' to see the error.

Playground Link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=99ad0a7282faed3143cefa2fdb3111e0

Meta

Playground Version

1.56.0-nightly
(2021-08-16 0035d9dcecee49d1f734)

Error output

Backtrace

   Compiling playground v0.0.1 (/playground)
thread 'rustc' panicked at 'Unknown variable: 0', compiler/rustc_ty_utils/src/instance.rs:46:17
thread 'rustc' panicked at 'Unknown variable: 0', compiler/rustc_ty_utils/src/instance.rs:46:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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.56.0-nightly (0035d9dce 2021-08-16) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
thread 'rustc' panicked at 'substs of instance DefId(0:4 ~ playground[c7c3]::ConstName::NAME_BYTES) not normalized for codegen: [&mut u8]', compiler/rustc_middle/src/ty/instance.rs:286:9
stack backtrace:
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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.56.0-nightly (0035d9dce 2021-08-16) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental

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

query stack during panic:
thread 'rustc' panicked at 'substs of instance DefId(0:4 ~ playground[6f02]::ConstName::NAME_BYTES) not normalized for codegen: [&mut u8]', compiler/rustc_middle/src/ty/instance.rs:286:9
stack backtrace:
   0:     0x7f001ca045c0 - std::backtrace_rs::backtrace::libunwind::trace::h0197874f43e7190f
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:     0x7f001ca045c0 - std::backtrace_rs::backtrace::trace_unsynchronized::hfdfd566bbbda6f2d
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f001ca045c0 - std::sys_common::backtrace::_print_fmt::hb3b4707c15b032a1
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7f001ca045c0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::had1dceac8b072f88
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x7f001ca7288c - core::fmt::write::h9a6d9c74526a6c1b
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/core/src/fmt/mod.rs:1117:17
   5:     0x7f001c9f5e15 - std::io::Write::write_fmt::h05c3bb2bc83b8ed0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/io/mod.rs:1667:15
   6:     0x7f001ca07b6b - std::sys_common::backtrace::_print::h10f0826b2a586b58
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x7f001ca07b6b - std::sys_common::backtrace::print::h0d4242fbd1ac3eb6
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x7f001ca07b6b - std::panicking::default_hook::{{closure}}::h275ead39fe8b8e2a
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:210:50
   9:     0x7f001ca076fb - std::panicking::default_hook::h5505d4d90f5984d9
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:227:9
   0:     0x7fa9428c75c0 - std::backtrace_rs::backtrace::libunwind::trace::h0197874f43e7190f
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:     0x7fa9428c75c0 - std::backtrace_rs::backtrace::trace_unsynchronized::hfdfd566bbbda6f2d
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fa9428c75c0 - std::sys_common::backtrace::_print_fmt::hb3b4707c15b032a1
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7fa9428c75c0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::had1dceac8b072f88
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x7fa94293588c - core::fmt::write::h9a6d9c74526a6c1b
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/core/src/fmt/mod.rs:1117:17
   5:     0x7fa9428b8e15 - std::io::Write::write_fmt::h05c3bb2bc83b8ed0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/io/mod.rs:1667:15
   6:     0x7fa9428cab6b - std::sys_common::backtrace::_print::h10f0826b2a586b58
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x7fa9428cab6b - std::sys_common::backtrace::print::h0d4242fbd1ac3eb6
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x7fa9428cab6b - std::panicking::default_hook::{{closure}}::h275ead39fe8b8e2a
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:210:50
   9:     0x7fa9428ca6fb - std::panicking::default_hook::h5505d4d90f5984d9
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:227:9
  10:     0x7f001d1ea441 - rustc_driver::DEFAULT_HOOK::{{closure}}::{{closure}}::hfafa74d182a98572
  11:     0x7f001ca08399 - std::panicking::rust_panic_with_hook::h2f8980d1d9fd4ca0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:628:17
  12:     0x7f001ca07e50 - std::panicking::begin_panic_handler::{{closure}}::hd87853ef7e40ae97
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:521:13
  13:     0x7f001ca04ac4 - std::sys_common::backtrace::__rust_end_short_backtrace::hcab167aa940694a2
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:141:18
  14:     0x7f001ca07db9 - rust_begin_unwind
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:517:5
  15:     0x7f001c9d16ab - std::panicking::begin_panic_fmt::hb22a56f1d7ee4f34
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:460:5
  16:     0x7f001ec2e73e - rustc_middle::ty::instance::Instance::new::h7cd39168f7781012
  17:     0x7f001da33035 - std::thread::local::LocalKey<T>::with::h58fe770a5d6040b5
  18:     0x7f001da43b64 - std::thread::local::LocalKey<T>::with::hee43a4e607a34cde
  19:     0x7f001da7fd4e - rustc_query_impl::make_query::resolve_instance::h571a5663d67070e7
  20:     0x7f001d9b2f20 - rustc_query_system::query::plumbing::QueryState<D,K>::try_collect_active_jobs::hb2c8b01d8ddc8de3
  21:     0x7f001db6d65b - rustc_query_impl::Queries::try_collect_active_jobs::h6dd7cdfbc03fc7ac
  22:     0x7f001da18a01 - rustc_query_system::query::job::print_query_stack::h7b9781ab7e0abf5b
  23:     0x7f001d2f48df - rustc_interface::interface::try_print_query_stack::hb04ff3940d5aec41
  24:     0x7f001d1ea82f - rustc_driver::report_ice::h7cab627ccb965b4e
  25:     0x7f001ca08399 - std::panicking::rust_panic_with_hook::h2f8980d1d9fd4ca0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:628:17
  26:     0x7f001ca07e50 - std::panicking::begin_panic_handler::{{closure}}::hd87853ef7e40ae97
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:521:13
  27:     0x7f001ca04ac4 - std::sys_common::backtrace::__rust_end_short_backtrace::hcab167aa940694a2
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:141:18
  28:     0x7f001ca07db9 - rust_begin_unwind
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:517:5
  29:     0x7f001c9d16ab - std::panicking::begin_panic_fmt::hb22a56f1d7ee4f34
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:460:5
  30:     0x7f001e4e02ac - rustc_ty_utils::instance::inner_resolve_instance::h7579587573801eff
  31:     0x7f001e4dd086 - rustc_ty_utils::instance::resolve_instance::h96f027e5c2868f74
  32:     0x7f001e84bbc5 - rustc_query_system::query::plumbing::get_query_impl::h1700425070b2d14c
  33:     0x7f001e8d2a65 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::resolve_instance::h6962514e3eda3615
  34:     0x7f001ec2f495 - rustc_middle::ty::instance::Instance::resolve_opt_const_arg::ha75c0700f14dbe13
  35:     0x7f001ebe7e1a - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_resolve::hae53a1d75c50a2f0
  36:     0x7f001eb58ef0 - <rustc_trait_selection::traits::query::normalize::QueryNormalizer as rustc_middle::ty::fold::TypeFolder>::fold_const::hef64bef180173f45
  37:     0x7f001f50a881 - <rustc_trait_selection::traits::query::normalize::QueryNormalizer as rustc_middle::ty::fold::TypeFolder>::fold_mir_const::h3552b06747edc9b1
  38:     0x7f001ee6c064 - <rustc_infer::infer::at::At as rustc_trait_selection::traits::query::normalize::AtExt>::normalize::h5a0bfbe1dec7d8f4
  39:     0x7f001ee60204 - rustc_infer::infer::InferCtxtBuilder::enter::he8a1a18c9f4be5a0
  40:     0x7f001ee6e762 - core::ops::function::FnOnce::call_once::h28e651971f05ac50
  41:     0x7f001f169ef2 - rustc_query_system::query::plumbing::get_query_impl::h960dc647f098df2c
  42:     0x7f001f293712 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::normalize_mir_const_after_erasing_regions::hfe163bf00cfa7087
  43:     0x7f001e7ec06a - rustc_middle::ty::normalize_erasing_regions::<impl rustc_middle::ty::context::TyCtxt>::normalize_erasing_regions::h99ac9e606bd28477
  44:     0x7f001e799635 - rustc_mir::interpret::eval_context::InterpCx<M>::push_stack_frame::hc22dd645f2217b10
  45:     0x7f001e7b83b2 - rustc_mir::interpret::terminator::<impl rustc_mir::interpret::eval_context::InterpCx<M>>::eval_fn_call::hed5a538e1aa310d6
  46:     0x7f001e7a9d2a - rustc_mir::interpret::step::<impl rustc_mir::interpret::eval_context::InterpCx<M>>::run::h69c70f44553b9b05
  47:     0x7f001e6b00d7 - rustc_mir::const_eval::eval_queries::eval_to_allocation_raw_provider::h8024ae1f4e6214e5
  48:     0x7f001e86ced3 - rustc_query_system::query::plumbing::get_query_impl::ha801fac92d5effd6
  49:     0x7f001e8d04fc - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::eval_to_allocation_raw::ha8053bc8d3d12337
  50:     0x7f001e6aeaec - rustc_mir::const_eval::eval_queries::eval_to_const_value_raw_provider::h5ac5bd7de6b1665f
  51:     0x7f001e85f891 - rustc_query_system::query::plumbing::get_query_impl::h860c4e8635b76526
  52:     0x7f001e8d0620 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::eval_to_const_value_raw::hea5e6287f706364a
  53:     0x7f001ebd6467 - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_global_id::h6aa0775c86044559
  54:     0x7f001ebe7e5d - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_resolve::hae53a1d75c50a2f0
  55:     0x7f001f511706 - rustc_infer::infer::InferCtxt::const_eval_resolve::h3b870a39d95040d5
  10:     0x7fa9430ad441 - rustc_driver::DEFAULT_HOOK::{{closure}}::{{closure}}::hfafa74d182a98572
  11:     0x7fa9428cb399 - std::panicking::rust_panic_with_hook::h2f8980d1d9fd4ca0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:628:17
  56:     0x7f001f4d9670 - rustc_trait_selection::traits::const_evaluatable::is_const_evaluatable::h3dca85cecc1d683d
  12:     0x7fa9428cae50 - std::panicking::begin_panic_handler::{{closure}}::hd87853ef7e40ae97
  57:     0x7f001eb0103b - rustc_trait_selection::traits::fulfill::FulfillProcessor::progress_changed_obligations::h8f96649329b3dddb
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:521:13
  58:     0x7f001eb18821 - rustc_data_structures::obligation_forest::ObligationForest<O>::process_obligations::h5a31c309ac98aa45
  13:     0x7fa9428c7ac4 - std::sys_common::backtrace::__rust_end_short_backtrace::hcab167aa940694a2
  59:     0x7f001eaffddc - rustc_trait_selection::traits::fulfill::FulfillmentContext::select::h575ebb62392f0add
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:141:18
  60:     0x7f001eb00742 - <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_with_constness_where_possible::ha3de85e8851b5330
  14:     0x7fa9428cadb9 - rust_begin_unwind
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:517:5
  15:     0x7fa9428946ab - std::panicking::begin_panic_fmt::hb22a56f1d7ee4f34
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:460:5
  16:     0x7fa944af173e - rustc_middle::ty::instance::Instance::new::h7cd39168f7781012
  17:     0x7fa9438f6035 - std::thread::local::LocalKey<T>::with::h58fe770a5d6040b5
  61:     0x7f001e3c2c95 - rustc_typeck::check::fn_ctxt::_impl::<impl rustc_typeck::check::fn_ctxt::FnCtxt>::select_obligations_where_possible::h9b1d0cef8799428f
  18:     0x7fa943906b64 - std::thread::local::LocalKey<T>::with::hee43a4e607a34cde
  62:     0x7f001e423ae4 - rustc_infer::infer::InferCtxtBuilder::enter::h6bcc68d5dea195f1
  19:     0x7fa943942d4e - rustc_query_impl::make_query::resolve_instance::h571a5663d67070e7
  63:     0x7f001e405bd7 - rustc_typeck::check::typeck::h17f5219632f075a9
  64:     0x7f001e87e7ac - rustc_query_system::query::plumbing::get_query_impl::hf3280cdf7abc5c12
  65:     0x7f001e8d02ab - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck::h9a96397d67c5ebef
  66:     0x7f001e4a0965 - rustc_typeck::check::check::check_item_type::hec08fa10c5e7612d
  20:     0x7fa943875f20 - rustc_query_system::query::plumbing::QueryState<D,K>::try_collect_active_jobs::hb2c8b01d8ddc8de3
  67:     0x7f001e3f33e6 - rustc_middle::hir::map::Map::visit_item_likes_in_module::hc3b04a10b4003984
  68:     0x7f001ef67b4c - rustc_typeck::check::check::check_mod_item_types::h8643e221817910db
  69:     0x7f001e8467ff - rustc_query_system::query::plumbing::get_query_impl::h016b2b5becb8b31e
  70:     0x7f001f28f5fb - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::check_mod_item_types::h8cf169411f2c5d80
  71:     0x7f001ef118a8 - rustc_session::utils::<impl rustc_session::session::Session>::time::hc0ba21afa1f5bcdb
  72:     0x7f001ef052b9 - rustc_typeck::check_crate::h9b4050f6ac4bb007
  73:     0x7f001ecdfcff - rustc_interface::passes::analysis::h99bef9096af2cdda
  74:     0x7f001f1859b3 - rustc_query_system::query::plumbing::get_query_impl::hde125ddea0c5c378
  75:     0x7f001f28d9ad - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis::h326a2b421ea54a82
  76:     0x7f001ecbdb3f - rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter::h65311acc74a98b42
  77:     0x7f001ecabcac - rustc_span::with_source_map::hd15b16ce10abe356
  78:     0x7f001ecbd33f - scoped_tls::ScopedKey<T>::set::h7c4648ae17840458
  79:     0x7f001ecac37a - std::sys_common::backtrace::__rust_begin_short_backtrace::h471322c14806fa6a
  80:     0x7f001ecab415 - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha951d63e2ad1502e
  81:     0x7f001ca14d13 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9c4443ed82ca1eae
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/alloc/src/boxed.rs:1636:9
  82:     0x7f001ca14d13 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4b334c81001270ca
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/alloc/src/boxed.rs:1636:9
  83:     0x7f001ca14d13 - std::sys::unix::thread::Thread::new::thread_start::h092d15d6be9ed8c7
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys/unix/thread.rs:106:17
  84:     0x7f001c94e609 - start_thread
  85:     0x7f001c862293 - clone
  86:                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.56.0-nightly (0035d9dce 2021-08-16) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
end of query stack
thread panicked while panicking. aborting.
  21:     0x7fa943a3065b - rustc_query_impl::Queries::try_collect_active_jobs::h6dd7cdfbc03fc7ac
  22:     0x7fa9438dba01 - rustc_query_system::query::job::print_query_stack::h7b9781ab7e0abf5b
  23:     0x7fa9431b78df - rustc_interface::interface::try_print_query_stack::hb04ff3940d5aec41
  24:     0x7fa9430ad82f - rustc_driver::report_ice::h7cab627ccb965b4e
  25:     0x7fa9428cb399 - std::panicking::rust_panic_with_hook::h2f8980d1d9fd4ca0
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:628:17
  26:     0x7fa9428cae50 - std::panicking::begin_panic_handler::{{closure}}::hd87853ef7e40ae97
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:521:13
  27:     0x7fa9428c7ac4 - std::sys_common::backtrace::__rust_end_short_backtrace::hcab167aa940694a2
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys_common/backtrace.rs:141:18
  28:     0x7fa9428cadb9 - rust_begin_unwind
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:517:5
  29:     0x7fa9428946ab - std::panicking::begin_panic_fmt::hb22a56f1d7ee4f34
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/panicking.rs:460:5
  30:     0x7fa9443a32ac - rustc_ty_utils::instance::inner_resolve_instance::h7579587573801eff
  31:     0x7fa9443a0086 - rustc_ty_utils::instance::resolve_instance::h96f027e5c2868f74
  32:     0x7fa94511537e - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::hf3d4db52a6804ceb
  33:     0x7fa94519cde4 - rustc_data_structures::stack::ensure_sufficient_stack::hc37fa2bbd03a0312
  34:     0x7fa94470f018 - rustc_query_system::query::plumbing::get_query_impl::h1700425070b2d14c
  35:     0x7fa944795a65 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::resolve_instance::h6962514e3eda3615
  36:     0x7fa944af2495 - rustc_middle::ty::instance::Instance::resolve_opt_const_arg::ha75c0700f14dbe13
  37:     0x7fa944aaae1a - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_resolve::hae53a1d75c50a2f0
  38:     0x7fa944a1bef0 - <rustc_trait_selection::traits::query::normalize::QueryNormalizer as rustc_middle::ty::fold::TypeFolder>::fold_const::hef64bef180173f45
  39:     0x7fa9453cd881 - <rustc_trait_selection::traits::query::normalize::QueryNormalizer as rustc_middle::ty::fold::TypeFolder>::fold_mir_const::h3552b06747edc9b1
  40:     0x7fa944d2f064 - <rustc_infer::infer::at::At as rustc_trait_selection::traits::query::normalize::AtExt>::normalize::h5a0bfbe1dec7d8f4
  41:     0x7fa944d23204 - rustc_infer::infer::InferCtxtBuilder::enter::he8a1a18c9f4be5a0
  42:     0x7fa944d31762 - core::ops::function::FnOnce::call_once::h28e651971f05ac50
  43:     0x7fa94510a302 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::hb03a4d5abdad3c70
  44:     0x7fa945196c8e - rustc_data_structures::stack::ensure_sufficient_stack::h5462c8f0c91e399e
  45:     0x7fa94502d22e - rustc_query_system::query::plumbing::get_query_impl::h960dc647f098df2c
  46:     0x7fa945156712 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::normalize_mir_const_after_erasing_regions::hfe163bf00cfa7087
  47:     0x7fa9446af06a - rustc_middle::ty::normalize_erasing_regions::<impl rustc_middle::ty::context::TyCtxt>::normalize_erasing_regions::h99ac9e606bd28477
  48:     0x7fa94465c635 - rustc_mir::interpret::eval_context::InterpCx<M>::push_stack_frame::hc22dd645f2217b10
  49:     0x7fa94467b3b2 - rustc_mir::interpret::terminator::<impl rustc_mir::interpret::eval_context::InterpCx<M>>::eval_fn_call::hed5a538e1aa310d6
  50:     0x7fa94466cd2a - rustc_mir::interpret::step::<impl rustc_mir::interpret::eval_context::InterpCx<M>>::run::h69c70f44553b9b05
  51:     0x7fa9445730d7 - rustc_mir::const_eval::eval_queries::eval_to_allocation_raw_provider::h8024ae1f4e6214e5
  52:     0x7fa9450f343a - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::h2334ec4358e43a3d
  53:     0x7fa9451997b2 - rustc_data_structures::stack::ensure_sufficient_stack::h819c3d3f5449c60b
  54:     0x7fa9447301ea - rustc_query_system::query::plumbing::get_query_impl::ha801fac92d5effd6
  55:     0x7fa9447934fc - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::eval_to_allocation_raw::ha8053bc8d3d12337
  56:     0x7fa944571aec - rustc_mir::const_eval::eval_queries::eval_to_const_value_raw_provider::h5ac5bd7de6b1665f
  57:     0x7fa9450ee1fa - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::h0ef5aed2666db054
  58:     0x7fa94519ecd2 - rustc_data_structures::stack::ensure_sufficient_stack::he2ea33f311ab8f52
  59:     0x7fa944722bb2 - rustc_query_system::query::plumbing::get_query_impl::h860c4e8635b76526
  60:     0x7fa944793620 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::eval_to_const_value_raw::hea5e6287f706364a
  61:     0x7fa944a99467 - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_global_id::h6aa0775c86044559
  62:     0x7fa944aaae5d - rustc_middle::mir::interpret::queries::<impl rustc_middle::ty::context::TyCtxt>::const_eval_resolve::hae53a1d75c50a2f0
  63:     0x7fa9453d4706 - rustc_infer::infer::InferCtxt::const_eval_resolve::h3b870a39d95040d5
  64:     0x7fa94539c670 - rustc_trait_selection::traits::const_evaluatable::is_const_evaluatable::h3dca85cecc1d683d
  65:     0x7fa9449c403b - rustc_trait_selection::traits::fulfill::FulfillProcessor::progress_changed_obligations::h8f96649329b3dddb
  66:     0x7fa9449db821 - rustc_data_structures::obligation_forest::ObligationForest<O>::process_obligations::h5a31c309ac98aa45
  67:     0x7fa9449c2ddc - rustc_trait_selection::traits::fulfill::FulfillmentContext::select::h575ebb62392f0add
  68:     0x7fa9449c3742 - <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_with_constness_where_possible::ha3de85e8851b5330
  69:     0x7fa944285c95 - rustc_typeck::check::fn_ctxt::_impl::<impl rustc_typeck::check::fn_ctxt::FnCtxt>::select_obligations_where_possible::h9b1d0cef8799428f
  70:     0x7fa9442e6ae4 - rustc_infer::infer::InferCtxtBuilder::enter::h6bcc68d5dea195f1
  71:     0x7fa9442c8bd7 - rustc_typeck::check::typeck::h17f5219632f075a9
  72:     0x7fa945117708 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::hfa2cf333d2225e6b
  73:     0x7fa9451a097a - rustc_data_structures::stack::ensure_sufficient_stack::hfbd4631472ce9b75
  74:     0x7fa945067a37 - rustc_query_system::query::plumbing::force_query_with_job::h9479e720ac2fbfa9
  75:     0x7fa944741996 - rustc_query_system::query::plumbing::get_query_impl::hf3280cdf7abc5c12
  76:     0x7fa9447932ab - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck::h9a96397d67c5ebef
  77:     0x7fa944363965 - rustc_typeck::check::check::check_item_type::hec08fa10c5e7612d
  78:     0x7fa9442b63e6 - rustc_middle::hir::map::Map::visit_item_likes_in_module::hc3b04a10b4003984
  79:     0x7fa944e2ab4c - rustc_typeck::check::check::check_mod_item_types::h8643e221817910db
  80:     0x7fa9450f7a38 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::h3e291c4bc1bb1213
  81:     0x7fa945199b0a - rustc_data_structures::stack::ensure_sufficient_stack::h848d4383b0aae67f
  82:     0x7fa94506a291 - rustc_query_system::query::plumbing::force_query_with_job::hb0e0fce1a2b49eb8
  83:     0x7fa9447099c2 - rustc_query_system::query::plumbing::get_query_impl::h016b2b5becb8b31e
  84:     0x7fa9451525fb - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::check_mod_item_types::h8cf169411f2c5d80
  85:     0x7fa944dd48a8 - rustc_session::utils::<impl rustc_session::session::Session>::time::hc0ba21afa1f5bcdb
  86:     0x7fa944dc82b9 - rustc_typeck::check_crate::h9b4050f6ac4bb007
  87:     0x7fa944ba2cff - rustc_interface::passes::analysis::h99bef9096af2cdda
  88:     0x7fa943a142d3 - rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps::heaf668dad39d2f94
  89:     0x7fa9439dd5b7 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::he5801b4b41ce92bd
  90:     0x7fa9439e0499 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_eval_always_task::h1f37a82bd6609acc
  91:     0x7fa943a7114e - rustc_data_structures::stack::ensure_sufficient_stack::ha89aeaba23a24dcc
  92:     0x7fa94382d651 - rustc_query_system::query::plumbing::force_query_with_job::ha1d9f35badbc5dbf
  93:     0x7fa945048ab0 - rustc_query_system::query::plumbing::get_query_impl::hde125ddea0c5c378
  94:     0x7fa9451509ad - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis::h326a2b421ea54a82
  95:     0x7fa944b80b3f - rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter::h65311acc74a98b42
  96:     0x7fa944b6ecac - rustc_span::with_source_map::hd15b16ce10abe356
  97:     0x7fa944b8033f - scoped_tls::ScopedKey<T>::set::h7c4648ae17840458
  98:     0x7fa944b6f37a - std::sys_common::backtrace::__rust_begin_short_backtrace::h471322c14806fa6a
  99:     0x7fa944b6e415 - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha951d63e2ad1502e
 100:     0x7fa9428d7d13 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9c4443ed82ca1eae
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/alloc/src/boxed.rs:1636:9
 101:     0x7fa9428d7d13 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4b334c81001270ca
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/alloc/src/boxed.rs:1636:9
 102:     0x7fa9428d7d13 - std::sys::unix::thread::Thread::new::thread_start::h092d15d6be9ed8c7
                               at /rustc/0035d9dcecee49d1f7349932bfa52c05a6f83641/library/std/src/sys/unix/thread.rs:106:17
 103:     0x7fa942811609 - start_thread
 104:     0x7fa942725293 - clone
 105:                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.56.0-nightly (0035d9dce 2021-08-16) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental

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

query stack during panic:
end of query stack
thread panicked while panicking. aborting.
error: could not compile `playground`

Caused by:
  process didn't exit successfully: `rustc --crate-name playground --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=303840f80fcbed84 -C extra-filename=-303840f80fcbed84 --out-dir /playground/target/debug/deps -L dependency=/playground/target/debug/deps --extern addr2line=/playground/target/debug/deps/libaddr2line-2d77d9256241f221.rmeta --extern adler=/playground/target/debug/deps/libadler-ef7aea1c0a632ed5.rmeta --extern adler32=/playground/target/debug/deps/libadler32-88b3d863e553f12a.rmeta --extern ahash=/playground/target/debug/deps/libahash-6179536f56b5415f.rmeta --extern aho_corasick=/playground/target/debug/deps/libaho_corasick-973618bc310faf3f.rmeta --extern ansi_term_0_11_0=/playground/target/debug/deps/libansi_term-f3162ca25925bbbc.rmeta --extern ansi_term=/playground/target/debug/deps/libansi_term-2159b79c7c03c33b.rmeta --extern anyhow=/playground/target/debug/deps/libanyhow-4c7240cf3b276304.rmeta --extern approx=/playground/target/debug/deps/libapprox-c000d63eea2962d7.rmeta --extern arc_swap=/playground/target/debug/deps/libarc_swap-229c7223f9d117b5.rmeta --extern arrayvec=/playground/target/debug/deps/libarrayvec-efd360c13d73e262.rmeta --extern async_recursion=/playground/target/debug/deps/libasync_recursion-a1b8d426fec0b9c6.so --extern async_trait=/playground/target/debug/deps/libasync_trait-c2b8e5891d8033e8.so --extern atty=/playground/target/debug/deps/libatty-b8582ec4b13f4b82.rmeta --extern autocfg=/playground/target/debug/deps/libautocfg-0fedd4b00cd8cfde.rmeta --extern backtrace=/playground/target/debug/deps/libbacktrace-df21cf4298f9b62c.rmeta --extern base64=/playground/target/debug/deps/libbase64-cfc95277467b3864.rmeta --extern bit_set=/playground/target/debug/deps/libbit_set-3053369e5ab97a8d.rmeta --extern bit_vec=/playground/target/debug/deps/libbit_vec-968c38f13f141e15.rmeta --extern bitflags=/playground/target/debug/deps/libbitflags-a1a0ec7d951ff5ab.rmeta --extern block_buffer=/playground/target/debug/deps/libblock_buffer-507292697118f3df.rmeta --extern bstr=/playground/target/debug/deps/libbstr-375f618d2e7c2791.rmeta --extern bytemuck=/playground/target/debug/deps/libbytemuck-b3fd670bb4f123f9.rmeta --extern byteorder=/playground/target/debug/deps/libbyteorder-36a6ae6c88126558.rmeta --extern bytes=/playground/target/debug/deps/libbytes-eb0caf437fcfdea8.rmeta --extern cc=/playground/target/debug/deps/libcc-9749738c4fb552d6.rmeta --extern cfg_if_0_1_10=/playground/target/debug/deps/libcfg_if-8c3e31f5e1f73766.rmeta --extern cfg_if=/playground/target/debug/deps/libcfg_if-5253e57569830399.rmeta --extern chrono=/playground/target/debug/deps/libchrono-39e40ba58a39bd81.rmeta --extern clap=/playground/target/debug/deps/libclap-0cea9a2383e97fe9.rmeta --extern color_quant=/playground/target/debug/deps/libcolor_quant-aef1b2deff556d9b.rmeta --extern cpufeatures=/playground/target/debug/deps/libcpufeatures-e4525f6abfbb289d.rmeta --extern crc32fast=/playground/target/debug/deps/libcrc32fast-a9e117ef1f3013c4.rmeta --extern crossbeam=/playground/target/debug/deps/libcrossbeam-46c056cf0c60e108.rmeta --extern crossbeam_channel=/playground/target/debug/deps/libcrossbeam_channel-c9d352209ac8f9a7.rmeta --extern crossbeam_deque=/playground/target/debug/deps/libcrossbeam_deque-28980e36bf93e302.rmeta --extern crossbeam_epoch=/playground/target/debug/deps/libcrossbeam_epoch-5721f18695321e48.rmeta --extern crossbeam_queue=/playground/target/debug/deps/libcrossbeam_queue-507eb457b9dce41a.rmeta --extern crossbeam_utils=/playground/target/debug/deps/libcrossbeam_utils-0fcce16cf5c127a8.rmeta --extern crypto_mac=/playground/target/debug/deps/libcrypto_mac-a2b727ff8dedb2e0.rmeta --extern csv=/playground/target/debug/deps/libcsv-f824a7974bb0e44e.rmeta --extern csv_core=/playground/target/debug/deps/libcsv_core-9cbe6ecb57df5d2a.rmeta --extern data_encoding=/playground/target/debug/deps/libdata_encoding-dc27914ccac23bde.rmeta --extern deflate=/playground/target/debug/deps/libdeflate-c4cf0a1da32bbdfe.rmeta --extern derivative=/playground/target/debug/deps/libderivative-a0b370a5b67cb7e7.so --extern digest=/playground/target/debug/deps/libdigest-aa09ccf273fafcc0.rmeta --extern dtoa=/playground/target/debug/deps/libdtoa-14adace6fe09bde6.rmeta --extern either=/playground/target/debug/deps/libeither-9385b7aa28821a65.rmeta --extern encoding_rs=/playground/target/debug/deps/libencoding_rs-1ec3e0f519f06d46.rmeta --extern env_logger=/playground/target/debug/deps/libenv_logger-42fdb4dcfd645282.rmeta --extern error_chain=/playground/target/debug/deps/liberror_chain-ee4db9b85e46614f.rmeta --extern fallible_iterator=/playground/target/debug/deps/libfallible_iterator-7f4fc8c0ad37dc9d.rmeta --extern fallible_streaming_iterator=/playground/target/debug/deps/libfallible_streaming_iterator-baab7654e5e34d04.rmeta --extern filetime=/playground/target/debug/deps/libfiletime-bff15f2b352505dd.rmeta --extern fixedbitset=/playground/target/debug/deps/libfixedbitset-370e556d0894ebec.rmeta --extern flate2=/playground/target/debug/deps/libflate2-607bbbee8e922c72.rmeta --extern fnv=/playground/target/debug/deps/libfnv-0672b6da71ed834c.rmeta --extern foreign_types=/playground/target/debug/deps/libforeign_types-e5d0ea207091f2ed.rmeta --extern foreign_types_shared=/playground/target/debug/deps/libforeign_types_shared-e64cfaf7a202bcc7.rmeta --extern form_urlencoded=/playground/target/debug/deps/libform_urlencoded-4822aca7daacadf7.rmeta --extern futf=/playground/target/debug/deps/libfutf-fd020dc4260f6dbc.rmeta --extern futures=/playground/target/debug/deps/libfutures-7d540d45e6031e32.rmeta --extern futures_channel=/playground/target/debug/deps/libfutures_channel-c5df9230c99f2d2a.rmeta --extern futures_core=/playground/target/debug/deps/libfutures_core-81bcf37229472bac.rmeta --extern futures_executor=/playground/target/debug/deps/libfutures_executor-68a9866f4838d3bb.rmeta --extern futures_io=/playground/target/debug/deps/libfutures_io-17b9434f914e4f2a.rmeta --extern futures_macro=/playground/target/debug/deps/libfutures_macro-d71883b0cf98d089.so --extern futures_sink=/playground/target/debug/deps/libfutures_sink-b67d63ba44782542.rmeta --extern futures_task=/playground/target/debug/deps/libfutures_task-a2d3b88f1ce93e40.rmeta --extern futures_util=/playground/target/debug/deps/libfutures_util-ef090dbafc23eb00.rmeta --extern generic_array=/playground/target/debug/deps/libgeneric_array-cdac43b2647d830c.rmeta --extern getrandom_0_1_16=/playground/target/debug/deps/libgetrandom-c692961c664e0912.rmeta --extern getrandom=/playground/target/debug/deps/libgetrandom-93e2d138749607dc.rmeta --extern gif=/playground/target/debug/deps/libgif-12adc352504923ea.rmeta --extern gimli=/playground/target/debug/deps/libgimli-b7289a81a9dcdb8b.rmeta --extern glob=/playground/target/debug/deps/libglob-3e188ae16859c506.rmeta --extern h2=/playground/target/debug/deps/libh2-ca1075a95d2cae1d.rmeta --extern hashbrown=/playground/target/debug/deps/libhashbrown-d331462267a8c53a.rmeta --extern hashlink=/playground/target/debug/deps/libhashlink-bae34f07ac529a83.rmeta --extern hmac=/playground/target/debug/deps/libhmac-ce9998f924176127.rmeta --extern html5ever=/playground/target/debug/deps/libhtml5ever-71d827f754c4452e.rmeta --extern http=/playground/target/debug/deps/libhttp-1ff35c63c0477d2b.rmeta --extern http_body=/playground/target/debug/deps/libhttp_body-73f9ba0ff7cb8d00.rmeta --extern httparse=/playground/target/debug/deps/libhttparse-4a8d1715a6aca602.rmeta --extern httpdate=/playground/target/debug/deps/libhttpdate-6e276491cfbce091.rmeta --extern humantime=/playground/target/debug/deps/libhumantime-bcb137373d337ec0.rmeta --extern hyper=/playground/target/debug/deps/libhyper-70b2276bd294fa1b.rlib --extern hyper_tls=/playground/target/debug/deps/libhyper_tls-2a490863dc4d411b.rmeta --extern idna=/playground/target/debug/deps/libidna-5426b6586428e978.rmeta --extern image=/playground/target/debug/deps/libimage-d6804cdc3ff6c196.rmeta --extern indexmap=/playground/target/debug/deps/libindexmap-600c1921d81e9bd3.rmeta --extern instant=/playground/target/debug/deps/libinstant-d90784ddfa07f1be.rmeta --extern ipnet=/playground/target/debug/deps/libipnet-a2c6ce50b20fb70a.rmeta --extern itertools=/playground/target/debug/deps/libitertools-bba2509b5d58e709.rmeta --extern itoa=/playground/target/debug/deps/libitoa-bbcf540b9734fd2f.rmeta --extern jpeg_decoder=/playground/target/debug/deps/libjpeg_decoder-1af4fe0196d70d2a.rmeta --extern lazy_static=/playground/target/debug/deps/liblazy_static-56f839fc5f97cc86.rmeta --extern libc=/playground/target/debug/deps/liblibc-340afc648034826f.rmeta --extern libm=/playground/target/debug/deps/liblibm-d2c691ad80c63701.rmeta --extern libsqlite3_sys=/playground/target/debug/deps/liblibsqlite3_sys-6bc74cfa89304f78.rmeta --extern linked_hash_map=/playground/target/debug/deps/liblinked_hash_map-f70128bcbd8de949.rmeta --extern lock_api=/playground/target/debug/deps/liblock_api-aa43a8b791181abd.rmeta --extern log=/playground/target/debug/deps/liblog-c4c8a18fcaa49ca9.rmeta --extern log_mdc=/playground/target/debug/deps/liblog_mdc-8c9acbf18051a6d8.rmeta --extern log4rs=/playground/target/debug/deps/liblog4rs-a0ad6c97af2cdf53.rmeta --extern mac=/playground/target/debug/deps/libmac-5ef46c35d1d60ae2.rmeta --extern markup5ever=/playground/target/debug/deps/libmarkup5ever-7443a9a69475c9ba.rmeta --extern markup5ever_rcdom=/playground/target/debug/deps/libmarkup5ever_rcdom-45ce416d50540075.rmeta --extern matches=/playground/target/debug/deps/libmatches-28377774417be17e.rmeta --extern matrixmultiply=/playground/target/debug/deps/libmatrixmultiply-09291edd90c62dcf.rmeta --extern md5=/playground/target/debug/deps/libmd5-e5769b4d70bdda4d.rmeta --extern memchr=/playground/target/debug/deps/libmemchr-18e5b0b257d36643.rmeta --extern memmap=/playground/target/debug/deps/libmemmap-592b5058601b30ad.rmeta --extern memoffset=/playground/target/debug/deps/libmemoffset-60b4e53329a7a062.rmeta --extern mime=/playground/target/debug/deps/libmime-be254843d53468a4.rmeta --extern miniz_oxide_0_3_7=/playground/target/debug/deps/libminiz_oxide-3f0683298da28c4f.rmeta --extern miniz_oxide=/playground/target/debug/deps/libminiz_oxide-81cef754e657418c.rmeta --extern mio=/playground/target/debug/deps/libmio-907e5a415a6b17a8.rmeta --extern nalgebra=/playground/target/debug/deps/libnalgebra-f63fe59c0016a708.rmeta --extern nalgebra_macros=/playground/target/debug/deps/libnalgebra_macros-150f956bead03bdc.so --extern native_tls=/playground/target/debug/deps/libnative_tls-4166f692156070c2.rmeta --extern ndarray=/playground/target/debug/deps/libndarray-1817433ddc21dccd.rmeta --extern net2=/playground/target/debug/deps/libnet2-84723b1cb2065d2e.rmeta --extern debug_unreachable=/playground/target/debug/deps/libdebug_unreachable-cc7ea61f7b47b527.rmeta --extern num=/playground/target/debug/deps/libnum-ba2005922e99f515.rmeta --extern num_bigint=/playground/target/debug/deps/libnum_bigint-888348bf565a291d.rmeta --extern num_complex=/playground/target/debug/deps/libnum_complex-5fda52ec23effa72.rmeta --extern num_integer=/playground/target/debug/deps/libnum_integer-4fb07cf55679ae1c.rmeta --extern num_iter=/playground/target/debug/deps/libnum_iter-30366f5bac5e9769.rmeta --extern num_rational_0_3_2=/playground/target/debug/deps/libnum_rational-002d53a4eaf51119.rmeta --extern num_rational=/playground/target/debug/deps/libnum_rational-9768eb475c483851.rmeta --extern num_traits=/playground/target/debug/deps/libnum_traits-ef4eda907710cc53.rmeta --extern num_cpus=/playground/target/debug/deps/libnum_cpus-44e516412e50b17c.rmeta --extern object=/playground/target/debug/deps/libobject-7567157d272053ac.rmeta --extern once_cell=/playground/target/debug/deps/libonce_cell-4f625b5ea98dbe62.rmeta --extern opaque_debug=/playground/target/debug/deps/libopaque_debug-ab9ddb0f69438328.rmeta --extern openssl=/playground/target/debug/deps/libopenssl-ed92d664a2b2b36f.rmeta --extern openssl_probe=/playground/target/debug/deps/libopenssl_probe-5bd5ed1fcf2f67f6.rmeta --extern openssl_sys=/playground/target/debug/deps/libopenssl_sys-b3ccc459bdcd3e76.rmeta --extern ordered_float=/playground/target/debug/deps/libordered_float-797cda2556a52627.rmeta --extern parking_lot=/playground/target/debug/deps/libparking_lot-5c5857c1af828e8a.rmeta --extern parking_lot_core=/playground/target/debug/deps/libparking_lot_core-cb0d2ea0d1b0d656.rmeta --extern paste=/playground/target/debug/deps/libpaste-1d007800db85bb25.so --extern percent_encoding=/playground/target/debug/deps/libpercent_encoding-431c76c01be24719.rmeta --extern pest=/playground/target/debug/deps/libpest-5b994c69f9e934e9.rmeta --extern petgraph=/playground/target/debug/deps/libpetgraph-c50c71c10d913c71.rmeta --extern phf=/playground/target/debug/deps/libphf-854c1b08919d230f.rmeta --extern phf_codegen=/playground/target/debug/deps/libphf_codegen-0a22b9f073d2ac5f.rmeta --extern phf_generator=/playground/target/debug/deps/libphf_generator-fa31cc5937c1366b.rmeta --extern phf_shared=/playground/target/debug/deps/libphf_shared-fad1162acac5eff2.rmeta --extern pin_project=/playground/target/debug/deps/libpin_project-ec3d25505787a756.rmeta --extern pin_project_internal=/playground/target/debug/deps/libpin_project_internal-73a5a7f4aa4c2d60.so --extern pin_project_lite=/playground/target/debug/deps/libpin_project_lite-507f0ddc461ac52a.rmeta --extern pin_utils=/playground/target/debug/deps/libpin_utils-b0bf3f0688139ba1.rmeta --extern pkg_config=/playground/target/debug/deps/libpkg_config-b9f036c91b0208e1.rmeta --extern png=/playground/target/debug/deps/libpng-ed58c4edc0e76685.rmeta --extern postgres=/playground/target/debug/deps/libpostgres-36ba99bf5a760591.rmeta --extern postgres_protocol=/playground/target/debug/deps/libpostgres_protocol-df694fd6f17dacce.rmeta --extern postgres_types=/playground/target/debug/deps/libpostgres_types-13911fa91914472f.rmeta --extern ppv_lite86=/playground/target/debug/deps/libppv_lite86-b67f90ab267192fa.rmeta --extern precomputed_hash=/playground/target/debug/deps/libprecomputed_hash-1298520f088678de.rmeta --extern proc_macro_hack=/playground/target/debug/deps/libproc_macro_hack-91e0b1e0fa231bd6.so --extern proc_macro_nested=/playground/target/debug/deps/libproc_macro_nested-9a323edbb9ceaf9f.rmeta --extern proc_macro2=/playground/target/debug/deps/libproc_macro2-060ca5bfbc1bf638.rmeta --extern quick_error=/playground/target/debug/deps/libquick_error-65732850c28200f7.rmeta --extern quote=/playground/target/debug/deps/libquote-064c25252b31ad2c.rmeta --extern rand_0_7_3=/playground/target/debug/deps/librand-dcaf94a3452ccbd5.rmeta --extern rand=/playground/target/debug/deps/librand-57f73491216dd09e.rmeta --extern rand_chacha_0_2_2=/playground/target/debug/deps/librand_chacha-3f51021686b1aca4.rmeta --extern rand_chacha=/playground/target/debug/deps/librand_chacha-b118d39b58dbcc78.rmeta --extern rand_core_0_5_1=/playground/target/debug/deps/librand_core-98665ba0d9e7e18e.rmeta --extern rand_core=/playground/target/debug/deps/librand_core-9ca0ca4bf08fd6c6.rmeta --extern rand_distr=/playground/target/debug/deps/librand_distr-95a60b6a6cc98242.rmeta --extern rand_hc=/playground/target/debug/deps/librand_hc-01b90daf63fd00e4.rmeta --extern rand_pcg=/playground/target/debug/deps/librand_pcg-b96b1f139a2a53ae.rmeta --extern rawpointer=/playground/target/debug/deps/librawpointer-63eb1bba55566369.rmeta --extern rayon=/playground/target/debug/deps/librayon-7eef2ab1e1ad301a.rmeta --extern rayon_core=/playground/target/debug/deps/librayon_core-ddf687ea96476a80.rmeta --extern regex=/playground/target/debug/deps/libregex-9dfa454727a4186c.rmeta --extern regex_automata=/playground/target/debug/deps/libregex_automata-6c0118ae8f4b0501.rmeta --extern regex_syntax=/playground/target/debug/deps/libregex_syntax-bf3087c853715238.rmeta --extern remove_dir_all=/playground/target/debug/deps/libremove_dir_all-6db8331ec1c4e72f.rmeta --extern reqwest=/playground/target/debug/deps/libreqwest-8eaa741a32ef6c9b.rmeta --extern ring=/playground/target/debug/deps/libring-0e3a7bcf5b84a111.rmeta --extern rusqlite=/playground/target/debug/deps/librusqlite-f965bbb7ce310b5e.rmeta --extern rustc_demangle=/playground/target/debug/deps/librustc_demangle-89275fcf7a4c373a.rmeta --extern rustc_version=/playground/target/debug/deps/librustc_version-7ff528eab49435cb.rmeta --extern ryu=/playground/target/debug/deps/libryu-bdb837b197ad7926.rmeta --extern same_file=/playground/target/debug/deps/libsame_file-7a3f353776f43cdd.rmeta --extern scoped_threadpool=/playground/target/debug/deps/libscoped_threadpool-14c0b9d1ec39c6a3.rmeta --extern scopeguard=/playground/target/debug/deps/libscopeguard-866386222a022128.rmeta --extern select=/playground/target/debug/deps/libselect-55459294c643c06d.rmeta --extern semver=/playground/target/debug/deps/libsemver-cdd44e1024de9a25.rmeta --extern semver_parser=/playground/target/debug/deps/libsemver_parser-fa22a77381d4b647.rmeta --extern serde=/playground/target/debug/deps/libserde-1888f9d8d58220b4.rmeta --extern serde_value=/playground/target/debug/deps/libserde_value-6e46a6669106de39.rmeta --extern serde_derive=/playground/target/debug/deps/libserde_derive-6bc991288fb5d9b4.so --extern serde_json=/playground/target/debug/deps/libserde_json-070bb3c2757c4c43.rmeta --extern serde_urlencoded=/playground/target/debug/deps/libserde_urlencoded-536eef9262e2726c.rmeta --extern serde_yaml=/playground/target/debug/deps/libserde_yaml-874585e500e407da.rmeta --extern sha2=/playground/target/debug/deps/libsha2-c445e24acc0cb202.rmeta --extern simba=/playground/target/debug/deps/libsimba-ad3116cfa9c86d99.rmeta --extern siphasher=/playground/target/debug/deps/libsiphasher-132f64348b239a67.rmeta --extern slab=/playground/target/debug/deps/libslab-8a1f5dd6c4239e38.rmeta --extern smallvec=/playground/target/debug/deps/libsmallvec-babc01fe749f5dc1.rmeta --extern smawk=/playground/target/debug/deps/libsmawk-6ed7cfb7fa793e0c.rmeta --extern socket2=/playground/target/debug/deps/libsocket2-b2d957262c85a2a8.rmeta --extern spin=/playground/target/debug/deps/libspin-4d2c7b2ce1e7d317.rmeta --extern string_cache=/playground/target/debug/deps/libstring_cache-b7f379a59d261d72.rmeta --extern string_cache_codegen=/playground/target/debug/deps/libstring_cache_codegen-08d58736ad714236.rmeta --extern stringprep=/playground/target/debug/deps/libstringprep-555b5d6630a5d6f3.rmeta --extern strsim_0_8_0=/playground/target/debug/deps/libstrsim-de24b5a82a358084.rmeta --extern strsim=/playground/target/debug/deps/libstrsim-f8a23f77c73daaa0.rmeta --extern subtle=/playground/target/debug/deps/libsubtle-e4d742d62e753012.rmeta --extern syn=/playground/target/debug/deps/libsyn-349d0e99d3f47a09.rmeta --extern tar=/playground/target/debug/deps/libtar-54f248a085927db4.rmeta --extern tempfile=/playground/target/debug/deps/libtempfile-e8c169384cf9acd7.rmeta --extern tendril=/playground/target/debug/deps/libtendril-0f1e7e0ad92436f6.rmeta --extern termcolor=/playground/target/debug/deps/libtermcolor-ac34df5ab449410c.rmeta --extern textwrap_0_11_0=/playground/target/debug/deps/libtextwrap-a1244e561e912773.rmeta --extern textwrap=/playground/target/debug/deps/libtextwrap-675fadc2140fcbbe.rmeta --extern thiserror=/playground/target/debug/deps/libthiserror-44fec8a0be858026.rmeta --extern thiserror_impl=/playground/target/debug/deps/libthiserror_impl-932c99f7969d8e8b.so --extern thread_id=/playground/target/debug/deps/libthread_id-018635eea4b1ecb2.rmeta --extern thread_local=/playground/target/debug/deps/libthread_local-ff6c52c3d6835455.rmeta --extern threadpool=/playground/target/debug/deps/libthreadpool-5085cc56f5e88377.rmeta --extern tiff=/playground/target/debug/deps/libtiff-d34f01c7b93c0b74.rmeta --extern time_0_1_44=/playground/target/debug/deps/libtime-b6f5620d8ee98e52.rmeta --extern time=/playground/target/debug/deps/libtime-24a3f57165fc7109.rmeta --extern tinyvec=/playground/target/debug/deps/libtinyvec-ced9eac1c325d397.rmeta --extern tinyvec_macros=/playground/target/debug/deps/libtinyvec_macros-8f36f65da14d810a.rmeta --extern tokio=/playground/target/debug/deps/libtokio-2d4e5b2f053c238c.rmeta --extern tokio_native_tls=/playground/target/debug/deps/libtokio_native_tls-5cd859ef40ab943b.rmeta --extern tokio_postgres=/playground/target/debug/deps/libtokio_postgres-e3e685207cb2c28f.rmeta --extern tokio_util=/playground/target/debug/deps/libtokio_util-759d5c43be6db74f.rmeta --extern toml=/playground/target/debug/deps/libtoml-0f72b7e85b193b77.rmeta --extern tower_service=/playground/target/debug/deps/libtower_service-c041688e0e20bd6a.rmeta --extern tracing=/playground/target/debug/deps/libtracing-abc8cd686ebb782a.rmeta --extern tracing_core=/playground/target/debug/deps/libtracing_core-54d5adcef9e1e8b6.rmeta --extern traitobject=/playground/target/debug/deps/libtraitobject-ac408b27f7e01f65.rmeta --extern try_lock=/playground/target/debug/deps/libtry_lock-849bac2fba98b76b.rmeta --extern typemap=/playground/target/debug/deps/libtypemap-0e4274a17e401313.rmeta --extern typenum=/playground/target/debug/deps/libtypenum-5fcd01e1c3587900.rmeta --extern ucd_trie=/playground/target/debug/deps/libucd_trie-93387f8d9b9d3865.rmeta --extern unicase=/playground/target/debug/deps/libunicase-5f5e7ca06c6ec24d.rmeta --extern unicode_bidi=/playground/target/debug/deps/libunicode_bidi-ab05b3fee2d813f5.rmeta --extern unicode_linebreak=/playground/target/debug/deps/libunicode_linebreak-ae81d2c1cae695be.rmeta --extern unicode_normalization=/playground/target/debug/deps/libunicode_normalization-93caf251b161465e.rmeta --extern unicode_segmentation=/playground/target/debug/deps/libunicode_segmentation-84fad06bf49b6f83.rmeta --extern unicode_width=/playground/target/debug/deps/libunicode_width-89b03b59aa6daeee.rmeta --extern unicode_xid=/playground/target/debug/deps/libunicode_xid-e62049c489d25ae7.rmeta --extern unsafe_any=/playground/target/debug/deps/libunsafe_any-843b450d6d60d480.rmeta --extern untrusted=/playground/target/debug/deps/libuntrusted-ecc06c34234b2716.rmeta --extern url=/playground/target/debug/deps/liburl-be0b06e007c78966.rmeta --extern utf8=/playground/target/debug/deps/libutf8-8dc7fb5a31151cba.rmeta --extern vec_map=/playground/target/debug/deps/libvec_map-d4f07e9e0554b315.rmeta --extern version_check=/playground/target/debug/deps/libversion_check-0914641c3c545b20.rmeta --extern walkdir=/playground/target/debug/deps/libwalkdir-5f8042bccd6ce967.rmeta --extern want=/playground/target/debug/deps/libwant-7a61da5bbba8c1d5.rmeta --extern weezl=/playground/target/debug/deps/libweezl-d16c0a64cf685d9c.rmeta --extern winapi=/playground/target/debug/deps/libwinapi-816acb549345e22d.rmeta --extern xattr=/playground/target/debug/deps/libxattr-33d94a0de1f71084.rmeta --extern xml5ever=/playground/target/debug/deps/libxml5ever-43258111cfec63c6.rmeta --extern yaml_rust=/playground/target/debug/deps/libyaml_rust-4b0c1291d8cc95ca.rmeta -L native=/playground/target/debug/build/libsqlite3-sys-0d351e27eaa1e97b/out -L native=/playground/target/debug/build/ring-38bf9793e960dc3f/out` (signal: 4, SIGILL: illegal instruction)
warning: build failed, waiting for other jobs to finish...
error: build failed

@CraftSpider CraftSpider added 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. C-bug Category: This is a bug. F-generic_const_exprs `#![feature(generic_const_exprs)]` F-const_trait_impl `#![feature(const_trait_impl)]` labels Aug 17, 2021
@CraftSpider
Copy link
Contributor Author

Update: Further minimized example, the actual value of the constants is irrelevant, it seems the dependent where bounds are the primary issue.

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d23e4644de7f168d60ef444233f82671

@BoxyUwU BoxyUwU added the A-const-generics Area: const generics (parameters and arguments) label Aug 18, 2021
@jyn514 jyn514 added the requires-nightly This issue requires a nightly compiler in some way. label Aug 30, 2021
@CraftSpider
Copy link
Contributor Author

It appears somewhere along the way, the playground link started working. Does this need a test, something in glacier, or any other work?

@JohnTitor JohnTitor added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label May 5, 2022
JohnTitor added a commit to JohnTitor/rust that referenced this issue May 19, 2022
bors added a commit to rust-lang-ci/rust that referenced this issue May 19, 2022
Rollup of 6 pull requests

Successful merges:

 - rust-lang#96539 (Add release notes for 1.61.0)
 - rust-lang#97142 (move processing of `source_scope_data` into `MutVisitor`'s impl of `Integrator` when inline)
 - rust-lang#97155 (Fix doc typo)
 - rust-lang#97169 (Improve `u32 as char` cast diagnostic)
 - rust-lang#97170 (Remove unnecessay .report() on ExitCode)
 - rust-lang#97171 (Add regression test for rust-lang#88119)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors closed this as completed in 1fb9be0 May 20, 2022
@fee1-dead fee1-dead reopened this Mar 27, 2023
@fee1-dead fee1-dead removed the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Mar 28, 2023
fee1-dead added a commit to fee1-dead-contrib/rust that referenced this issue Apr 16, 2023
…, r=oli-obk

Remove `remap_env_constness` in queries

This removes some of the complexities with const traits. rust-lang#88119 used to be caused by this but was fixed by `param_env = param_env.without_const()`.
fee1-dead added a commit to fee1-dead-contrib/rust that referenced this issue Apr 16, 2023
…, r=oli-obk

Remove `remap_env_constness` in queries

This removes some of the complexities with const traits. rust-lang#88119 used to be caused by this but was fixed by `param_env = param_env.without_const()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) C-bug Category: This is a bug. F-const_trait_impl `#![feature(const_trait_impl)]` F-generic_const_exprs `#![feature(generic_const_exprs)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants