Skip to content

Internal Compiler Error in rustc with axum-client-ip-0.6.1 #134541

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Aranjedeath opened this issue Dec 20, 2024 · 10 comments · Fixed by #134575
Closed

Internal Compiler Error in rustc with axum-client-ip-0.6.1 #134541

Aranjedeath opened this issue Dec 20, 2024 · 10 comments · Fixed by #134575
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Aranjedeath
Copy link

Aranjedeath commented Dec 20, 2024

.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/rustc-ice-2024-12-20T03_09_48-55159.txt

error occurs in crate axum-client-ip-0.6.1

(I don't know what any of this means, I am just doing as requested by cargo/rustc)

query stack during panic:
#0 [mir_built] building MIR for `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
#1 [check_unsafety] unsafety-checking `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
end of query stack

rustc-ice-2024-12-20T03_13_04-81536.txt

@Aranjedeath Aranjedeath added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 20, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 20, 2024
@jieyouxu
Copy link
Member

Re-including ICE message so it shows up in search

ICE
thread 'rustc' panicked at compiler/rustc_mir_build/src/builder/scope.rs:1724:17:
Box<dyn Any>
stack backtrace:
   0:     0x16ce8d8686d5 - std::backtrace_rs::backtrace::libunwind::trace::h904121e00a845c7f
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x16ce8d8686d5 - std::backtrace_rs::backtrace::trace_unsynchronized::h1aae34ad510d6147
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x16ce8d8686d5 - std::backtrace::Backtrace::create::h3be366f4f51f7ab7
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/backtrace.rs:331:13
   3:     0x16ce8d868625 - std::backtrace::Backtrace::force_capture::h8b259855fc4325a0
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/backtrace.rs:312:9
   4:     0x16ce8786e0f7 - <alloc[369e840eecbe44b9]::boxed::Box<rustc_driver_impl[4cb7f679d55ee709]::install_ice_hook::{closure#0}> as core[6d384c12ead5b233]::ops::function::Fn<(&dyn for<'a, 'b> core[6d384c12ead5b233]::ops::function::Fn<(&'a std[b76d46389e1f9dbc]::panic::PanicHookInfo<'b>,), Output = ()> + core[6d384c12ead5b233]::marker::Sync + core[6d384c12ead5b233]::marker::Send, &std[b76d46389e1f9dbc]::panic::PanicHookInfo)>>::call
   5:     0x16ce8d8825a8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6f789b09f8bd1e4d
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/alloc/src/boxed.rs:1984:9
   6:     0x16ce8d8825a8 - std::panicking::rust_panic_with_hook::hab98cdbe75c377da
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/panicking.rs:825:13
   7:     0x16ce8d499c33 - std[b76d46389e1f9dbc]::panicking::begin_panic::<rustc_errors[ae8600090373afe5]::ExplicitBug>::{closure#0}
   8:     0x16ce8d4998f6 - std[b76d46389e1f9dbc]::sys::backtrace::__rust_end_short_backtrace::<std[b76d46389e1f9dbc]::panicking::begin_panic<rustc_errors[ae8600090373afe5]::ExplicitBug>::{closure#0}, !>
   9:     0x16ce8778122a - std[b76d46389e1f9dbc]::panicking::begin_panic::<rustc_errors[ae8600090373afe5]::ExplicitBug>
  10:     0x16ce8d475432 - <rustc_errors[ae8600090373afe5]::diagnostic::BugAbort as rustc_errors[ae8600090373afe5]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  11:     0x16ce8d1b2440 - <rustc_errors[ae8600090373afe5]::DiagCtxtHandle>::span_bug::<rustc_span[b1dfbefceb83f0d4]::span_encoding::Span, alloc[369e840eecbe44b9]::string::String>
  12:     0x16ce8d331974 - rustc_middle[6744e703aaf52f6c]::util::bug::opt_span_bug_fmt::<rustc_span[b1dfbefceb83f0d4]::span_encoding::Span>::{closure#0}
  13:     0x16ce8d322b7a - rustc_middle[6744e703aaf52f6c]::ty::context::tls::with_opt::<rustc_middle[6744e703aaf52f6c]::util::bug::opt_span_bug_fmt<rustc_span[b1dfbefceb83f0d4]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x16ce8d322b24 - rustc_middle[6744e703aaf52f6c]::ty::context::tls::with_context_opt::<rustc_middle[6744e703aaf52f6c]::ty::context::tls::with_opt<rustc_middle[6744e703aaf52f6c]::util::bug::opt_span_bug_fmt<rustc_span[b1dfbefceb83f0d4]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  15:     0x16ce8777537a - rustc_middle[6744e703aaf52f6c]::util::bug::span_bug_fmt::<rustc_span[b1dfbefceb83f0d4]::span_encoding::Span>
  16:     0x16ce8b1eb49d - <rustc_mir_build[8ea580628f1f669]::builder::scope::DropTree>::build_mir::<rustc_mir_build[8ea580628f1f669]::builder::scope::Unwind>
  17:     0x16ce8b1dbcb8 - <rustc_mir_build[8ea580628f1f669]::builder::Builder>::build_unwind_tree
  18:     0x16ce8b1db7ff - <rustc_mir_build[8ea580628f1f669]::builder::Builder>::build_drop_trees
  19:     0x16ce8b1bc94a - rustc_mir_build[8ea580628f1f669]::builder::mir_build
  20:     0x16ce8b1603b9 - rustc_mir_transform[7265790942f01996]::mir_built
  21:     0x16ce8c070b00 - rustc_query_impl[ef4c64899dc0034b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ef4c64899dc0034b]::query_impl::mir_built::dynamic_query::{closure#2}::{closure#0}, rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 8usize]>>
  22:     0x16ce8c0fe81c - <rustc_query_impl[ef4c64899dc0034b]::query_impl::mir_built::dynamic_query::{closure#2} as core[6d384c12ead5b233]::ops::function::FnOnce<(rustc_middle[6744e703aaf52f6c]::ty::context::TyCtxt, rustc_span[b1dfbefceb83f0d4]::def_id::LocalDefId)>>::call_once
  23:     0x16ce8c005668 - rustc_query_system[be8b6bfc93c0cc71]::query::plumbing::try_execute_query::<rustc_query_impl[ef4c64899dc0034b]::DynamicConfig<rustc_data_structures[4c21fa878d2a2e33]::vec_cache::VecCache<rustc_span[b1dfbefceb83f0d4]::def_id::LocalDefId, rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[be8b6bfc93c0cc71]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[ef4c64899dc0034b]::plumbing::QueryCtxt, false>
  24:     0x16ce8c1082cd - rustc_query_impl[ef4c64899dc0034b]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace
  25:     0x16ce8b1fdb73 - rustc_mir_build[8ea580628f1f669]::check_unsafety::check_unsafety
  26:     0x16ce8c0697fc - rustc_query_impl[ef4c64899dc0034b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ef4c64899dc0034b]::query_impl::check_unsafety::dynamic_query::{closure#2}::{closure#0}, rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 0usize]>>
  27:     0x16ce8c20091c - <rustc_query_impl[ef4c64899dc0034b]::query_impl::check_unsafety::dynamic_query::{closure#2} as core[6d384c12ead5b233]::ops::function::FnOnce<(rustc_middle[6744e703aaf52f6c]::ty::context::TyCtxt, rustc_span[b1dfbefceb83f0d4]::def_id::LocalDefId)>>::call_once
  28:     0x16ce8bff64e8 - rustc_query_system[be8b6bfc93c0cc71]::query::plumbing::try_execute_query::<rustc_query_impl[ef4c64899dc0034b]::DynamicConfig<rustc_data_structures[4c21fa878d2a2e33]::vec_cache::VecCache<rustc_span[b1dfbefceb83f0d4]::def_id::LocalDefId, rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 0usize]>, rustc_query_system[be8b6bfc93c0cc71]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[ef4c64899dc0034b]::plumbing::QueryCtxt, false>
  29:     0x16ce8c112ff4 - rustc_query_impl[ef4c64899dc0034b]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace
  30:     0x16ce87a649e6 - <rustc_middle[6744e703aaf52f6c]::hir::map::Map>::par_body_owners::<rustc_interface[70fa2feb797d2dde]::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
  31:     0x16ce87a532bb - <rustc_session[b463851669bfc3da]::session::Session>::time::<(), rustc_interface[70fa2feb797d2dde]::passes::run_required_analyses::{closure#2}>
  32:     0x16ce87a21bd7 - rustc_interface[70fa2feb797d2dde]::passes::analysis
  33:     0x16ce8c0705da - rustc_query_impl[ef4c64899dc0034b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[ef4c64899dc0034b]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 0usize]>>
  34:     0x16ce8c204458 - <rustc_query_impl[ef4c64899dc0034b]::query_impl::analysis::dynamic_query::{closure#2} as core[6d384c12ead5b233]::ops::function::FnOnce<(rustc_middle[6744e703aaf52f6c]::ty::context::TyCtxt, ())>>::call_once
  35:     0x16ce8bf55a0e - rustc_query_system[be8b6bfc93c0cc71]::query::plumbing::try_execute_query::<rustc_query_impl[ef4c64899dc0034b]::DynamicConfig<rustc_query_system[be8b6bfc93c0cc71]::query::caches::SingleCache<rustc_middle[6744e703aaf52f6c]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[ef4c64899dc0034b]::plumbing::QueryCtxt, false>
  36:     0x16ce8c1038aa - rustc_query_impl[ef4c64899dc0034b]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  37:     0x16ce8783b95e - <rustc_middle[6744e703aaf52f6c]::ty::context::TyCtxt>::create_global_ctxt::<core[6d384c12ead5b233]::option::Option<rustc_interface[70fa2feb797d2dde]::queries::Linker>, rustc_interface[70fa2feb797d2dde]::passes::create_and_enter_global_ctxt<core[6d384c12ead5b233]::option::Option<rustc_interface[70fa2feb797d2dde]::queries::Linker>, rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  38:     0x16ce878023bb - <rustc_interface[70fa2feb797d2dde]::passes::create_and_enter_global_ctxt<core[6d384c12ead5b233]::option::Option<rustc_interface[70fa2feb797d2dde]::queries::Linker>, rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[6d384c12ead5b233]::ops::function::FnOnce<(&rustc_interface[70fa2feb797d2dde]::interface::Compiler, &std[b76d46389e1f9dbc]::sync::once_lock::OnceLock<rustc_middle[6744e703aaf52f6c]::ty::context::GlobalCtxt>, &rustc_data_structures[4c21fa878d2a2e33]::sync::worker_local::WorkerLocal<rustc_middle[6744e703aaf52f6c]::arena::Arena>, &rustc_data_structures[4c21fa878d2a2e33]::sync::worker_local::WorkerLocal<rustc_hir[ee3933a93d424554]::Arena>, rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  39:     0x16ce877e87e0 - rustc_interface[70fa2feb797d2dde]::passes::create_and_enter_global_ctxt::<core[6d384c12ead5b233]::option::Option<rustc_interface[70fa2feb797d2dde]::queries::Linker>, rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}::{closure#2}>
  40:     0x16ce8780b660 - <scoped_tls[d8bcf36d2f954050]::ScopedKey<rustc_span[b1dfbefceb83f0d4]::SessionGlobals>>::set::<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_with_globals<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_pool_with_globals<rustc_interface[70fa2feb797d2dde]::interface::run_compiler<(), rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
  41:     0x16ce87854f6c - rustc_span[b1dfbefceb83f0d4]::create_session_globals_then::<(), rustc_interface[70fa2feb797d2dde]::util::run_in_thread_with_globals<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_pool_with_globals<rustc_interface[70fa2feb797d2dde]::interface::run_compiler<(), rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  42:     0x16ce87873f02 - std[b76d46389e1f9dbc]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_with_globals<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_pool_with_globals<rustc_interface[70fa2feb797d2dde]::interface::run_compiler<(), rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  43:     0x16ce87813ef3 - <<std[b76d46389e1f9dbc]::thread::Builder>::spawn_unchecked_<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_with_globals<rustc_interface[70fa2feb797d2dde]::util::run_in_thread_pool_with_globals<rustc_interface[70fa2feb797d2dde]::interface::run_compiler<(), rustc_driver_impl[4cb7f679d55ee709]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[6d384c12ead5b233]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  44:     0x16ce8d88b36b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3da1b2c2e3f72616
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/alloc/src/boxed.rs:1970:9
  45:     0x16ce8d88b36b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha3ec4c9b3186a532
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/alloc/src/boxed.rs:1970:9
  46:     0x16ce8d88b36b - std::sys::pal::unix::thread::Thread::new::thread_start::hd7b6bc191a3bbea6
                               at /rustc/9e136a30a965bf4e63f03095c57df7257bf96fd6/library/std/src/sys/pal/unix/thread.rs:105:17
  47:     0x16ce938dab05 - thread_start
                               at /usr/src/lib/libthr/thread/thr_create.c:289:16


rustc version: 1.85.0-nightly (9e136a30a 2024-12-19)
platform: x86_64-unknown-freebsd

query stack during panic:
#0 [mir_built] building MIR for `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
#1 [check_unsafety] unsafety-checking `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
#2 [analysis] running analysis passes on this crate
end of query stack

@jieyouxu
Copy link
Member

Locally with cargo +nightly check:

error: internal compiler error: compiler/rustc_mir_build/src/builder/scope.rs:1724:17: cannot unwind from goto -> bb198

@jieyouxu

This comment has been minimized.

@jieyouxu jieyouxu added the A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html label Dec 20, 2024
@jieyouxu

This comment has been minimized.

@jieyouxu jieyouxu added E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc labels Dec 20, 2024
@Aranjedeath
Copy link
Author

Thank you for testing it this far back. I tried using rustup to "go to a previous nightly" and reverted to 11-18 nightly and it failed the same way. I can provide what is on my terminal when this fails, if that would be helpful.

@jieyouxu
Copy link
Member

Thank you for testing it this far back. I tried using rustup to "go to a previous nightly" and reverted to 11-18 nightly and it failed the same way. I can provide what is on my terminal when this fails, if that would be helpful.

If it also says "error: internal compiler error: ... cannot unwind from goto -> bb198" or very similar, then it's the same problem.

@jieyouxu
Copy link
Member

jieyouxu commented Dec 20, 2024

Hmm okay, I believe my bisection was wrong, not sure why it bisected to that previously.
EDIT: or is it? Ah, it's because:

  • Stable doesn't error with if_let_rescope.
  • Beta errors with if_let_rescope.
error: `if let` assigns a shorter lifetime since Edition 2024
   --> src/secure.rs:134:12
    |
134 |         if let Some(ip_source) = parts.extensions.get() {
    |            ^^^^^^^^^^^^^^^^^^^^^^----------------^^^^^^
    |                                  |
    |                                  this value has a significant drop implementation which may observe a major change in drop order and requires your discretion
    |
    = warning: this changes meaning in Rust 2024
    = note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
help: the value is now dropped here in Edition 2024
   --> src/secure.rs:136:9
    |
136 |         } else {
    |         ^
    = note: `-D if-let-rescope` implied by `-D rust-2024-compatibility`
    = help: to override `-D rust-2024-compatibility` add `#[allow(if_let_rescope)]`
help: a `match` with a single arm can preserve the drop order up to Edition 2021
    |
134 ~         match parts.extensions.get() { Some(ip_source) => {
135 |             Ok(Self::from(ip_source, &parts.headers, &parts.extensions)?)
136 ~         } _ => {
137 |             Err("Can't extract `SecureClientIp`, add `SecureClientIpSource` into extensions".into())
138 ~         }}
  • Nightly ICEs.

Another bisection attempt (error -> ICE) points to 11663cd.

@jieyouxu
Copy link
Member

cc @compiler-errors could this be #134486?

@jieyouxu
Copy link
Member

Probably a duplicate of #134566, but I haven't tried to minimize this one.

@jieyouxu jieyouxu removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc labels Dec 20, 2024
@Aranjedeath
Copy link
Author

error: internal compiler error: compiler/rustc_mir_build/src/builder/scope.rs:1724:17: cannot unwind from goto -> bb198

thread 'rustc' panicked at compiler/rustc_mir_build/src/builder/scope.rs:1724:17:
Box<dyn Any>
stack backtrace:
   0:       0xaa40e671aa - std::backtrace_rs::backtrace::libunwind::trace::ha2afcb5f8640e01d
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:       0xaa40e671aa - std::backtrace_rs::backtrace::trace_unsynchronized::hc1ed87acb40985eb
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:       0xaa40e671aa - std::sys::backtrace::_print_fmt::ha610f67d0e137bdc
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/sys/backtrace.rs:66:9
   3:       0xaa40e671aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h36ae93287ef861dd
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/sys/backtrace.rs:39:26
   4:       0xaa40eb2c13 - core::fmt::rt::Argument::fmt::h50950151988cfc89
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/core/src/fmt/rt.rs:177:76
   5:       0xaa40eb2c13 - core::fmt::write::h10b5bed564f33da2
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/core/src/fmt/mod.rs:1437:21
   6:       0xaa40e5c083 - std::io::Write::write_fmt::h7b976c135b6bc2c0
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/io/mod.rs:1887:15
   7:       0xaa40e66ff2 - std::sys::backtrace::BacktraceLock::print::hca7bc6f992bec141
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/sys/backtrace.rs:42:9
   8:       0xaa40e6975e - std::panicking::default_hook::{{closure}}::hc9fb417fdf9c32a0
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/panicking.rs:284:22
   9:       0xaa40e695a3 - std::panicking::default_hook::h700f3022ea20998b
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/panicking.rs:311:9
  10:       0xaa3ae6ba39 - <alloc[c2fafc1ffd59eb69]::boxed::Box<rustc_driver_impl[51f9f569ea70125a]::install_ice_hook::{closure#0}> as core[f7e480a3387925a5]::ops::function::Fn<(&dyn for<'a, 'b> core[f7e480a3387925a5]::ops::function::Fn<(&'a std[56e136d19522281a]::panic::PanicHookInfo<'b>,), Output = ()> + core[f7e480a3387925a5]::marker::Sync + core[f7e480a3387925a5]::marker::Send, &std[56e136d19522281a]::panic::PanicHookInfo)>>::call
  11:       0xaa40e69f68 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2c6df4cb1195d123
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/alloc/src/boxed.rs:1984:9
  12:       0xaa40e69f68 - std::panicking::rust_panic_with_hook::h7d3340cf5b0c2568
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/panicking.rs:825:13
  13:       0xaa40a80e23 - std[56e136d19522281a]::panicking::begin_panic::<rustc_errors[84ad3dc9f5b683fc]::ExplicitBug>::{closure#0}
  14:       0xaa40a80a16 - std[56e136d19522281a]::sys::backtrace::__rust_end_short_backtrace::<std[56e136d19522281a]::panicking::begin_panic<rustc_errors[84ad3dc9f5b683fc]::ExplicitBug>::{closure#0}, !>
  15:       0xaa3ad7ec22 - std[56e136d19522281a]::panicking::begin_panic::<rustc_errors[84ad3dc9f5b683fc]::ExplicitBug>
  16:       0xaa40a5c562 - <rustc_errors[84ad3dc9f5b683fc]::diagnostic::BugAbort as rustc_errors[84ad3dc9f5b683fc]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  17:       0xaa40799770 - <rustc_errors[84ad3dc9f5b683fc]::DiagCtxtHandle>::span_bug::<rustc_span[cdc5e91bdafaed11]::span_encoding::Span, alloc[c2fafc1ffd59eb69]::string::String>
  18:       0xaa4088bcb4 - rustc_middle[83dc8f309f3b7768]::util::bug::opt_span_bug_fmt::<rustc_span[cdc5e91bdafaed11]::span_encoding::Span>::{closure#0}
  19:       0xaa4087ceba - rustc_middle[83dc8f309f3b7768]::ty::context::tls::with_opt::<rustc_middle[83dc8f309f3b7768]::util::bug::opt_span_bug_fmt<rustc_span[cdc5e91bdafaed11]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  20:       0xaa4087ce64 - rustc_middle[83dc8f309f3b7768]::ty::context::tls::with_context_opt::<rustc_middle[83dc8f309f3b7768]::ty::context::tls::with_opt<rustc_middle[83dc8f309f3b7768]::util::bug::opt_span_bug_fmt<rustc_span[cdc5e91bdafaed11]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  21:       0xaa3ad6eada - rustc_middle[83dc8f309f3b7768]::util::bug::span_bug_fmt::<rustc_span[cdc5e91bdafaed11]::span_encoding::Span>
  22:       0xaa3e7d338d - <rustc_mir_build[aa227f2d14fb6075]::builder::scope::DropTree>::build_mir::<rustc_mir_build[aa227f2d14fb6075]::builder::scope::Unwind>
  23:       0xaa3e7c3ba8 - <rustc_mir_build[aa227f2d14fb6075]::builder::Builder>::build_unwind_tree
  24:       0xaa3e7c36ef - <rustc_mir_build[aa227f2d14fb6075]::builder::Builder>::build_drop_trees
  25:       0xaa3e7a483a - rustc_mir_build[aa227f2d14fb6075]::builder::mir_build
  26:       0xaa3e518329 - rustc_mir_transform[be5f9263b6e12931]::mir_built
  27:       0xaa3f65c600 - rustc_query_impl[36a1cc69b9d2686b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[36a1cc69b9d2686b]::query_impl::mir_built::dynamic_query::{closure#2}::{closure#0}, rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 8usize]>>
  28:       0xaa3f6b408c - <rustc_query_impl[36a1cc69b9d2686b]::query_impl::mir_built::dynamic_query::{closure#2} as core[f7e480a3387925a5]::ops::function::FnOnce<(rustc_middle[83dc8f309f3b7768]::ty::context::TyCtxt, rustc_span[cdc5e91bdafaed11]::def_id::LocalDefId)>>::call_once
  29:       0xaa3f5f3398 - rustc_query_system[5e3aaaaa924abf56]::query::plumbing::try_execute_query::<rustc_query_impl[36a1cc69b9d2686b]::DynamicConfig<rustc_data_structures[25ae2dc9d04b91fd]::vec_cache::VecCache<rustc_span[cdc5e91bdafaed11]::def_id::LocalDefId, rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[5e3aaaaa924abf56]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[36a1cc69b9d2686b]::plumbing::QueryCtxt, false>
  30:       0xaa3f77b53d - rustc_query_impl[36a1cc69b9d2686b]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace
  31:       0xaa3e7e5a63 - rustc_mir_build[aa227f2d14fb6075]::check_unsafety::check_unsafety
  32:       0xaa3f6552fc - rustc_query_impl[36a1cc69b9d2686b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[36a1cc69b9d2686b]::query_impl::check_unsafety::dynamic_query::{closure#2}::{closure#0}, rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 0usize]>>
  33:       0xaa3f84dd3c - <rustc_query_impl[36a1cc69b9d2686b]::query_impl::check_unsafety::dynamic_query::{closure#2} as core[f7e480a3387925a5]::ops::function::FnOnce<(rustc_middle[83dc8f309f3b7768]::ty::context::TyCtxt, rustc_span[cdc5e91bdafaed11]::def_id::LocalDefId)>>::call_once
  34:       0xaa3f5e4218 - rustc_query_system[5e3aaaaa924abf56]::query::plumbing::try_execute_query::<rustc_query_impl[36a1cc69b9d2686b]::DynamicConfig<rustc_data_structures[25ae2dc9d04b91fd]::vec_cache::VecCache<rustc_span[cdc5e91bdafaed11]::def_id::LocalDefId, rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 0usize]>, rustc_query_system[5e3aaaaa924abf56]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[36a1cc69b9d2686b]::plumbing::QueryCtxt, false>
  35:       0xaa3f786504 - rustc_query_impl[36a1cc69b9d2686b]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace
  36:       0xaa3b0627f6 - <rustc_middle[83dc8f309f3b7768]::hir::map::Map>::par_body_owners::<rustc_interface[e2574c2fc2e22a9a]::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
  37:       0xaa3b0510cb - <rustc_session[597e795c677c1f3c]::session::Session>::time::<(), rustc_interface[e2574c2fc2e22a9a]::passes::run_required_analyses::{closure#2}>
  38:       0xaa3b01f8e7 - rustc_interface[e2574c2fc2e22a9a]::passes::analysis
  39:       0xaa3f65c0da - rustc_query_impl[36a1cc69b9d2686b]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[36a1cc69b9d2686b]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 0usize]>>
  40:       0xaa3f831568 - <rustc_query_impl[36a1cc69b9d2686b]::query_impl::analysis::dynamic_query::{closure#2} as core[f7e480a3387925a5]::ops::function::FnOnce<(rustc_middle[83dc8f309f3b7768]::ty::context::TyCtxt, ())>>::call_once
  41:       0xaa3f54148e - rustc_query_system[5e3aaaaa924abf56]::query::plumbing::try_execute_query::<rustc_query_impl[36a1cc69b9d2686b]::DynamicConfig<rustc_query_system[5e3aaaaa924abf56]::query::caches::SingleCache<rustc_middle[83dc8f309f3b7768]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[36a1cc69b9d2686b]::plumbing::QueryCtxt, false>
  42:       0xaa3f7765da - rustc_query_impl[36a1cc69b9d2686b]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  43:       0xaa3ae3931d - <rustc_middle[83dc8f309f3b7768]::ty::context::TyCtxt>::create_global_ctxt::<core[f7e480a3387925a5]::option::Option<rustc_interface[e2574c2fc2e22a9a]::queries::Linker>, rustc_interface[e2574c2fc2e22a9a]::passes::create_and_enter_global_ctxt<core[f7e480a3387925a5]::option::Option<rustc_interface[e2574c2fc2e22a9a]::queries::Linker>, rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  44:       0xaa3adffda2 - <rustc_interface[e2574c2fc2e22a9a]::passes::create_and_enter_global_ctxt<core[f7e480a3387925a5]::option::Option<rustc_interface[e2574c2fc2e22a9a]::queries::Linker>, rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[f7e480a3387925a5]::ops::function::FnOnce<(&rustc_session[597e795c677c1f3c]::session::Session, rustc_middle[83dc8f309f3b7768]::ty::context::CurrentGcx, &std[56e136d19522281a]::sync::once_lock::OnceLock<rustc_middle[83dc8f309f3b7768]::ty::context::GlobalCtxt>, &rustc_data_structures[25ae2dc9d04b91fd]::sync::worker_local::WorkerLocal<rustc_middle[83dc8f309f3b7768]::arena::Arena>, &rustc_data_structures[25ae2dc9d04b91fd]::sync::worker_local::WorkerLocal<rustc_hir[aec72e8f6bdb03da]::Arena>, rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  45:       0xaa3ade61cc - rustc_interface[e2574c2fc2e22a9a]::passes::create_and_enter_global_ctxt::<core[f7e480a3387925a5]::option::Option<rustc_interface[e2574c2fc2e22a9a]::queries::Linker>, rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}::{closure#2}>
  46:       0xaa3ae09040 - <scoped_tls[89ce2284c68d22ee]::ScopedKey<rustc_span[cdc5e91bdafaed11]::SessionGlobals>>::set::<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_with_globals<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_pool_with_globals<rustc_interface[e2574c2fc2e22a9a]::interface::run_compiler<(), rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
  47:       0xaa3ae52a5c - rustc_span[cdc5e91bdafaed11]::create_session_globals_then::<(), rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_with_globals<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_pool_with_globals<rustc_interface[e2574c2fc2e22a9a]::interface::run_compiler<(), rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  48:       0xaa3ae74122 - std[56e136d19522281a]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_with_globals<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_pool_with_globals<rustc_interface[e2574c2fc2e22a9a]::interface::run_compiler<(), rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  49:       0xaa3ae118d3 - <<std[56e136d19522281a]::thread::Builder>::spawn_unchecked_<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_with_globals<rustc_interface[e2574c2fc2e22a9a]::util::run_in_thread_pool_with_globals<rustc_interface[e2574c2fc2e22a9a]::interface::run_compiler<(), rustc_driver_impl[51f9f569ea70125a]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[f7e480a3387925a5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  50:       0xaa40e72d2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4cbf9810c537e678
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/alloc/src/boxed.rs:1970:9
  51:       0xaa40e72d2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h125fdb79057e80fb
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/alloc/src/boxed.rs:1970:9
  52:       0xaa40e72d2b - std::sys::pal::unix::thread::Thread::new::thread_start::h12897668eed59c83
                               at /rustc/5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686/library/std/src/sys/pal/unix/thread.rs:106:17
  53:       0xaa449ddb05 - thread_start
                               at /usr/src/lib/libthr/thread/thr_create.c:289:16

query stack during panic:
#0 [mir_built] building MIR for `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
#1 [check_unsafety] unsafety-checking `secure::_::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::deserialize::<impl at /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/secure.rs:37:24: 37:35>::visit_enum`
end of query stack
error: could not compile `axum-client-ip` (lib)

Caused by:
  process didn't exit successfully: `/home/aranjedeath/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc --crate-name axum_client_ip --edition=2021 /home/aranjedeath/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/axum-client-ip-0.6.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=283 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto --deny=rust_2024_compatibility --deny=rust_2021_compatibility --deny=rust_2018_idioms --deny=rust_2018_compatibility --deny=refining_impl_trait --deny=nonstandard_style --deny=let_underscore --deny=keyword_idents --deny=future_incompatible --warn=unused --warn=unreachable_pub '--warn=clippy::all' --forbid=unsafe_code --deny=missing_docs --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=f4a9de3186cb1de8 -C extra-filename=-90c91fcc9d56887f --out-dir /usr/home/aranjedeath/conduwuit/target/release/deps -C strip=symbols -L dependency=/usr/home/aranjedeath/conduwuit/target/release/deps --extern axum=/usr/home/aranjedeath/conduwuit/target/release/deps/libaxum-243d81c109134c30.rmeta --extern forwarded_header_value=/usr/home/aranjedeath/conduwuit/target/release/deps/libforwarded_header_value-2c6ddfb93953c8be.rmeta --extern serde=/usr/home/aranjedeath/conduwuit/target/release/deps/libserde-9d952292a43cf166.rmeta --cap-lints allow` (exit status: 101)


@bors bors closed this as completed in 307fe49 Dec 21, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Dec 21, 2024
Rollup merge of rust-lang#134575 - compiler-errors:drop-lint-coro, r=nikomatsakis

Handle `DropKind::ForLint` in coroutines correctly

Fixes rust-lang#134566
Fixes rust-lang#134541
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants