Repository: rust
Issue: ICE on `cargo clippy` against nightly
Labels: I-ICE,T-compiler,C-bug

### Summary

Running `cargo +nightly clippy --features tokio,tokio-vsock` in the [zbus main](github.com/dbus2/zbus/), results in ICE.

[rustc-ice-2024-02-20T13_09_42-829930.txt](https://github.com/rust-lang/rust-clippy/files/14344895/rustc-ice-2024-02-20T13_09_42-829930.txt)


### Version

```text
rustc 1.78.0-nightly (3246e7951 2024-02-19)
binary: rustc
commit-hash: 3246e79513cb89ddbfc0f21cb5a877e5b321dcc5
commit-date: 2024-02-19
host: x86_64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0
```


### Error output

<details><summary>Backtrace</summary>
  <p>

  ```
stack backtrace:
   0:     0x7f8982675ac6 - std::backtrace_rs::backtrace::libunwind::trace::h8ae4267cbff78cba
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7f8982675ac6 - std::backtrace_rs::backtrace::trace_unsynchronized::h58d660507fd2d28d
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f8982675ac6 - std::sys_common::backtrace::_print_fmt::h947c75256a3fcb5d
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7f8982675ac6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc4e91c30b6b6162a
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f89826c6a4c - core::fmt::rt::Argument::fmt::h280a9e6aa35b5905
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/core/src/fmt/rt.rs:142:9
   5:     0x7f89826c6a4c - core::fmt::write::h0db09f7057d224b2
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/core/src/fmt/mod.rs:1120:17
   6:     0x7f898266a42f - std::io::Write::write_fmt::h5d8429b15227f37b
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/io/mod.rs:1846:15
   7:     0x7f8982675874 - std::sys_common::backtrace::_print::hc2b812ff7cdade7f
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7f8982675874 - std::sys_common::backtrace::print::h4a66a6b5a5695788
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7f89826785bb - std::panicking::default_hook::{{closure}}::hc3544c5ff7dafbe5
  10:     0x7f8982678309 - std::panicking::default_hook::h8bd86009387a0a73
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/panicking.rs:292:9
  11:     0x7f897f22f30c - std[88cc13ac5e46237b]::panicking::update_hook::<alloc[c36677dfd055d4b5]::boxed::Box<rustc_driver_impl[43e8f7cc04ab8702]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7f8982678d20 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16d70f2ac15ce073
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/alloc/src/boxed.rs:2030:9
  13:     0x7f8982678d20 - std::panicking::rust_panic_with_hook::hfcc097815365b485
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/panicking.rs:786:13
  14:     0x7f8982678a62 - std::panicking::begin_panic_handler::{{closure}}::h8dac30e50803d6dd
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/panicking.rs:660:13
  15:     0x7f8982675fa6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9fe6177cef6e17f8
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7f8982678794 - rust_begin_unwind
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/panicking.rs:648:5
  17:     0x7f89826c2f65 - core::panicking::panic_fmt::h9ecf1705441f8b1b
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/core/src/panicking.rs:72:14
  18:     0x7f8981ab2b9a - <rustc_metadata[72646f08ecd30116]::creader::CStore as rustc_session[66b04779bfaa0f95]::cstore::CrateStore>::stable_crate_id.cold.0
  19:     0x7f898119c6a8 - <rustc_middle[27e5e81444fa3f89]::query::on_disk_cache::OnDiskCache>::serialize::{closure#0}
  20:     0x7f898119c21a - <rustc_middle[27e5e81444fa3f89]::query::on_disk_cache::OnDiskCache>::serialize
  21:     0x7f898145031d - rustc_incremental[817016bcf8954141]::persist::save::save_dep_graph::{closure#0}::{closure#3}
  22:     0x7f898114db8e - rustc_incremental[817016bcf8954141]::persist::save::save_dep_graph::{closure#0}
  23:     0x7f898114a90d - rustc_interface[6b23f56c014e7e]::interface::run_compiler::<core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>, rustc_driver_impl[43e8f7cc04ab8702]::run_compiler::{closure#0}>::{closure#0}
  24:     0x7f89813d2b05 - std[88cc13ac5e46237b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[6b23f56c014e7e]::util::run_in_thread_with_globals<rustc_interface[6b23f56c014e7e]::util::run_in_thread_pool_with_globals<rustc_interface[6b23f56c014e7e]::interface::run_compiler<core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>, rustc_driver_impl[43e8f7cc04ab8702]::run_compiler::{closure#0}>::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>
  25:     0x7f89813d2932 - <<std[88cc13ac5e46237b]::thread::Builder>::spawn_unchecked_<rustc_interface[6b23f56c014e7e]::util::run_in_thread_with_globals<rustc_interface[6b23f56c014e7e]::util::run_in_thread_pool_with_globals<rustc_interface[6b23f56c014e7e]::interface::run_compiler<core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>, rustc_driver_impl[43e8f7cc04ab8702]::run_compiler::{closure#0}>::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9135d4f27aa7f376]::result::Result<(), rustc_span[c3b4d1cce1296ff1]::ErrorGuaranteed>>::{closure#1} as core[9135d4f27aa7f376]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  26:     0x7f89826826f5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8884f59d39766bcc
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/alloc/src/boxed.rs:2016:9
  27:     0x7f89826826f5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hd3cff0ddac56346e
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/alloc/src/boxed.rs:2016:9
  28:     0x7f89826826f5 - std::sys::pal::unix::thread::Thread::new::thread_start::h1990c77eff82b16c
                               at /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/sys/pal/unix/thread.rs:108:17
  29:     0x7f897c2ac897 - start_thread
  30:     0x7f897c33380c - clone3
  31:                0x0 - <unknown>

  ```

  </p>
</details>