Test variadic fnptr uses incompatible definition and declaration #66690
Labels
A-cranelift
Things relevant to the [future] cranelift backend
A-FFI
Area: Foreign function interface (FFI)
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
rust/src/libcore/tests/ptr.rs
Lines 253 to 269 in e41ced3
This causes a crash when trying to test libcore with cg_clif, as Cranelift doesn't allow incompatible definitions of the same function. While this currently works for cg_llvm, according to rust-lang/unsafe-code-guidelines#198 it is likely to become forbidden with cg_llvm too.
The text was updated successfully, but these errors were encountered: