Repository: rust
Issue: Compiler error on build after "git switch master"
Labels: I-ICE,T-compiler,A-incr-comp,C-bug,S-needs-repro

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.
http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/
-->

I'm not entirely sure what caused this and re-cloning the repo seems to have fixed it but I'll give all the information I can think of

Rust is installed via nix flake on nixos 24.05 (flake is on unstable) (the exact flake.nix and flake.lock are in the github repo mentioned below)

I was on a different branch developing a new feature, when I git switch'd back to master it refused to build with the error I've provided

Have just renamed the old cloned repo, haven't uploaded it for now because I don't want to accidentally leak secrets but can zip it up if need be

### Code
https://github.com/flashgnash/ordis/tree/e9a69059eafe4d12053cdcb40b46fda89c952c93

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```

rustc 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball)
binary: rustc
commit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6
commit-date: 2024-04-29
host: x86_64-unknown-linux-gnu
release: 1.78.0
LLVM version: 18.1.7

```

### Error output

```
thread 'rustc' panicked at compiler/rustc_middle/src/dep_graph/dep_node.rs:198:17:
Failed to extract DefId: def_kind 15bfbc7bb9f67908-3a980503a83c2f72
stack backtrace:
   0:     0x7fcfb3b12a65 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4a5853078ed6ad5e
   1:     0x7fcfb3b8fbfc - core::fmt::write::hcb5164cc0001627e
   2:     0x7fcfb3b117f5 - std::io::Write::write_fmt::h4f047c3956a46825
   3:     0x7fcfb3b12834 - std::sys_common::backtrace::print::h33b76037fd95b2fe
   4:     0x7fcfb3b28023 - std::panicking::default_hook::{{closure}}::hd7fd2e4913eae4ac
   5:     0x7fcfb3b27d7a - std::panicking::default_hook::h13a9a2eb684db87c
   6:     0x7fcfb44296b8 - <alloc[5cc0e8a89cb545a4]::boxed::Box<rustc_driver_impl[931ba922f877923b]::install_ice_hook::{closure#0}> as core[ac22999f73547012]::ops::function::Fn<(&dyn for<'a, 'b> core[ac22999f73547012]::ops::function::Fn<(&'a core[ac22999f73547012]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[ac22999f73547012]::marker::Send + core[ac22999f73547012]::marker::Sync, &core[ac22999f73547012]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fcfb3b286f8 - std::panicking::rust_panic_with_hook::hda39260d38680d2a
   8:     0x7fcfb3b131b2 - std::panicking::begin_panic_handler::{{closure}}::h150d47ece314bd47
   9:     0x7fcfb3b12c76 - std::sys_common::backtrace::__rust_end_short_backtrace::hf5ef31e5afaaca81
  10:     0x7fcfb3b28294 - rust_begin_unwind
  11:     0x7fcfb3af6765 - core::panicking::panic_fmt::h9a659e19ee4930b5
  12:     0x7fcfb69db9c0 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode as rustc_middle[7d1bc35d0b9de3f6]::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
  13:     0x7fcfb6ab9dee - <rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt>::def_path_hash_to_def_id
  14:     0x7fcfb69db935 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode as rustc_middle[7d1bc35d0b9de3f6]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  15:     0x7fcfb59c0991 - <rustc_query_impl[6a0caddc8ed0f104]::plumbing::query_callback<rustc_query_impl[6a0caddc8ed0f104]::query_impl::def_kind::QueryType>::{closure#0} as core[ac22999f73547012]::ops::function::FnOnce<(rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode)>>::call_once
  16:     0x7fcfb595cb54 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  17:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  18:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  19:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  20:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  21:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  22:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  23:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  24:     0x7fcfb595c8e8 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  25:     0x7fcfb5bdc672 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::DefaultCache<rustc_type_ir[68759b59dcc07dd8]::canonical::Canonical<rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, rustc_middle[7d1bc35d0b9de3f6]::ty::ParamEnvAnd<rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate>>, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  26:     0x7fcfb5b9c46e - rustc_query_impl[6a0caddc8ed0f104]::query_impl::type_op_prove_predicate::get_query_incr::__rust_end_short_backtrace
  27:     0x7fcfb5e6e6a6 - <rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate as rustc_trait_selection[dcf608d57be48396]::traits::query::type_op::QueryTypeOp>::perform_query
  28:     0x7fcfb57f0e8b - <rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate as rustc_trait_selection[dcf608d57be48396]::traits::query::type_op::QueryTypeOp>::fully_perform_into
  29:     0x7fcfb58049c7 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle[7d1bc35d0b9de3f6]::ty::ParamEnvAnd<rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate>>
  30:     0x7fcfb58083e8 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  31:     0x7fcfb57fb33c - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeVerifier as rustc_middle[7d1bc35d0b9de3f6]::mir::visit::Visitor>::visit_constant
  32:     0x7fcfb57fc3f4 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeVerifier as rustc_middle[7d1bc35d0b9de3f6]::mir::visit::Visitor>::visit_body
  33:     0x7fcfb57f69d9 - rustc_borrowck[666edc9f3b3acd9c]::type_check::type_check
  34:     0x7fcfb57a3a01 - rustc_borrowck[666edc9f3b3acd9c]::nll::compute_regions
  35:     0x7fcfb565af5d - rustc_borrowck[666edc9f3b3acd9c]::do_mir_borrowck
  36:     0x7fcfb564c4af - rustc_borrowck[666edc9f3b3acd9c]::mir_borrowck
  37:     0x7fcfb59f0d0c - rustc_query_impl[6a0caddc8ed0f104]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>
  38:     0x7fcfb5ae0bec - <rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[ac22999f73547012]::ops::function::FnOnce<(rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, rustc_span[884527523b9bf0a3]::def_id::LocalDefId)>>::call_once
  39:     0x7fcfb5c20cd9 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::VecCache<rustc_span[884527523b9bf0a3]::def_id::LocalDefId, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  40:     0x7fcfb5af34dc - rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace
  41:     0x7fcfb461291e - std[c2020301f641288b]::panicking::try::<(), core[ac22999f73547012]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[57985108c29413d2]::sync::parallel::disabled::par_for_each_in<&[rustc_span[884527523b9bf0a3]::def_id::LocalDefId], <rustc_middle[7d1bc35d0b9de3f6]::hir::map::Map>::par_body_owners<rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  42:     0x7fcfb462388b - rustc_data_structures[57985108c29413d2]::sync::parallel::disabled::par_for_each_in::<&[rustc_span[884527523b9bf0a3]::def_id::LocalDefId], <rustc_middle[7d1bc35d0b9de3f6]::hir::map::Map>::par_body_owners<rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  43:     0x7fcfb460d156 - <rustc_session[526f1292888eebe7]::session::Session>::time::<(), rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}>
  44:     0x7fcfb45dc524 - rustc_interface[8e1741ee6322df64]::passes::analysis
  45:     0x7fcfb59f442a - rustc_query_impl[6a0caddc8ed0f104]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 1usize]>>
  46:     0x7fcfb59a68c8 - <rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::dynamic_query::{closure#2} as core[ac22999f73547012]::ops::function::FnOnce<(rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, ())>>::call_once
  47:     0x7fcfb5bcd417 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::SingleCache<rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  48:     0x7fcfb5aeda4e - rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  49:     0x7fcfb43f9b71 - <rustc_middle[7d1bc35d0b9de3f6]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>
  50:     0x7fcfb43f6d50 - rustc_span[884527523b9bf0a3]::create_session_globals_then::<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}>
  51:     0x7fcfb443b6b0 - std[c2020301f641288b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8e1741ee6322df64]::util::run_in_thread_with_globals<rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>
  52:     0x7fcfb44178c8 - <<std[c2020301f641288b]::thread::Builder>::spawn_unchecked_<rustc_interface[8e1741ee6322df64]::util::run_in_thread_with_globals<rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#1} as core[ac22999f73547012]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  53:     0x7fcfb3b497e5 - std::sys::pal::unix::thread::Thread::new::thread_start::h0e92b076ec0ac240
  54:     0x7fcfb3951272 - start_thread
  55:     0x7fcfb39ccdec - __GI___clone3
  56:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<diesel::query_builder::select_statement::SelectStatement<diesel::query_builder::from_clause::FromClause<db::schema::users::table>, diesel::query_builder::select_clause::DefaultSelectClause<diesel::query_builder::from_clause::FromClause<db::schema::users::table>>, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::WhereClause<diesel::expression::grouped::Grouped<diesel::expression::operators::Eq<db::schema::users::columns::id, diesel::expression::bound::Bound<diesel::sql_types::Text, &alloc::string::String>>>>> as diesel::query_builder::update_statement::target::IntoUpdateTarget>, polarity:Positive), bound_vars: [] } }`
#1 [mir_borrowck] borrow-checking `db::users::update`
#2 [analysis] running analysis passes on this crate
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 representability(3b4ce1e0f02f78db-243ddabf0b0fed5c)
#1 adt_sized_constraint(thread 'rustc' panicked at compiler/rustc_middle/src/dep_graph/dep_node.rs:198:17:
Failed to extract DefId: adt_sized_constraint 15bfbc7bb9f67908-3a980503a83c2f72
stack backtrace:
   0:     0x7fcfb3b12a65 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4a5853078ed6ad5e
   1:     0x7fcfb3b8fbfc - core::fmt::write::hcb5164cc0001627e
   2:     0x7fcfb3b117f5 - std::io::Write::write_fmt::h4f047c3956a46825
   3:     0x7fcfb3b12834 - std::sys_common::backtrace::print::h33b76037fd95b2fe
   4:     0x7fcfb3b28023 - std::panicking::default_hook::{{closure}}::hd7fd2e4913eae4ac
   5:     0x7fcfb3b27d7a - std::panicking::default_hook::h13a9a2eb684db87c
   6:     0x7fcfb44296b8 - <alloc[5cc0e8a89cb545a4]::boxed::Box<rustc_driver_impl[931ba922f877923b]::install_ice_hook::{closure#0}> as core[ac22999f73547012]::ops::function::Fn<(&dyn for<'a, 'b> core[ac22999f73547012]::ops::function::Fn<(&'a core[ac22999f73547012]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[ac22999f73547012]::marker::Send + core[ac22999f73547012]::marker::Sync, &core[ac22999f73547012]::panic::panic_info::PanicInfo)>>::call
   7:     0x7fcfb3b286f8 - std::panicking::rust_panic_with_hook::hda39260d38680d2a
   8:     0x7fcfb3b131b2 - std::panicking::begin_panic_handler::{{closure}}::h150d47ece314bd47
   9:     0x7fcfb3b12c76 - std::sys_common::backtrace::__rust_end_short_backtrace::hf5ef31e5afaaca81
  10:     0x7fcfb3b28294 - rust_begin_unwind
  11:     0x7fcfb3af6765 - core::panicking::panic_fmt::h9a659e19ee4930b5
  12:     0x7fcfb69db9c0 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode as rustc_middle[7d1bc35d0b9de3f6]::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
  13:     0x7fcfb6ab9dee - <rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt>::def_path_hash_to_def_id
  14:     0x7fcfb69db935 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode as rustc_middle[7d1bc35d0b9de3f6]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  15:     0x7fcfb4664926 - rustc_interface[8e1741ee6322df64]::callbacks::dep_node_debug
  16:     0x7fcfb6b14266 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::dep_node::DepNode as core[ac22999f73547012]::fmt::Debug>::fmt
  17:     0x7fcfb3b8fbfc - core::fmt::write::hcb5164cc0001627e
  18:     0x7fcfb3b21806 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h2688b7b88d9231b9
  19:     0x7fcfb3b2213a - std::io::stdio::_eprint::h956e1cc5820419a2
  20:     0x7fcfb42944b4 - rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::print_markframe_trace::<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>
  21:     0x7fcfb595d1d8 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  22:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  23:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  24:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  25:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  26:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  27:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  28:     0x7fcfb595cbb4 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  29:     0x7fcfb595c8e8 - <rustc_query_system[a49b8714d4c5fecc]::dep_graph::graph::DepGraphData<rustc_middle[7d1bc35d0b9de3f6]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt>
  30:     0x7fcfb5bdc672 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::DefaultCache<rustc_type_ir[68759b59dcc07dd8]::canonical::Canonical<rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, rustc_middle[7d1bc35d0b9de3f6]::ty::ParamEnvAnd<rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate>>, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  31:     0x7fcfb5b9c46e - rustc_query_impl[6a0caddc8ed0f104]::query_impl::type_op_prove_predicate::get_query_incr::__rust_end_short_backtrace
  32:     0x7fcfb5e6e6a6 - <rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate as rustc_trait_selection[dcf608d57be48396]::traits::query::type_op::QueryTypeOp>::perform_query
  33:     0x7fcfb57f0e8b - <rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate as rustc_trait_selection[dcf608d57be48396]::traits::query::type_op::QueryTypeOp>::fully_perform_into
  34:     0x7fcfb58049c7 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle[7d1bc35d0b9de3f6]::ty::ParamEnvAnd<rustc_middle[7d1bc35d0b9de3f6]::traits::query::type_op::ProvePredicate>>
  35:     0x7fcfb58083e8 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  36:     0x7fcfb57fb33c - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeVerifier as rustc_middle[7d1bc35d0b9de3f6]::mir::visit::Visitor>::visit_constant
  37:     0x7fcfb57fc3f4 - <rustc_borrowck[666edc9f3b3acd9c]::type_check::TypeVerifier as rustc_middle[7d1bc35d0b9de3f6]::mir::visit::Visitor>::visit_body
  38:     0x7fcfb57f69d9 - rustc_borrowck[666edc9f3b3acd9c]::type_check::type_check
  39:     0x7fcfb57a3a01 - rustc_borrowck[666edc9f3b3acd9c]::nll::compute_regions
  40:     0x7fcfb565af5d - rustc_borrowck[666edc9f3b3acd9c]::do_mir_borrowck
  41:     0x7fcfb564c4af - rustc_borrowck[666edc9f3b3acd9c]::mir_borrowck
  42:     0x7fcfb59f0d0c - rustc_query_impl[6a0caddc8ed0f104]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>
  43:     0x7fcfb5ae0bec - <rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::dynamic_query::{closure#2} as core[ac22999f73547012]::ops::function::FnOnce<(rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, rustc_span[884527523b9bf0a3]::def_id::LocalDefId)>>::call_once
  44:     0x7fcfb5c20cd9 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::VecCache<rustc_span[884527523b9bf0a3]::def_id::LocalDefId, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  45:     0x7fcfb5af34dc - rustc_query_impl[6a0caddc8ed0f104]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace
  46:     0x7fcfb461291e - std[c2020301f641288b]::panicking::try::<(), core[ac22999f73547012]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[57985108c29413d2]::sync::parallel::disabled::par_for_each_in<&[rustc_span[884527523b9bf0a3]::def_id::LocalDefId], <rustc_middle[7d1bc35d0b9de3f6]::hir::map::Map>::par_body_owners<rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  47:     0x7fcfb462388b - rustc_data_structures[57985108c29413d2]::sync::parallel::disabled::par_for_each_in::<&[rustc_span[884527523b9bf0a3]::def_id::LocalDefId], <rustc_middle[7d1bc35d0b9de3f6]::hir::map::Map>::par_body_owners<rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  48:     0x7fcfb460d156 - <rustc_session[526f1292888eebe7]::session::Session>::time::<(), rustc_interface[8e1741ee6322df64]::passes::analysis::{closure#1}>
  49:     0x7fcfb45dc524 - rustc_interface[8e1741ee6322df64]::passes::analysis
  50:     0x7fcfb59f442a - rustc_query_impl[6a0caddc8ed0f104]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 1usize]>>
  51:     0x7fcfb59a68c8 - <rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::dynamic_query::{closure#2} as core[ac22999f73547012]::ops::function::FnOnce<(rustc_middle[7d1bc35d0b9de3f6]::ty::context::TyCtxt, ())>>::call_once
  52:     0x7fcfb5bcd417 - rustc_query_system[a49b8714d4c5fecc]::query::plumbing::try_execute_query::<rustc_query_impl[6a0caddc8ed0f104]::DynamicConfig<rustc_query_system[a49b8714d4c5fecc]::query::caches::SingleCache<rustc_middle[7d1bc35d0b9de3f6]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[6a0caddc8ed0f104]::plumbing::QueryCtxt, true>
  53:     0x7fcfb5aeda4e - rustc_query_impl[6a0caddc8ed0f104]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  54:     0x7fcfb43f9b71 - <rustc_middle[7d1bc35d0b9de3f6]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>
  55:     0x7fcfb43f6d50 - rustc_span[884527523b9bf0a3]::create_session_globals_then::<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}>
  56:     0x7fcfb443b6b0 - std[c2020301f641288b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8e1741ee6322df64]::util::run_in_thread_with_globals<rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>
  57:     0x7fcfb44178c8 - <<std[c2020301f641288b]::thread::Builder>::spawn_unchecked_<rustc_interface[8e1741ee6322df64]::util::run_in_thread_with_globals<rustc_interface[8e1741ee6322df64]::interface::run_compiler<core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>, rustc_driver_impl[931ba922f877923b]::run_compiler::{closure#0}>::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ac22999f73547012]::result::Result<(), rustc_span[884527523b9bf0a3]::ErrorGuaranteed>>::{closure#1} as core[ac22999f73547012]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  58:     0x7fcfb3b497e5 - std::sys::pal::unix::thread::Thread::new::thread_start::h0e92b076ec0ac240
  59:     0x7fcfb3951272 - start_thread
  60:     0x7fcfb39ccdec - __GI___clone3
  61:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<diesel::query_builder::select_statement::SelectStatement<diesel::query_builder::from_clause::FromClause<db::schema::users::table>, diesel::query_builder::select_clause::DefaultSelectClause<diesel::query_builder::from_clause::FromClause<db::schema::users::table>>, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::WhereClause<diesel::expression::grouped::Grouped<diesel::expression::operators::Eq<db::schema::users::columns::id, diesel::expression::bound::Bound<diesel::sql_types::Text, &alloc::string::String>>>>> as diesel::query_builder::update_statement::target::IntoUpdateTarget>, polarity:Positive), bound_vars: [] } }`
#1 [mir_borrowck] borrow-checking `db::users::update`
#2 [analysis] running analysis passes on this crate
end of query stack
warning: `ordis` (bin "ordis") generated 7 warnings (run `cargo fix --bin "ordis"` to apply 2 suggestions)
error: could not compile `ordis` (bin "ordis"); 7 warnings emitted



```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
 nix-shell-env
 Ordis <master> 󱪗 
❯ cargo run > trace.txt
   Compiling ordis v0.2.0 (/home/flashgnash/Source/rust/Ordis)
warning: variant `user` should have an upper camel case name
  --> src/gpt.rs:23:5
   |
23 |     user,
   |     ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `User`
   |
   = note: `#[warn(non_camel_case_types)]` on by default

warning: variant `assistant` should have an upper camel case name
  --> src/gpt.rs:24:5
   |
24 |     assistant,
   |     ^^^^^^^^^ help: convert the identifier to upper camel case: `Assistant`

warning: variant `system` should have an upper camel case name
  --> src/gpt.rs:25:5
   |
25 |     system
   |     ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `System`

warning: unused variable: `user_name`
   --> src/main.rs:188:9
    |
188 |     let user_name = &author.name;
    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_name`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
  --> src/common.rs:14:9
   |
14 |     let mut message = ctx.http.get_message(channel_id, message_id).await?;
   |         ----^^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: unused variable: `stat_block_thinking_message`
   --> src/stat_puller.rs:195:9
    |
195 |     let stat_block_thinking_message = CreateReply::default()
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stat_block_thinking_message`

warning: variable does not need to be mutable
   --> src/gpt.rs:150:9
    |
150 |     let mut model = "gpt-4o-mini";
    |         ----^^^^^
    |         |
    |         help: remove this `mut`

thread 'rustc' panicked at compiler/rustc_middle/src/dep_graph/dep_node.rs:198:17:
Failed to extract DefId: def_kind 15bfbc7bb9f67908-3a980503a83c2f72
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: <rustc_query_system::dep_graph::dep_node::DepNode as rustc_middle::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
   3: <rustc_middle::ty::context::TyCtxt>::def_path_hash_to_def_id
   4: <rustc_query_system::dep_graph::dep_node::DepNode as rustc_middle::dep_graph::dep_node::DepNodeExt>::extract_def_id
   5: <rustc_query_impl::plumbing::query_callback<rustc_query_impl::query_impl::def_kind::QueryType>::{closure#0} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_query_system::dep_graph::dep_node::DepNode)>>::call_once
   6: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
   7: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
   8: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
   9: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  10: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  11: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  12: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  13: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  14: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl::plumbing::QueryCtxt>
  15: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::DefaultCache<rustc_type_ir::canonical::Canonical<rustc_middle::ty::context::TyCtxt, rustc_middle::ty::ParamEnvAnd<rustc_middle::traits::query::type_op::ProvePredicate>>, rustc_middle::query::erase::Erased<[u8; 8]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, true>
  16: <rustc_middle::traits::query::type_op::ProvePredicate as rustc_trait_selection::traits::query::type_op::QueryTypeOp>::perform_query
  17: <rustc_middle::traits::query::type_op::ProvePredicate as rustc_trait_selection::traits::query::type_op::QueryTypeOp>::fully_perform_into
  18: <rustc_borrowck::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle::ty::ParamEnvAnd<rustc_middle::traits::query::type_op::ProvePredicate>>
  19: <rustc_borrowck::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  20: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_constant
  21: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_body
  22: rustc_borrowck::type_check::type_check
  23: rustc_borrowck::nll::compute_regions
  24: rustc_borrowck::do_mir_borrowck
  25: rustc_borrowck::mir_borrowck
      [... omitted 2 frames ...]
  26: std::panicking::try::<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::disabled::par_for_each_in<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  27: rustc_data_structures::sync::parallel::disabled::par_for_each_in::<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  28: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#1}>
  29: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  30: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure#3}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
  31: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<diesel::query_builder::select_statement::SelectStatement<diesel::query_builder::from_clause::FromClause<db::schema::users::table>, diesel::query_builder::select_clause::DefaultSelectClause<diesel::query_builder::from_clause::FromClause<db::schema::users::table>>, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::WhereClause<diesel::expression::grouped::Grouped<diesel::expression::operators::Eq<db::schema::users::columns::id, diesel::expression::bound::Bound<diesel::sql_types::Text, &alloc::string::String>>>>> as diesel::query_builder::update_statement::target::IntoUpdateTarget>, polarity:Positive), bound_vars: [] } }`
#1 [mir_borrowck] borrow-checking `db::users::update`
#2 [analysis] running analysis passes on this crate
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 representability(3b4ce1e0f02f78db-243ddabf0b0fed5c)
#1 adt_sized_constraint(thread 'rustc' panicked at compiler/rustc_middle/src/dep_graph/dep_node.rs:198:17:
Failed to extract DefId: adt_sized_constraint 15bfbc7bb9f67908-3a980503a83c2f72
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: <rustc_query_system::dep_graph::dep_node::DepNode as rustc_middle::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
   3: <rustc_middle::ty::context::TyCtxt>::def_path_hash_to_def_id
   4: <rustc_query_system::dep_graph::dep_node::DepNode as rustc_middle::dep_graph::dep_node::DepNodeExt>::extract_def_id
   5: rustc_interface::callbacks::dep_node_debug
   6: <rustc_query_system::dep_graph::dep_node::DepNode as core::fmt::Debug>::fmt
   7: core::fmt::write
   8: <&std::io::stdio::Stderr as std::io::Write>::write_fmt
   9: std::io::stdio::_eprint
  10: rustc_query_system::dep_graph::graph::print_markframe_trace::<rustc_middle::dep_graph::DepsType>
  11: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  12: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  13: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  14: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  15: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  16: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  17: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  18: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl::plumbing::QueryCtxt>
  19: <rustc_query_system::dep_graph::graph::DepGraphData<rustc_middle::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl::plumbing::QueryCtxt>
  20: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::DefaultCache<rustc_type_ir::canonical::Canonical<rustc_middle::ty::context::TyCtxt, rustc_middle::ty::ParamEnvAnd<rustc_middle::traits::query::type_op::ProvePredicate>>, rustc_middle::query::erase::Erased<[u8; 8]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, true>
  21: <rustc_middle::traits::query::type_op::ProvePredicate as rustc_trait_selection::traits::query::type_op::QueryTypeOp>::perform_query
  22: <rustc_middle::traits::query::type_op::ProvePredicate as rustc_trait_selection::traits::query::type_op::QueryTypeOp>::fully_perform_into
  23: <rustc_borrowck::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle::ty::ParamEnvAnd<rustc_middle::traits::query::type_op::ProvePredicate>>
  24: <rustc_borrowck::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  25: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_constant
  26: <rustc_borrowck::type_check::TypeVerifier as rustc_middle::mir::visit::Visitor>::visit_body
  27: rustc_borrowck::type_check::type_check
  28: rustc_borrowck::nll::compute_regions
  29: rustc_borrowck::do_mir_borrowck
  30: rustc_borrowck::mir_borrowck
      [... omitted 2 frames ...]
  31: std::panicking::try::<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::disabled::par_for_each_in<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>>
  32: rustc_data_structures::sync::parallel::disabled::par_for_each_in::<&[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_interface::passes::analysis::{closure#1}::{closure#0}>::{closure#0}>
  33: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#1}>
  34: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  35: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure#3}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
  36: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<diesel::query_builder::select_statement::SelectStatement<diesel::query_builder::from_clause::FromClause<db::schema::users::table>, diesel::query_builder::select_clause::DefaultSelectClause<diesel::query_builder::from_clause::FromClause<db::schema::users::table>>, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::WhereClause<diesel::expression::grouped::Grouped<diesel::expression::operators::Eq<db::schema::users::columns::id, diesel::expression::bound::Bound<diesel::sql_types::Text, &alloc::string::String>>>>> as diesel::query_builder::update_statement::target::IntoUpdateTarget>, polarity:Positive), bound_vars: [] } }`
#1 [mir_borrowck] borrow-checking `db::users::update`
#2 [analysis] running analysis passes on this crate
end of query stack
warning: `ordis` (bin "ordis") generated 7 warnings (run `cargo fix --bin "ordis"` to apply 2 suggestions)
error: could not compile `ordis` (bin "ordis"); 7 warnings emitted


```

</p>
</details>