rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
97.19k stars 12.56k forks source link

unexpectedly compiler panick #130550

Open darkseid-is opened 1 week ago

darkseid-is commented 1 week ago

Code

let _abort_handler = set.spawn(async move {
let span = span!(Level::TRACE, HANDLER);
let _ = span.enter();
let _ = start_module(handler, listener, token)
                    .instrument(span)
                    .await;
});

Meta

rustc --version --verbose:

rustc 1.80.1 (3f5fd8dd4 2024-08-06)
binary: rustc
commit-hash: 3f5fd8dd41153bc5fdca9427e9e05be2c767ba23
commit-date: 2024-08-06
host: x86_64-unknown-linux-gnu
release: 1.80.1
LLVM version: 18.1.7

Error output

thread 'rustc' panicked at compiler/rustc_hir/src/definitions.rs:389:13:
("Failed to extract DefId", def_kind, PackedFingerprint(Fingerprint(8995154711048952027, 5129404986291511177)))
stack backtrace:
   0:     0x7fccf462bf05 - std::backtrace_rs::backtrace::libunwind::trace::h23054e327d0d4b55
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x7fccf462bf05 - std::backtrace_rs::backtrace::trace_unsynchronized::h0cc587407d7f7f64
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fccf462bf05 - std::sys_common::backtrace::_print_fmt::h4feeb59774730d6b
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7fccf462bf05 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd736fd5964392270
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fccf467cc4b - core::fmt::rt::Argument::fmt::h105051d8ea1ade1e
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/rt.rs:165:63
   5:     0x7fccf467cc4b - core::fmt::write::hc6043626647b98ea
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/mod.rs:1168:21
   6:     0x7fccf4620bdf - std::io::Write::write_fmt::h0d24b3e0473045db
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1835:15
   7:     0x7fccf462bcde - std::sys_common::backtrace::_print::h62df6fc36dcebfc8
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fccf462bcde - std::sys_common::backtrace::print::h45eb8174d25a1e76
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fccf462e719 - std::panicking::default_hook::{{closure}}::haf3f0170eb4f3b53
  10:     0x7fccf462e4ba - std::panicking::default_hook::hb5d3b27aa9f6dcda
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:298:9
  11:     0x7fccf10150c1 - std[fba9fafec3bdacf8]::panicking::update_hook::<alloc[a325a9cea6fa5e89]::boxed::Box<rustc_driver_impl[ce01f96e2e949677]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fccf462ee4b - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2026a29033a1b9f6
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2077:9
  13:     0x7fccf462ee4b - std::panicking::rust_panic_with_hook::h6b49d59f86ee588c
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:799:13
  14:     0x7fccf462ebc4 - std::panicking::begin_panic_handler::{{closure}}::hd4c2f7ed79b82b70
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:664:13
  15:     0x7fccf462c3c9 - std::sys_common::backtrace::__rust_end_short_backtrace::h2946d6d32d7ea1ad
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7fccf462e8f7 - rust_begin_unwind
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:652:5
  17:     0x7fccf46791e3 - core::panicking::panic_fmt::ha02418e5cd774672
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/panicking.rs:72:14
  18:     0x7fccf10b8e98 - <rustc_hir[b82cb5fa732ae2da]::definitions::Definitions>::local_def_path_hash_to_def_id::err
  19:     0x7fccf24c8e8e - <rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode as rustc_middle[ecc07153edf3c281]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  20:     0x7fccf1865f7a - <rustc_query_impl[c1633093ec927e0e]::plumbing::query_callback<rustc_query_impl[c1633093ec927e0e]::query_impl::def_kind::QueryType>::{closure#0} as core[1a380081440346cb]::ops::function::FnOnce<(rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode)>>::call_once
  21:     0x7fccf242efa9 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  22:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  23:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  24:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  25:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  26:     0x7fccf2969dc4 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::DefaultCache<rustc_type_ir[8d868667529acadd]::canonical::Canonical<rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::ty::predicate::Predicate>>, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  27:     0x7fccf2968631 - rustc_query_impl[c1633093ec927e0e]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
  28:     0x7fccef361bab - <rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::FulfillProcessor as rustc_data_structures[25e6784d61918b0d]::obligation_forest::ObligationProcessor>::process_obligation
  29:     0x7fccf2597340 - <rustc_data_structures[25e6784d61918b0d]::obligation_forest::ObligationForest<rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::FulfillProcessor>
  30:     0x7fccf29503fd - <rustc_trait_selection[bf98a35716bfd7e5]::traits::engine::ObligationCtxt>::make_canonicalized_query_response::<()>
  31:     0x7fccf295a042 - rustc_traits[6708e369e9f7a263]::type_op::type_op_prove_predicate
  32:     0x7fccf295946f - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::type_op_prove_predicate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>
  33:     0x7fccf2994156 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::DefaultCache<rustc_type_ir[8d868667529acadd]::canonical::Canonical<rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::traits::query::type_op::ProvePredicate>>, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  34:     0x7fccf2993a56 - rustc_query_impl[c1633093ec927e0e]::query_impl::type_op_prove_predicate::get_query_incr::__rust_end_short_backtrace
  35:     0x7fccf25e34c4 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::traits::query::type_op::ProvePredicate>>
  36:     0x7fccf2593136 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  37:     0x7fccf25dd585 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeVerifier as rustc_middle[ecc07153edf3c281]::mir::visit::Visitor>::visit_constant
  38:     0x7fccefe025ea - <rustc_borrowck[2d0af345905b1241]::type_check::TypeVerifier as rustc_middle[ecc07153edf3c281]::mir::visit::Visitor>::visit_body
  39:     0x7fccefc63b25 - rustc_borrowck[2d0af345905b1241]::type_check::type_check
  40:     0x7fccefc225e2 - rustc_borrowck[2d0af345905b1241]::nll::compute_regions
  41:     0x7fccf32c2ebe - rustc_borrowck[2d0af345905b1241]::do_mir_borrowck
  42:     0x7fccf32b3c3b - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>
  43:     0x7fccf255d24d - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  44:     0x7fccf255bc36 - rustc_query_impl[c1633093ec927e0e]::plumbing::force_from_dep_node::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>>
  45:     0x7fccf34eef6d - <rustc_query_impl[c1633093ec927e0e]::plumbing::query_callback<rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::QueryType>::{closure#0} as core[1a380081440346cb]::ops::function::FnOnce<(rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode)>>::call_once
  46:     0x7fccf242efa9 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  47:     0x7fccf287b725 - rustc_query_system[b257ee99c2874caa]::query::plumbing::ensure_must_run::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  48:     0x7fccf287b45c - rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace
  49:     0x7fccf2e93744 - rustc_interface[c31201428b712578]::passes::analysis
  50:     0x7fccf2e93025 - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 1usize]>>
  51:     0x7fccf3139ef5 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::SingleCache<rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  52:     0x7fccf3139b38 - rustc_query_impl[c1633093ec927e0e]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  53:     0x7fccf301224d - rustc_interface[c31201428b712578]::interface::run_compiler::<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}
  54:     0x7fccf3147869 - std[fba9fafec3bdacf8]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c31201428b712578]::util::run_in_thread_with_globals<rustc_interface[c31201428b712578]::interface::run_compiler<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>
  55:     0x7fccf314766a - <<std[fba9fafec3bdacf8]::thread::Builder>::spawn_unchecked_<rustc_interface[c31201428b712578]::util::run_in_thread_with_globals<rustc_interface[c31201428b712578]::interface::run_compiler<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#2} as core[1a380081440346cb]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  56:     0x7fccf4638e3b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hdf5fcef8be77a431
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2063:9
  57:     0x7fccf4638e3b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8e8c5ceee46ee198
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2063:9
  58:     0x7fccf4638e3b - std::sys::pal::unix::thread::Thread::new::thread_start::hb85dbfa54ba503d6
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys/pal/unix/thread.rs:108:17
  59:     0x7fccedea4dab - <unknown>
  60:     0x7fccedf269f8 - <unknown>
  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.80.1 (3f5fd8dd4 2024-08-06) 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 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@zxy/src/run/runner.rs:22:1: 79:2}: core::marker::Send`
#1 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<{async block@zxy/src/main.rs:135:48: 141:14} as core::marker::Send>, polarity:Positive), bound_vars: [] } }`
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 type_of(thread 'rustc' panicked at compiler/rustc_hir/src/definitions.rs:389:13:
("Failed to extract DefId", type_of, PackedFingerprint(Fingerprint(8995154711048952027, 5129404986291511177)))
stack backtrace:
   0:     0x7fccf462bf05 - std::backtrace_rs::backtrace::libunwind::trace::h23054e327d0d4b55
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x7fccf462bf05 - std::backtrace_rs::backtrace::trace_unsynchronized::h0cc587407d7f7f64
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fccf462bf05 - std::sys_common::backtrace::_print_fmt::h4feeb59774730d6b
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7fccf462bf05 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd736fd5964392270
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fccf467cc4b - core::fmt::rt::Argument::fmt::h105051d8ea1ade1e
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/rt.rs:165:63
   5:     0x7fccf467cc4b - core::fmt::write::hc6043626647b98ea
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/mod.rs:1168:21
   6:     0x7fccf4620bdf - std::io::Write::write_fmt::h0d24b3e0473045db
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1835:15
   7:     0x7fccf462bcde - std::sys_common::backtrace::_print::h62df6fc36dcebfc8
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fccf462bcde - std::sys_common::backtrace::print::h45eb8174d25a1e76
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fccf462e719 - std::panicking::default_hook::{{closure}}::haf3f0170eb4f3b53
  10:     0x7fccf462e4ba - std::panicking::default_hook::hb5d3b27aa9f6dcda
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:298:9
  11:     0x7fccf10150c1 - std[fba9fafec3bdacf8]::panicking::update_hook::<alloc[a325a9cea6fa5e89]::boxed::Box<rustc_driver_impl[ce01f96e2e949677]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fccf462ee4b - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2026a29033a1b9f6
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2077:9
  13:     0x7fccf462ee4b - std::panicking::rust_panic_with_hook::h6b49d59f86ee588c
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:799:13
  14:     0x7fccf462ebc4 - std::panicking::begin_panic_handler::{{closure}}::hd4c2f7ed79b82b70
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:664:13
  15:     0x7fccf462c3c9 - std::sys_common::backtrace::__rust_end_short_backtrace::h2946d6d32d7ea1ad
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7fccf462e8f7 - rust_begin_unwind
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:652:5
  17:     0x7fccf46791e3 - core::panicking::panic_fmt::ha02418e5cd774672
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/panicking.rs:72:14
  18:     0x7fccf10b8e98 - <rustc_hir[b82cb5fa732ae2da]::definitions::Definitions>::local_def_path_hash_to_def_id::err
  19:     0x7fccf24c8e8e - <rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode as rustc_middle[ecc07153edf3c281]::dep_graph::dep_node::DepNodeExt>::extract_def_id
  20:     0x7fccf13a6bf1 - rustc_interface[c31201428b712578]::callbacks::dep_node_debug
  21:     0x7fccf18d1ed7 - <rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode as core[1a380081440346cb]::fmt::Debug>::fmt
  22:     0x7fccf467cc4b - core::fmt::rt::Argument::fmt::h105051d8ea1ade1e
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/rt.rs:165:63
  23:     0x7fccf467cc4b - core::fmt::write::hc6043626647b98ea
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/mod.rs:1168:21
  24:     0x7fccf461ed2c - std::io::Write::write_fmt::he0bbfedff2a3d05f
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1835:15
  25:     0x7fccf461ed2c - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::hf5e7a2612a23a5f3
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1019:9
  26:     0x7fccf461f6d8 - <std::io::stdio::Stderr as std::io::Write>::write_fmt::he81757d53901a839
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:993:9
  27:     0x7fccf461f6d8 - std::io::stdio::print_to::he3833d5f094ba64e
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1117:21
  28:     0x7fccf461f6d8 - std::io::stdio::_eprint::h91d9d2e9cdee0bf0
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1238:5
  29:     0x7fccf1805203 - rustc_query_system[b257ee99c2874caa]::dep_graph::graph::print_markframe_trace::<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>
  30:     0x7fccf242f5ef - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  31:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  32:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  33:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  34:     0x7fccf242ef22 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  35:     0x7fccf2969dc4 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::DefaultCache<rustc_type_ir[8d868667529acadd]::canonical::Canonical<rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::ty::predicate::Predicate>>, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  36:     0x7fccf2968631 - rustc_query_impl[c1633093ec927e0e]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
  37:     0x7fccef361bab - <rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::FulfillProcessor as rustc_data_structures[25e6784d61918b0d]::obligation_forest::ObligationProcessor>::process_obligation
  38:     0x7fccf2597340 - <rustc_data_structures[25e6784d61918b0d]::obligation_forest::ObligationForest<rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[bf98a35716bfd7e5]::traits::fulfill::FulfillProcessor>
  39:     0x7fccf29503fd - <rustc_trait_selection[bf98a35716bfd7e5]::traits::engine::ObligationCtxt>::make_canonicalized_query_response::<()>
  40:     0x7fccf295a042 - rustc_traits[6708e369e9f7a263]::type_op::type_op_prove_predicate
  41:     0x7fccf295946f - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::type_op_prove_predicate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>
  42:     0x7fccf2994156 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::DefaultCache<rustc_type_ir[8d868667529acadd]::canonical::Canonical<rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::traits::query::type_op::ProvePredicate>>, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  43:     0x7fccf2993a56 - rustc_query_impl[c1633093ec927e0e]::query_impl::type_op_prove_predicate::get_query_incr::__rust_end_short_backtrace
  44:     0x7fccf25e34c4 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeChecker>::fully_perform_op::<(), rustc_middle[ecc07153edf3c281]::ty::ParamEnvAnd<rustc_middle[ecc07153edf3c281]::traits::query::type_op::ProvePredicate>>
  45:     0x7fccf2593136 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeChecker>::normalize_and_prove_instantiated_predicates
  46:     0x7fccf25dd585 - <rustc_borrowck[2d0af345905b1241]::type_check::TypeVerifier as rustc_middle[ecc07153edf3c281]::mir::visit::Visitor>::visit_constant
  47:     0x7fccefe025ea - <rustc_borrowck[2d0af345905b1241]::type_check::TypeVerifier as rustc_middle[ecc07153edf3c281]::mir::visit::Visitor>::visit_body
  48:     0x7fccefc63b25 - rustc_borrowck[2d0af345905b1241]::type_check::type_check
  49:     0x7fccefc225e2 - rustc_borrowck[2d0af345905b1241]::nll::compute_regions
  50:     0x7fccf32c2ebe - rustc_borrowck[2d0af345905b1241]::do_mir_borrowck
  51:     0x7fccf32b3c3b - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>
  52:     0x7fccf255d24d - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  53:     0x7fccf255bc36 - rustc_query_impl[c1633093ec927e0e]::plumbing::force_from_dep_node::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 8usize]>>, false, false, false>>
  54:     0x7fccf34eef6d - <rustc_query_impl[c1633093ec927e0e]::plumbing::query_callback<rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::QueryType>::{closure#0} as core[1a380081440346cb]::ops::function::FnOnce<(rustc_middle[ecc07153edf3c281]::ty::context::TyCtxt, rustc_query_system[b257ee99c2874caa]::dep_graph::dep_node::DepNode)>>::call_once
  55:     0x7fccf242efa9 - <rustc_query_system[b257ee99c2874caa]::dep_graph::graph::DepGraphData<rustc_middle[ecc07153edf3c281]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  56:     0x7fccf287b725 - rustc_query_system[b257ee99c2874caa]::query::plumbing::ensure_must_run::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::VecCache<rustc_span[4d50fd03223eefaa]::def_id::LocalDefId, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt>
  57:     0x7fccf287b45c - rustc_query_impl[c1633093ec927e0e]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace
  58:     0x7fccf2e93744 - rustc_interface[c31201428b712578]::passes::analysis
  59:     0x7fccf2e93025 - rustc_query_impl[c1633093ec927e0e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[c1633093ec927e0e]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 1usize]>>
  60:     0x7fccf3139ef5 - rustc_query_system[b257ee99c2874caa]::query::plumbing::try_execute_query::<rustc_query_impl[c1633093ec927e0e]::DynamicConfig<rustc_query_system[b257ee99c2874caa]::query::caches::SingleCache<rustc_middle[ecc07153edf3c281]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[c1633093ec927e0e]::plumbing::QueryCtxt, true>
  61:     0x7fccf3139b38 - rustc_query_impl[c1633093ec927e0e]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  62:     0x7fccf301224d - rustc_interface[c31201428b712578]::interface::run_compiler::<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}
  63:     0x7fccf3147869 - std[fba9fafec3bdacf8]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c31201428b712578]::util::run_in_thread_with_globals<rustc_interface[c31201428b712578]::interface::run_compiler<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>
  64:     0x7fccf314766a - <<std[fba9fafec3bdacf8]::thread::Builder>::spawn_unchecked_<rustc_interface[c31201428b712578]::util::run_in_thread_with_globals<rustc_interface[c31201428b712578]::interface::run_compiler<core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>, rustc_driver_impl[ce01f96e2e949677]::run_compiler::{closure#0}>::{closure#1}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a380081440346cb]::result::Result<(), rustc_span[4d50fd03223eefaa]::ErrorGuaranteed>>::{closure#2} as core[1a380081440346cb]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  65:     0x7fccf4638e3b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hdf5fcef8be77a431
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2063:9
  66:     0x7fccf4638e3b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8e8c5ceee46ee198
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/boxed.rs:2063:9
  67:     0x7fccf4638e3b - std::sys::pal::unix::thread::Thread::new::thread_start::hb85dbfa54ba503d6
                               at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/sys/pal/unix/thread.rs:108:17
  68:     0x7fccedea4dab - <unknown>
  69:     0x7fccedf269f8 - <unknown>
  70:                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.80.1 (3f5fd8dd4 2024-08-06) 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 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@zxy/src/run/runner.rs:22:1: 79:2}: core::marker::Send`
#1 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<{async block@zxy/src/main.rs:135:48: 141:14} as core::marker::Send>, polarity:Positive), bound_vars: [] } }`
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 mir_borrowck(zxy[7cd5]::main)
end of try_mark_green dep node stack
Backtrace

