Verify signature of start lang item #105963
Labels
A-cranelift
Things relevant to the [future] cranelift backend
A-lang-item
Area: Language items
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In https://github.com/bjorn3/rustc_codegen_cranelift/issues/1329 it was found if the signature of the start lang item is wrong, rustc with the LLVM backend will silently compile it despite the ABI mismatch. Cg_clif crashes entirely. To avoid both issues rustc should validate the signature.
The text was updated successfully, but these errors were encountered: