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

snapshot: avoid leaking inference vars #122189

Closed
wants to merge 4 commits into from

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Mar 8, 2024

A first step towards fixing #122188. There are still some FIXMEs left, most notably method probing.

fixes #122098

r? @oli-obk

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative labels Mar 8, 2024
@rustbot
Copy link
Collaborator

rustbot commented Mar 8, 2024

Some changes occurred to the core trait solver

cc @rust-lang/initiative-trait-system-refactor

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@lcnr
Copy link
Contributor Author

lcnr commented Mar 8, 2024

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 8, 2024
@bors
Copy link
Contributor

bors commented Mar 8, 2024

⌛ Trying commit a7c0ac3 with merge 970523a...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 8, 2024
snapshot: avoid leaking inference vars

A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.

fixes rust-lang#122098

r? `@oli-obk`
@bors
Copy link
Contributor

bors commented Mar 8, 2024

☀️ Try build successful - checks-actions
Build commit: 970523a (970523ae018d571797bf189f91d970a093473cc3)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (970523a): comparison URL.

Overall result: ❌ regressions - ACTION NEEDED

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.6% [0.2%, 0.8%] 3
Regressions ❌
(secondary)
0.9% [0.2%, 1.9%] 23
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.9% [-1.9%, -1.9%] 1
All ❌✅ (primary) 0.6% [0.2%, 0.8%] 3

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-7.9% [-7.9%, -7.9%] 1
Improvements ✅
(secondary)
-4.6% [-5.3%, -3.9%] 2
All ❌✅ (primary) -7.9% [-7.9%, -7.9%] 1

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 652.903s -> 647.701s (-0.80%)
Artifact size: 172.55 MiB -> 172.60 MiB (0.03%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Mar 8, 2024
let r = f(&snapshot);
let no_leaks_data = R::mk_data_snapshot_end(self, no_leaks_data);
self.rollback_to(snapshot);
R::avoid_leaks(r, self, no_leaks_data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's sufficient to run this with debug assertions? Or is it usually odd cases that have no tests that leak infer vars?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't fudge TypeError we can get ICE. I would expect that this is the main cause of the regression here. Can add some inline attributes though to check whether it helps with anything

@lcnr
Copy link
Contributor Author

lcnr commented Mar 8, 2024

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 8, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 8, 2024
snapshot: avoid leaking inference vars

A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.

fixes rust-lang#122098

r? `@oli-obk`
@bors
Copy link
Contributor

bors commented Mar 8, 2024

⌛ Trying commit 3e3df70 with merge c740aa4...

@bors
Copy link
Contributor

bors commented Mar 8, 2024

☀️ Try build successful - checks-actions
Build commit: c740aa4 (c740aa46a93eb7b34946fe08c60f7907972fb505)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c740aa4): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.3% [0.2%, 0.5%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
5.6% [5.0%, 6.2%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 648.792s -> 648.87s (0.01%)
Artifact size: 172.56 MiB -> 172.56 MiB (0.00%)

@rustbot rustbot removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels Mar 8, 2024
@matthiaskrgr
Copy link
Member

no tests?

@lcnr
Copy link
Contributor Author

lcnr commented Mar 11, 2024

forgot that this actually fixes stuff 😅 adding them

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Mar 11, 2024
@lcnr
Copy link
Contributor Author

lcnr commented Mar 11, 2024

most other tests have a different root cause. I have not yet fixed method probing as that's non-trivial. Leaving that for future PRs

Comment on lines +176 to +179
if let Some(fudge_data) = fudge_data {
FudgeInference(fudge_data.fudge_inference(infcx, value))
} else {
FudgeInference(value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this scheme

@oli-obk
Copy link
Contributor

oli-obk commented Mar 11, 2024

@bors r+

I wonder if we can come up with a scheme (that doesn't make all snapshot methods really annoying to use), which also prevents storing types into storage borrowed in the snapshot closure.

@bors
Copy link
Contributor

bors commented Mar 11, 2024

📌 Commit b0ad8d7 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 11, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 12, 2024
snapshot: avoid leaking inference vars

A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.

fixes rust-lang#122098

r? `@oli-obk`
@bors
Copy link
Contributor

bors commented Mar 12, 2024

⌛ Testing commit b0ad8d7 with merge 2a4b3fd...

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-aux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    | |_____- in this macro invocation
    |
    = note: this warning originates in the macro `__static_cond` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info)

thread 'rustc' panicked at compiler/rustc_infer/src/infer/snapshot/fudge.rs:262:21:
assertion failed: self.infcx.inner.borrow_mut().type_variables().probe(vid).is_unknown()
   0:     0x7fba40aa96e7 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h32e11376057b68c5
   1:     0x7fba40b02327 - core::fmt::write::hde52406d68b0ad39
   2:     0x7fba40a9e155 - std::io::Write::write_fmt::h17780cc0bff3e4aa
   3:     0x7fba40aa94b4 - std::sys_common::backtrace::print::h7d07cf253e680a1c
   3:     0x7fba40aa94b4 - std::sys_common::backtrace::print::h7d07cf253e680a1c
   4:     0x7fba40aac4f3 - std::panicking::default_hook::{{closure}}::h375c425cebe2c3b9
   5:     0x7fba40aac209 - std::panicking::default_hook::h228d56a82c790dc4
   6:     0x7fba4166a2d6 - <alloc[3104433ab66c8f19]::boxed::Box<rustc_driver_impl[ef2bbe5f1dee9789]::install_ice_hook::{closure#0}> as core[c5845d8d53ed6e15]::ops::function::Fn<(&dyn for<'a, 'b> core[c5845d8d53ed6e15]::ops::function::Fn<(&'a core[c5845d8d53ed6e15]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[c5845d8d53ed6e15]::marker::Sync + core[c5845d8d53ed6e15]::marker::Send, &core[c5845d8d53ed6e15]::panic::panic_info::PanicInfo)>>::call
   8:     0x7fba40aac8f9 - std::panicking::begin_panic_handler::{{closure}}::h7498b16000807539
   9:     0x7fba40aa9cc6 - std::sys_common::backtrace::__rust_end_short_backtrace::hbbbfd3254f73cd72
  10:     0x7fba40aac6b4 - rust_begin_unwind
  11:     0x7fba40a65815 - core::panicking::panic_fmt::h233ad23b8687456c
  11:     0x7fba40a65815 - core::panicking::panic_fmt::h233ad23b8687456c
  12:     0x7fba40a658d3 - core::panicking::panic::h6af28e0088691225
  13:     0x7fba43e4182e - <rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger as rustc_type_ir[56caf5263b542535]::fold::TypeFolder<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::fold_ty
  14:     0x7fba43e0725b - rustc_middle[a28fe5db212b793e]::ty::util::fold_list::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger, rustc_middle[a28fe5db212b793e]::ty::generic_args::GenericArg, <&rustc_middle[a28fe5db212b793e]::ty::list::List<rustc_middle[a28fe5db212b793e]::ty::generic_args::GenericArg> as rustc_type_ir[56caf5263b542535]::fold::TypeFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_fold_with<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>::{closure#0}>
  15:     0x7fba43db39d5 - <rustc_middle[a28fe5db212b793e]::ty::Ty as rustc_type_ir[56caf5263b542535]::fold::TypeSuperFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_super_fold_with::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>
  16:     0x7fba43e4e675 - <rustc_middle[a28fe5db212b793e]::ty::error::TypeError as rustc_type_ir[56caf5263b542535]::fold::TypeFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_fold_with::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>
  17:     0x7fba43e4702c - <rustc_infer[6e527f8f418f7491]::traits::project::MismatchedProjectionTypes as rustc_infer[6e527f8f418f7491]::infer::snapshot::NoSnapshotLeaks>::avoid_leaks
  18:     0x7fba43b64ff0 - <rustc_infer[6e527f8f418f7491]::infer::InferCtxt>::commit_if_ok::<rustc_trait_selection[269248504fd2e6db]::traits::project::ProjectAndUnifyResult, rustc_infer[6e527f8f418f7491]::traits::project::MismatchedProjectionTypes, rustc_trait_selection[269248504fd2e6db]::traits::project::poly_project_and_unify_type::{closure#0}>
  19:     0x7fba4393f1d4 - rustc_trait_selection[269248504fd2e6db]::traits::project::poly_project_and_unify_type
  20:     0x7fba439f92e3 - <rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluate_predicate_recursively
  21:     0x7fba43b67fa7 - <rustc_infer[6e527f8f418f7491]::infer::InferCtxt>::probe::<core[c5845d8d53ed6e15]::result::Result<rustc_middle[a28fe5db212b793e]::traits::select::EvaluationResult, rustc_middle[a28fe5db212b793e]::traits::select::OverflowError>, <rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluate_root_obligation::{closure#0}>::{closure#0}>
  22:     0x7fba43a2c3e5 - rustc_trait_selection[269248504fd2e6db]::traits::coherence::overlap
  23:     0x7fba43a2b38e - rustc_trait_selection[269248504fd2e6db]::traits::coherence::overlapping_impls
  24:     0x7fba43a61afd - <rustc_middle[a28fe5db212b793e]::traits::specialization_graph::Children as rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph::ChildrenExt>::insert
  25:     0x7fba43a634e3 - <rustc_middle[a28fe5db212b793e]::traits::specialization_graph::Graph as rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph::GraphExt>::insert
  26:     0x7fba43b3f081 - rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph_provider
  27:     0x7fba4335602a - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 8usize]>>
  28:     0x7fba436653d9 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::DefId)>>::call_once
  29:     0x7fba436d66bf - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  30:     0x7fba4367b026 - rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::get_query_incr::__rust_end_short_backtrace
  31:     0x7fba41eed0f3 - rustc_hir_analysis[1b3367767695ca72]::coherence::coherent_trait
  32:     0x7fba4334008a - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  33:     0x7fba43617b19 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::DefId)>>::call_once
  34:     0x7fba436c8b70 - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  35:     0x7fba435bbf7e - rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::get_query_incr::__rust_end_short_backtrace
  36:     0x7fba420db272 - rustc_middle[a28fe5db212b793e]::query::plumbing::query_ensure_error_guaranteed::<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, ()>
  37:     0x7fba420e81bb - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::enter_wf_checking_ctxt::<rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_impl::{closure#0}>
  38:     0x7fba420ed8e9 - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_well_formed
  39:     0x7fba43347ca5 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  40:     0x7fba4361c1f5 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId)>>::call_once
  41:     0x7fba4377fb2a - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::VecCache<rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  42:     0x7fba4363355a - rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::get_query_incr::__rust_end_short_backtrace
  43:     0x7fba41fe2054 - rustc_middle[a28fe5db212b793e]::query::plumbing::query_ensure_error_guaranteed::<rustc_query_system[205d08e60b1a92a0]::query::caches::VecCache<rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, ()>
  44:     0x7fba41f41bef - <rustc_middle[a28fe5db212b793e]::hir::ModuleItems>::par_items::<rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_mod_type_wf::{closure#0}>
  45:     0x7fba420fae10 - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_mod_type_wf
  46:     0x7fba43347ac5 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  47:     0x7fba4361bd45 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::LocalModDefId)>>::call_once
  48:     0x7fba43734e48 - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefaultCache<rustc_span[c94123ca65beb6eb]::def_id::LocalModDefId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  49:     0x7fba4367745a - rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace
  50:     0x7fba41fe36c8 - <rustc_middle[a28fe5db212b793e]::hir::map::Map>::par_for_each_module::<rustc_hir_analysis[1b3367767695ca72]::check_crate::{closure#2}::{closure#0}>::{closure#0}
  51:     0x7fba41f6665c - rustc_hir_analysis[1b3367767695ca72]::check_crate
  52:     0x7fba418a8cbc - rustc_interface[13ad69ef859e6ed6]::passes::analysis
  53:     0x7fba4335eed3 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  54:     0x7fba43493991 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, ())>>::call_once
  55:     0x7fba436e1abe - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::SingleCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  56:     0x7fba4349948a - rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  57:     0x7fba416d7817 - <rustc_middle[a28fe5db212b793e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  58:     0x7fba416363c6 - <rustc_interface[13ad69ef859e6ed6]::interface::Compiler>::enter::<rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}::{closure#1}, core[c5845d8d53ed6e15]::result::Result<core[c5845d8d53ed6e15]::option::Option<rustc_interface[13ad69ef859e6ed6]::queries::Linker>, rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  59:     0x7fba416f2eff - rustc_span[c94123ca65beb6eb]::set_source_map::<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  60:     0x7fba416d5b0c - <scoped_tls[4a2e423e0a77ff]::ScopedKey<rustc_span[c94123ca65beb6eb]::SessionGlobals>>::set::<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  61:     0x7fba416f3401 - rustc_span[c94123ca65beb6eb]::create_session_globals_then::<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}>
  62:     0x7fba4162b71e - std[4b907581ded592fa]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_with_globals<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  63:     0x7fba416e1d21 - <<std[4b907581ded592fa]::thread::Builder>::spawn_unchecked_<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_with_globals<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#1} as core[c5845d8d53ed6e15]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  65:     0x7fba40883ac3 - <unknown>
  66:     0x7fba40915850 - <unknown>
  67:                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: please attach the file at `/checkout/obj/build/ct/diesel/rustc-ice-2024-03-12T13_32_57-31824.txt` to your bug report

note: compiler flags: --crate-type lib -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:
query stack during panic:
#0 [specialization_graph_of] building specialization graph of trait `query_dsl::distinct_dsl::DistinctDsl`
#1 [coherent_trait] coherence checking all impls of trait `query_dsl::distinct_dsl::DistinctDsl`
#2 [check_well_formed] checking that `query_builder::select_statement::boxed::<impl at diesel/src/query_builder/select_statement/boxed.rs:170:1: 173:39>` is well-formed
#3 [check_mod_type_wf] checking that types are well-formed in module `query_builder::select_statement::boxed`
end of query stack
end of query stack
thread 'rustc' panicked at compiler/rustc_infer/src/infer/snapshot/fudge.rs:262:21:
assertion failed: self.infcx.inner.borrow_mut().type_variables().probe(vid).is_unknown()
   0:     0x7f91cb6a66e7 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h32e11376057b68c5
   1:     0x7f91cb6ff327 - core::fmt::write::hde52406d68b0ad39
   2:     0x7f91cb69b155 - std::io::Write::write_fmt::h17780cc0bff3e4aa
   3:     0x7f91cb6a64b4 - std::sys_common::backtrace::print::h7d07cf253e680a1c
   3:     0x7f91cb6a64b4 - std::sys_common::backtrace::print::h7d07cf253e680a1c
   4:     0x7f91cb6a94f3 - std::panicking::default_hook::{{closure}}::h375c425cebe2c3b9
   5:     0x7f91cb6a9209 - std::panicking::default_hook::h228d56a82c790dc4
   6:     0x7f91cc2672d6 - <alloc[3104433ab66c8f19]::boxed::Box<rustc_driver_impl[ef2bbe5f1dee9789]::install_ice_hook::{closure#0}> as core[c5845d8d53ed6e15]::ops::function::Fn<(&dyn for<'a, 'b> core[c5845d8d53ed6e15]::ops::function::Fn<(&'a core[c5845d8d53ed6e15]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[c5845d8d53ed6e15]::marker::Sync + core[c5845d8d53ed6e15]::marker::Send, &core[c5845d8d53ed6e15]::panic::panic_info::PanicInfo)>>::call
   8:     0x7f91cb6a98f9 - std::panicking::begin_panic_handler::{{closure}}::h7498b16000807539
   9:     0x7f91cb6a6cc6 - std::sys_common::backtrace::__rust_end_short_backtrace::hbbbfd3254f73cd72
  10:     0x7f91cb6a96b4 - rust_begin_unwind
  11:     0x7f91cb662815 - core::panicking::panic_fmt::h233ad23b8687456c
  11:     0x7f91cb662815 - core::panicking::panic_fmt::h233ad23b8687456c
  12:     0x7f91cb6628d3 - core::panicking::panic::h6af28e0088691225
  13:     0x7f91cea3e82e - <rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger as rustc_type_ir[56caf5263b542535]::fold::TypeFolder<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::fold_ty
  14:     0x7f91cea0425b - rustc_middle[a28fe5db212b793e]::ty::util::fold_list::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger, rustc_middle[a28fe5db212b793e]::ty::generic_args::GenericArg, <&rustc_middle[a28fe5db212b793e]::ty::list::List<rustc_middle[a28fe5db212b793e]::ty::generic_args::GenericArg> as rustc_type_ir[56caf5263b542535]::fold::TypeFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_fold_with<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>::{closure#0}>
  15:     0x7f91ce9b09d5 - <rustc_middle[a28fe5db212b793e]::ty::Ty as rustc_type_ir[56caf5263b542535]::fold::TypeSuperFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_super_fold_with::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>
  16:     0x7f91cea4b675 - <rustc_middle[a28fe5db212b793e]::ty::error::TypeError as rustc_type_ir[56caf5263b542535]::fold::TypeFoldable<rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt>>::try_fold_with::<rustc_infer[6e527f8f418f7491]::infer::snapshot::fudge::InferenceFudger>
  17:     0x7f91cea4402c - <rustc_infer[6e527f8f418f7491]::traits::project::MismatchedProjectionTypes as rustc_infer[6e527f8f418f7491]::infer::snapshot::NoSnapshotLeaks>::avoid_leaks
  18:     0x7f91ce761ff0 - <rustc_infer[6e527f8f418f7491]::infer::InferCtxt>::commit_if_ok::<rustc_trait_selection[269248504fd2e6db]::traits::project::ProjectAndUnifyResult, rustc_infer[6e527f8f418f7491]::traits::project::MismatchedProjectionTypes, rustc_trait_selection[269248504fd2e6db]::traits::project::poly_project_and_unify_type::{closure#0}>
  19:     0x7f91ce53c1d4 - rustc_trait_selection[269248504fd2e6db]::traits::project::poly_project_and_unify_type
  20:     0x7f91ce5f62e3 - <rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluate_predicate_recursively
  21:     0x7f91ce764fa7 - <rustc_infer[6e527f8f418f7491]::infer::InferCtxt>::probe::<core[c5845d8d53ed6e15]::result::Result<rustc_middle[a28fe5db212b793e]::traits::select::EvaluationResult, rustc_middle[a28fe5db212b793e]::traits::select::OverflowError>, <rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[269248504fd2e6db]::traits::select::SelectionContext>::evaluate_root_obligation::{closure#0}>::{closure#0}>
  22:     0x7f91ce6293e5 - rustc_trait_selection[269248504fd2e6db]::traits::coherence::overlap
  23:     0x7f91ce62838e - rustc_trait_selection[269248504fd2e6db]::traits::coherence::overlapping_impls
  24:     0x7f91ce65eafd - <rustc_middle[a28fe5db212b793e]::traits::specialization_graph::Children as rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph::ChildrenExt>::insert
  25:     0x7f91ce6604e3 - <rustc_middle[a28fe5db212b793e]::traits::specialization_graph::Graph as rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph::GraphExt>::insert
  26:     0x7f91ce73c081 - rustc_trait_selection[269248504fd2e6db]::traits::specialize::specialization_graph_provider
  27:     0x7f91cdf5302a - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 8usize]>>
  28:     0x7f91ce2623d9 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::DefId)>>::call_once
  29:     0x7f91ce2d36bf - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  30:     0x7f91ce278026 - rustc_query_impl[315a33b46a6b89bb]::query_impl::specialization_graph_of::get_query_incr::__rust_end_short_backtrace
  31:     0x7f91ccaea0f3 - rustc_hir_analysis[1b3367767695ca72]::coherence::coherent_trait
  32:     0x7f91cdf3d08a - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  33:     0x7f91ce214b19 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::DefId)>>::call_once
  34:     0x7f91ce2c5b70 - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  35:     0x7f91ce1b8f7e - rustc_query_impl[315a33b46a6b89bb]::query_impl::coherent_trait::get_query_incr::__rust_end_short_backtrace
  36:     0x7f91cccd8272 - rustc_middle[a28fe5db212b793e]::query::plumbing::query_ensure_error_guaranteed::<rustc_query_system[205d08e60b1a92a0]::query::caches::DefIdCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, ()>
  37:     0x7f91ccce51bb - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::enter_wf_checking_ctxt::<rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_impl::{closure#0}>
  38:     0x7f91cccea8e9 - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_well_formed
  39:     0x7f91cdf44ca5 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  40:     0x7f91ce2191f5 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId)>>::call_once
  41:     0x7f91ce37cb2a - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::VecCache<rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  42:     0x7f91ce23055a - rustc_query_impl[315a33b46a6b89bb]::query_impl::check_well_formed::get_query_incr::__rust_end_short_backtrace
  43:     0x7f91ccbdf054 - rustc_middle[a28fe5db212b793e]::query::plumbing::query_ensure_error_guaranteed::<rustc_query_system[205d08e60b1a92a0]::query::caches::VecCache<rustc_hir[9476a13e5c9b3903]::hir_id::OwnerId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, ()>
  44:     0x7f91ccb3ebef - <rustc_middle[a28fe5db212b793e]::hir::ModuleItems>::par_items::<rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_mod_type_wf::{closure#0}>
  45:     0x7f91cccf7e10 - rustc_hir_analysis[1b3367767695ca72]::check::wfcheck::check_mod_type_wf
  46:     0x7f91cdf44ac5 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  47:     0x7f91ce218d45 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, rustc_span[c94123ca65beb6eb]::def_id::LocalModDefId)>>::call_once
  48:     0x7f91ce331e48 - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::DefaultCache<rustc_span[c94123ca65beb6eb]::def_id::LocalModDefId, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  49:     0x7f91ce27445a - rustc_query_impl[315a33b46a6b89bb]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace
  50:     0x7f91ccbe06c8 - <rustc_middle[a28fe5db212b793e]::hir::map::Map>::par_for_each_module::<rustc_hir_analysis[1b3367767695ca72]::check_crate::{closure#2}::{closure#0}>::{closure#0}
  51:     0x7f91ccb6365c - rustc_hir_analysis[1b3367767695ca72]::check_crate
  52:     0x7f91cc4a5cbc - rustc_interface[13ad69ef859e6ed6]::passes::analysis
  53:     0x7f91cdf5bed3 - rustc_query_impl[315a33b46a6b89bb]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>
  54:     0x7f91ce090991 - <rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::dynamic_query::{closure#2} as core[c5845d8d53ed6e15]::ops::function::FnOnce<(rustc_middle[a28fe5db212b793e]::ty::context::TyCtxt, ())>>::call_once
  55:     0x7f91ce2deabe - rustc_query_system[205d08e60b1a92a0]::query::plumbing::try_execute_query::<rustc_query_impl[315a33b46a6b89bb]::DynamicConfig<rustc_query_system[205d08e60b1a92a0]::query::caches::SingleCache<rustc_middle[a28fe5db212b793e]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[315a33b46a6b89bb]::plumbing::QueryCtxt, true>
  56:     0x7f91ce09648a - rustc_query_impl[315a33b46a6b89bb]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  57:     0x7f91cc2d4817 - <rustc_middle[a28fe5db212b793e]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}::{closure#1}::{closure#3}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  58:     0x7f91cc2333c6 - <rustc_interface[13ad69ef859e6ed6]::interface::Compiler>::enter::<rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}::{closure#1}, core[c5845d8d53ed6e15]::result::Result<core[c5845d8d53ed6e15]::option::Option<rustc_interface[13ad69ef859e6ed6]::queries::Linker>, rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  59:     0x7f91cc2efeff - rustc_span[c94123ca65beb6eb]::set_source_map::<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  60:     0x7f91cc2d2b0c - <scoped_tls[4a2e423e0a77ff]::ScopedKey<rustc_span[c94123ca65beb6eb]::SessionGlobals>>::set::<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  61:     0x7f91cc2f0401 - rustc_span[c94123ca65beb6eb]::create_session_globals_then::<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}>
  62:     0x7f91cc22871e - std[4b907581ded592fa]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_with_globals<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>
  63:     0x7f91cc2ded21 - <<std[4b907581ded592fa]::thread::Builder>::spawn_unchecked_<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_with_globals<rustc_interface[13ad69ef859e6ed6]::util::run_in_thread_pool_with_globals<rustc_interface[13ad69ef859e6ed6]::interface::run_compiler<core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>, rustc_driver_impl[ef2bbe5f1dee9789]::run_compiler::{closure#0}>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5845d8d53ed6e15]::result::Result<(), rustc_span[c94123ca65beb6eb]::ErrorGuaranteed>>::{closure#1} as core[c5845d8d53ed6e15]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  65:     0x7f91cb480ac3 - <unknown>
  66:     0x7f91cb512850 - <unknown>
  67:                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: please attach the file at `/checkout/obj/build/ct/diesel/rustc-ice-2024-03-12T13_32_57-31825.txt` to your bug report

note: compiler flags: -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:
query stack during panic:
#0 [specialization_graph_of] building specialization graph of trait `query_dsl::distinct_dsl::DistinctDsl`
#1 [coherent_trait] coherence checking all impls of trait `query_dsl::distinct_dsl::DistinctDsl`
#2 [check_well_formed] checking that `query_builder::select_statement::boxed::<impl at diesel/src/query_builder/select_statement/boxed.rs:170:1: 173:39>` is well-formed
#3 [check_mod_type_wf] checking that types are well-formed in module `query_builder::select_statement::boxed`
end of query stack
warning: trait aliases are experimental
##[warning]   --> diesel/src/expression/mod.rs:553:1
    |
---
thread 'main' panicked at src/tools/cargotest/main.rs:124:9:
tests failed for https://github.com/diesel-rs/diesel
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:34:54
make: *** [Makefile:51: check-aux] Error 1
  network time: Tue, 12 Mar 2024 13:33:00 GMT
##[error]Process completed with exit code 2.
Post job cleanup.

@bors
Copy link
Contributor

bors commented Mar 12, 2024

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 12, 2024
@matthiaskrgr matthiaskrgr added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 27, 2024
@bors
Copy link
Contributor

bors commented Mar 28, 2024

☔ The latest upstream changes (presumably #122832) made this pull request unmergeable. Please resolve the merge conflicts.

@fmease
Copy link
Member

fmease commented Apr 24, 2024

post sync
@bors r-

@bors

This comment was marked as resolved.

@Dylan-DPC
Copy link
Member

@lcnr any updates on this? thanks

@lcnr lcnr closed this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: index out of bounds, snapshot_vec.rs
9 participants