``` thread 'rustc' panicked at compiler/rustc_hir/src/definitions.rs:389:13: ("Failed to extract DefId", def_kind, PackedFingerprint(Fingerprint(8995154711048952027, 5129404986291511177))) stack backtrace: 0: rust_begin_unwind at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:652:5 1: core::panicking::panic_fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/panicking.rs:72:14 2: ::local_def_path_hash_to_def_id::err 3: ::extract_def_id 4: ::{closure#0} as core::ops::function::FnOnce<(rustc_middle::ty::context::TyCtxt, rustc_query_system::dep_graph::dep_node::DepNode)>>::call_once 5: >::try_mark_previous_green:: 6: >::try_mark_previous_green:: 7: >::try_mark_previous_green:: 8: >::try_mark_previous_green:: 9: >::try_mark_previous_green:: 10: rustc_query_system::query::plumbing::try_execute_query::>, rustc_middle::query::erase::Erased<[u8; 2]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, true> 11: ::process_obligation 12: >::process_obligations:: 13: ::make_canonicalized_query_response::<()> 14: rustc_traits::type_op::type_op_prove_predicate [... omitted 1 frame ...] 15: ::fully_perform_op::<(), rustc_middle::ty::ParamEnvAnd> 16: ::normalize_and_prove_instantiated_predicates 17: ::visit_constant 18: ::visit_body 19: rustc_borrowck::type_check::type_check 20: rustc_borrowck::nll::compute_regions 21: rustc_borrowck::do_mir_borrowck [... omitted 5 frames ...] 22: rustc_interface::passes::analysis [... omitted 1 frame ...] 23: rustc_interface::interface::run_compiler::, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1} 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.80.1 (3f5fd8dd4 2024-08-06) 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 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@zxy/src/run/runner.rs:22:1: 79:2}: core::marker::Send` #1 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<{async block@zxy/src/main.rs:135:48: 141:14} as core::marker::Send>, polarity:Positive), bound_vars: [] } }` #2 [mir_borrowck] borrow-checking `main::{closure#0}` #3 [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 type_of(thread 'rustc' panicked at compiler/rustc_hir/src/definitions.rs:389:13: ("Failed to extract DefId", type_of, PackedFingerprint(Fingerprint(8995154711048952027, 5129404986291511177))) stack backtrace: 0: rust_begin_unwind at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:652:5 1: core::panicking::panic_fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/panicking.rs:72:14 2: ::local_def_path_hash_to_def_id::err 3: ::extract_def_id 4: rustc_interface::callbacks::dep_node_debug 5: ::fmt 6: core::fmt::rt::Argument::fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/rt.rs:165:63 7: core::fmt::write at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/fmt/mod.rs:1168:21 8: std::io::Write::write_fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/mod.rs:1835:15 9: <&std::io::stdio::Stderr as std::io::Write>::write_fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1019:9 10: ::write_fmt at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:993:9 11: std::io::stdio::print_to at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1117:21 12: std::io::stdio::_eprint at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/io/stdio.rs:1238:5 13: rustc_query_system::dep_graph::graph::print_markframe_trace:: 14: >::try_mark_previous_green:: 15: >::try_mark_previous_green:: 16: >::try_mark_previous_green:: 17: >::try_mark_previous_green:: 18: >::try_mark_previous_green:: 19: rustc_query_system::query::plumbing::try_execute_query::>, rustc_middle::query::erase::Erased<[u8; 2]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, true> 20: ::process_obligation 21: >::process_obligations:: 22: ::make_canonicalized_query_response::<()> 23: rustc_traits::type_op::type_op_prove_predicate [... omitted 1 frame ...] 24: ::fully_perform_op::<(), rustc_middle::ty::ParamEnvAnd> 25: ::normalize_and_prove_instantiated_predicates 26: ::visit_constant 27: ::visit_body 28: rustc_borrowck::type_check::type_check 29: rustc_borrowck::nll::compute_regions 30: rustc_borrowck::do_mir_borrowck [... omitted 5 frames ...] 31: rustc_interface::passes::analysis [... omitted 1 frame ...] 32: rustc_interface::interface::run_compiler::, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1} 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.80.1 (3f5fd8dd4 2024-08-06) 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 [evaluate_obligation] evaluating trait selection obligation `{coroutine witness@zxy/src/run/runner.rs:22:1: 79:2}: core::marker::Send` #1 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder { value: TraitPredicate(<{async block@zxy/src/main.rs:135:48: 141:14} as core::marker::Send>, polarity:Positive), bound_vars: [] } }` #2 [mir_borrowck] borrow-checking `main::{closure#0}` #3 [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 mir_borrowck(zxy[7cd5]::main) end of try_mark_green dep node stack ```

jieyouxu commented 1 week ago

@darkseid-is do you have a complete example? I.e. the code snippet you posted is at least using something like tracing and tracing_subscriber alongside an async runtime. Do you have a small project we can try to reproduce the ICE with?

darkseid-is commented 1 week ago

I am sorry the project is bit large to share. 8453 LOC . The project uses tokio runtime. Even removing the tracing part from the code, causes panic. Thank You.

jieyouxu commented 1 week ago

Does the panic still repro after you do cargo clean -> cargo check or cargo build again?

darkseid-is commented 1 week ago

cleaning and rebuilding fixes the issue. Commenting and uncommenting the code also fixes the issue too.

jieyouxu commented 1 week ago

Seems like something is messed up about your incremental cache (it could be a bug in rustc's incremental caching logic or it could be file corruption) but these issues are unfortunately hard to diagnose the root cause of without a reliable reproducer. I'll mark this as such, maybe someone can figure out how to reproduce this.