Skip to content

ICE IncompatibleSignature #1682

Description

@matthiaskrgr

requires debug assertions!

fn main() {
    println!("{}", 2.0f32.powi(4))
}
#[no_mangle]
fn __powisf2() -> f32 {
    let r = 1f32;
    r
}

-Zcodegen-backend=cranelift --edition=2021 code.rs

thread 'rustc' (3646054) panicked at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/abi/mod.rs:205:81:
called `Result::unwrap()` on an `Err` value: IncompatibleSignature("__powisf2", Signature { params: [], returns: [AbiParam { value_type: types::F32, purpose: Normal, extension: None }], call_conv: SystemV }, Signature { params: [AbiParam { value_type: types::F32, purpose: Normal, extension: None }, AbiParam { value_type: types::I32, purpose: Normal, extension: None }], returns: [AbiParam { value_type: types::F32, purpose: Normal, extension: None }], call_conv: SystemV })
stack backtrace:
   0:     0x7fef30e12130 - std[9326092b00475bf2]::backtrace_rs::backtrace::libunwind::trace
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x7fef30e12130 - std[9326092b00475bf2]::backtrace_rs::backtrace::trace_unsynchronized::<std[9326092b00475bf2]::sys::backtrace::_print_fmt::{closure#1}>
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x7fef30e12130 - std[9326092b00475bf2]::sys::backtrace::_print_fmt
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/backtrace.rs:74:9
   3:     0x7fef30e12130 - <<std[9326092b00475bf2]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[7c385f14d166af65]::fmt::Display>::fmt
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/backtrace.rs:44:26
   4:     0x7fef2c696a8e - <core[7c385f14d166af65]::fmt::rt::Argument>::fmt
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/fmt/rt.rs:152:76
   5:     0x7fef2c696a8e - core[7c385f14d166af65]::fmt::write
   6:     0x7fef30e290cc - core[7c385f14d166af65]::io::write::default_write_fmt::<std[9326092b00475bf2]::sys::stdio::unix::Stderr>
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/io/write.rs:402:11
   7:     0x7fef30e290cc - <std[9326092b00475bf2]::sys::stdio::unix::Stderr as core[7c385f14d166af65]::io::write::Write>::write_fmt
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/io/write.rs:335:13
   8:     0x7fef30dd1244 - <std[9326092b00475bf2]::sys::backtrace::BacktraceLock>::print
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/backtrace.rs:47:9
   9:     0x7fef30dd1244 - std[9326092b00475bf2]::panicking::default_hook::{closure#0}
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:292:27
  10:     0x7fef30dfe5c1 - std[9326092b00475bf2]::panicking::default_hook
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:319:9
  11:     0x7fef2d9bfb78 - <alloc[a27fca2769314a80]::boxed::Box<dyn for<'a, 'b> core[7c385f14d166af65]::ops::function::Fn<(&'a std[9326092b00475bf2]::panic::PanicHookInfo<'b>,), Output = ()> + core[7c385f14d166af65]::marker::Sync + core[7c385f14d166af65]::marker::Send> as core[7c385f14d166af65]::ops::function::Fn<(&std[9326092b00475bf2]::panic::PanicHookInfo,)>>::call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/alloc/src/boxed.rs:2328:9
  12:     0x7fef2d9bfb78 - rustc_driver_impl[ab0677a2e82c5f39]::install_ice_hook::{closure#1}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_driver_impl/src/lib.rs:1482:17
  13:     0x7fef2d9bfb78 - <alloc[a27fca2769314a80]::boxed::Box<rustc_driver_impl[ab0677a2e82c5f39]::install_ice_hook::{closure#1}> as core[7c385f14d166af65]::ops::function::Fn<(&dyn for<'a, 'b> core[7c385f14d166af65]::ops::function::Fn<(&'a std[9326092b00475bf2]::panic::PanicHookInfo<'b>,), Output = ()> + core[7c385f14d166af65]::marker::Sync + core[7c385f14d166af65]::marker::Send, &std[9326092b00475bf2]::panic::PanicHookInfo)>>::call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/alloc/src/boxed.rs:2328:9
  14:     0x7fef2d9bfb78 - std[9326092b00475bf2]::panicking::update_hook::<alloc[a27fca2769314a80]::boxed::Box<rustc_driver_impl[ab0677a2e82c5f39]::install_ice_hook::{closure#1}>>::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:235:47
  15:     0x7fef30dfea4a - <alloc[a27fca2769314a80]::boxed::Box<dyn for<'a, 'b> core[7c385f14d166af65]::ops::function::Fn<(&'a std[9326092b00475bf2]::panic::PanicHookInfo<'b>,), Output = ()> + core[7c385f14d166af65]::marker::Sync + core[7c385f14d166af65]::marker::Send> as core[7c385f14d166af65]::ops::function::Fn<(&std[9326092b00475bf2]::panic::PanicHookInfo,)>>::call
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/alloc/src/boxed.rs:2328:9
  16:     0x7fef30dfea4a - std[9326092b00475bf2]::panicking::panic_with_hook
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:823:13
  17:     0x7fef30dd1312 - std[9326092b00475bf2]::panicking::panic_handler::{closure#0}
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:688:13
  18:     0x7fef30dc1629 - std[9326092b00475bf2]::sys::backtrace::__rust_end_short_backtrace::<std[9326092b00475bf2]::panicking::panic_handler::{closure#0}, !>
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/backtrace.rs:182:18
  19:     0x7fef30dd32ed - __rustc[2d203722a57af259]::rust_begin_unwind
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:679:5
  20:     0x7fef2c6977fc - core[7c385f14d166af65]::panicking::panic_fmt
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/panicking.rs:80:14
  21:     0x7fef2c6974c2 - core[7c385f14d166af65]::result::unwrap_failed
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/result.rs:1870:5
  22:     0x7fef1d9293b1 - <core[7c385f14d166af65]::result::Result<cranelift_module[cbc8e93cdafb24f7]::module::FuncId, cranelift_module[cbc8e93cdafb24f7]::module::ModuleError>>::unwrap
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/result.rs:1231:23
  23:     0x7fef1d9293b1 - <rustc_codegen_cranelift[eaa042a4b6a8adb1]::common::FunctionCx>::lib_call_unadjusted
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/abi/mod.rs:205:81
  24:     0x7fef1d929b10 - <rustc_codegen_cranelift[eaa042a4b6a8adb1]::common::FunctionCx>::lib_call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/abi/mod.rs:193:32
  25:     0x7fef1d9524e3 - rustc_codegen_cranelift[eaa042a4b6a8adb1]::intrinsics::codegen_float_intrinsic_call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs:501:30
  26:     0x7fef1d9524e3 - rustc_codegen_cranelift[eaa042a4b6a8adb1]::intrinsics::codegen_intrinsic_call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs:300:15
  27:     0x7fef1d9524e3 - rustc_codegen_cranelift[eaa042a4b6a8adb1]::abi::codegen_terminator_call
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/abi/mod.rs:454:23
  28:     0x7fef1d96379a - rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn_body::{closure#3}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/base.rs:516:21
  29:     0x7fef1d96379a - <rustc_data_structures[524122b0467da568]::profiling::TimingGuard>::run::<(), rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn_body::{closure#3}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_data_structures/src/profiling.rs:809:9
  30:     0x7fef1d96379a - rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn_body
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/base.rs:515:62
  31:     0x7fef1d989e8c - rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn::{closure#2}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/base.rs:121:57
  32:     0x7fef1d989e8c - <rustc_data_structures[524122b0467da568]::profiling::TimingGuard>::run::<(), rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn::{closure#2}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_data_structures/src/profiling.rs:809:9
  33:     0x7fef1d989e8c - rustc_codegen_cranelift[eaa042a4b6a8adb1]::base::codegen_fn
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/base.rs:121:50
  34:     0x7fef1d989e8c - rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::codegen_cgu
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/driver/aot.rs:176:42
  35:     0x7fef1d92291e - <rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotDriver as rustc_codegen_ssa[45ae752893652c82]::traits::backend::ExtraBackendMethods>::compile_codegen_unit::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/driver/aot.rs:295:34
  36:     0x7fef1d99bd2d - <rustc_middle[7edb896fdebb3d91]::dep_graph::graph::DepGraph>::with_task::<<rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotDriver as rustc_codegen_ssa[45ae752893652c82]::traits::backend::ExtraBackendMethods>::compile_codegen_unit::{closure#0}, rustc_codegen_ssa[45ae752893652c82]::ModuleCodegen<rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotModule>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/dep_graph/graph.rs:342:22
  37:     0x7fef1d99bd2d - <rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotDriver as rustc_codegen_ssa[45ae752893652c82]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/driver/aot.rs:291:41
  38:     0x7fef1d8d3725 - rustc_codegen_ssa[45ae752893652c82]::base::codegen_crate::<rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotDriver, rustc_codegen_cranelift[eaa042a4b6a8adb1]::driver::aot::AotModule>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_ssa/src/base.rs:848:42
  39:     0x7fef1d9adc94 - <rustc_codegen_cranelift[eaa042a4b6a8adb1]::CraneliftCodegenBackend as rustc_codegen_ssa[45ae752893652c82]::traits::backend::CodegenBackend>::codegen_crate
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_codegen_cranelift/src/lib.rs:228:22
  40:     0x7fef2e762d48 - rustc_interface[999afb3dfa129576]::passes::start_codegen::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/passes.rs:1312:29
  41:     0x7fef2e762d48 - <rustc_data_structures[524122b0467da568]::profiling::VerboseTimingGuard>::run::<alloc[a27fca2769314a80]::boxed::Box<dyn core[7c385f14d166af65]::any::Any>, rustc_interface[999afb3dfa129576]::passes::start_codegen::{closure#0}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_data_structures/src/profiling.rs:845:9
  42:     0x7fef2e762d48 - <rustc_session[2bc09be9cadf4a44]::session::Session>::time::<alloc[a27fca2769314a80]::boxed::Box<dyn core[7c385f14d166af65]::any::Any>, rustc_interface[999afb3dfa129576]::passes::start_codegen::{closure#0}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_session/src/utils.rs:17:50
  43:     0x7fef2e762d48 - rustc_interface[999afb3dfa129576]::passes::start_codegen
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/passes.rs:1304:28
  44:     0x7fef2e762d48 - <rustc_interface[999afb3dfa129576]::queries::Linker>::codegen_and_build_linker
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/queries.rs:33:55
  45:     0x7fef2d9a92b2 - rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_driver_impl/src/lib.rs:330:26
  46:     0x7fef2d9a92b2 - rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt::<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/passes.rs:1036:80
  47:     0x7fef2d9a92b2 - <core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}::{closure#0}> as core[7c385f14d166af65]::ops::function::FnOnce<()>>::call_once
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/panic/unwind_safe.rs:275:9
  48:     0x7fef2d9a92b2 - std[9326092b00475bf2]::panicking::catch_unwind::do_call::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}::{closure#0}>, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:576:43
  49:     0x7fef2d9a92b2 - std[9326092b00475bf2]::panicking::catch_unwind::<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}::{closure#0}>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:544:19
  50:     0x7fef2d9a92b2 - std[9326092b00475bf2]::panic::catch_unwind::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}::{closure#0}>, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panic.rs:359:14
  51:     0x7fef2d9a92b2 - rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt::<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/passes.rs:1036:23
  52:     0x7fef2d9a92b2 - <rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter::<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#1}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/ty/context.rs:792:37
  53:     0x7fef2d9a92b2 - rustc_middle[7edb896fdebb3d91]::ty::context::tls::enter_context::<<rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#1}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/ty/context/tls.rs:56:9
  54:     0x7fef2d9a92b2 - <std[9326092b00475bf2]::thread::local::LocalKey<core[7c385f14d166af65]::cell::Cell<*const ()>>>::try_with::<rustc_middle[7edb896fdebb3d91]::ty::context::tls::enter_context<<rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#1}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#0}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/thread/local.rs:464:12
  55:     0x7fef2d9a92b2 - <std[9326092b00475bf2]::thread::local::LocalKey<core[7c385f14d166af65]::cell::Cell<*const ()>>>::with::<rustc_middle[7edb896fdebb3d91]::ty::context::tls::enter_context<<rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#1}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#0}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/thread/local.rs:428:20
  56:     0x7fef2d9a92b2 - rustc_middle[7edb896fdebb3d91]::ty::context::tls::enter_context::<<rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>::{closure#1}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/ty/context/tls.rs:53:9
  57:     0x7fef2d9a92b2 - <rustc_middle[7edb896fdebb3d91]::ty::context::GlobalCtxt>::enter::<rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}, core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/ty/context.rs:792:9
  58:     0x7fef2d9a92b2 - <rustc_middle[7edb896fdebb3d91]::ty::context::TyCtxt>::create_global_ctxt::<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>::{closure#2}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_middle/src/ty/context.rs:983:13
  59:     0x7fef2d9a92b2 - rustc_interface[999afb3dfa129576]::passes::create_and_enter_global_ctxt::<core[7c385f14d166af65]::option::Option<rustc_interface[999afb3dfa129576]::queries::Linker>, rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}::{closure#1}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/passes.rs:997:5
  60:     0x7fef2d9c3f58 - rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_driver_impl/src/lib.rs:292:22
  61:     0x7fef2d9c3f58 - rustc_interface[999afb3dfa129576]::interface::run_compiler::<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/interface.rs:488:80
  62:     0x7fef2d9c3f58 - <core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}::{closure#0}> as core[7c385f14d166af65]::ops::function::FnOnce<()>>::call_once
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/panic/unwind_safe.rs:275:9
  63:     0x7fef2d9c3f58 - std[9326092b00475bf2]::panicking::catch_unwind::do_call::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}::{closure#0}>, ()>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:576:43
  64:     0x7fef2d9c3f58 - std[9326092b00475bf2]::panicking::catch_unwind::<(), core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}::{closure#0}>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:544:19
  65:     0x7fef2d9c3f58 - std[9326092b00475bf2]::panic::catch_unwind::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}::{closure#0}>, ()>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panic.rs:359:14
  66:     0x7fef2d9c3f58 - rustc_interface[999afb3dfa129576]::interface::run_compiler::<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/interface.rs:488:23
  67:     0x7fef2d9b2aab - rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals::<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/util.rs:206:17
  68:     0x7fef2d9b2aab - rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals::<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/util.rs:163:24
  69:     0x7fef2d9b2aab - <scoped_tls[afda1d13dbe35ee2]::ScopedKey<rustc_span[a1f6f2c08453fe98]::SessionGlobals>>::set::<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
                               at /rust/deps/scoped-tls-1.0.1/src/lib.rs:137:9
  70:     0x7fef2d9b2aab - rustc_span[a1f6f2c08453fe98]::create_session_globals_then::<(), rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_span/src/lib.rs:155:21
  71:     0x7fef2d9b2aab - rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals::<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/compiler/rustc_interface/src/util.rs:159:17
  72:     0x7fef2d9b2aab - std[9326092b00475bf2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/backtrace.rs:166:18
  73:     0x7fef2d9c80a7 - std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked::<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/thread/lifecycle.rs:70:13
  74:     0x7fef2d9c80a7 - <core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}> as core[7c385f14d166af65]::ops::function::FnOnce<()>>::call_once
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/panic/unwind_safe.rs:275:9
  75:     0x7fef2d9c80a7 - std[9326092b00475bf2]::panicking::catch_unwind::do_call::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>, ()>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:576:43
  76:     0x7fef2d9c80a7 - std[9326092b00475bf2]::panicking::catch_unwind::<(), core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panicking.rs:544:19
  77:     0x7fef2d9c80a7 - std[9326092b00475bf2]::panic::catch_unwind::<core[7c385f14d166af65]::panic::unwind_safe::AssertUnwindSafe<std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}::{closure#0}>, ()>
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/panic.rs:359:14
  78:     0x7fef2d9c80a7 - std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked::<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/thread/lifecycle.rs:68:26
  79:     0x7fef2d9c80a7 - <std[9326092b00475bf2]::thread::lifecycle::spawn_unchecked<rustc_interface[999afb3dfa129576]::util::run_in_thread_with_globals<rustc_interface[999afb3dfa129576]::util::run_in_thread_pool_with_globals<rustc_interface[999afb3dfa129576]::interface::run_compiler<(), rustc_driver_impl[ab0677a2e82c5f39]::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[7c385f14d166af65]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /rustc-dev/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/core/src/ops/function.rs:250:5
  80:     0x7fef30e0dc9f - <alloc[a27fca2769314a80]::boxed::Box<dyn core[7c385f14d166af65]::ops::function::FnOnce<(), Output = ()> + core[7c385f14d166af65]::marker::Send> as core[7c385f14d166af65]::ops::function::FnOnce<()>>::call_once
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/alloc/src/boxed.rs:2314:9
  81:     0x7fef30e0dc9f - <std[9326092b00475bf2]::sys::thread::unix::Thread>::new::thread_start
                               at /rustc/cb9d1b0640549f1b041aae430dc413ce93f8c204/library/std/src/sys/thread/unix.rs:123:17
  82:     0x7fef2ac97739 - <unknown>
  83:     0x7fef2ad1bedc - <unknown>
  84:                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 make sure that you have updated to the latest nightly

note: please attach the file at `/tmp/im/3/l/cr/rustc-ice-2026-08-01T06_19_17-3646051.txt` to your bug report

note: rustc 1.99.0-nightly (cb9d1b064 2026-08-01) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z codegen-backend=cranelift

query stack during panic:
end of query stack
terminator _0 = powif32(move _1, move _2) -> [return: bb1, unwind unreachable]
fn std::f32::<impl f32>::powi(_1: f32, _2: i32) -> f32 {
    debug self => _1;
    debug n => _2;
    let mut _0: f32;
    scope 1 (inlined core::f32::math::powi) {
        debug x => _1;
        debug n => _2;
    }

    bb0: {
        _0 = std::intrinsics::powif32(move _1, move _2) -> [return: bb1, unwind unreachable];
    }

    bb1: {
        return;
    }
}
rustc 1.99.0-nightly (cb9d1b064 2026-08-01)
binary: rustc
commit-hash: cb9d1b0640549f1b041aae430dc413ce93f8c204
commit-date: 2026-08-01
host: x86_64-unknown-linux-gnu
release: 1.99.0-nightly
LLVM version: 22.1.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions