Platform-specific function ABIs are not validated #81396
Labels
A-FFI
Area: Foreign function interface (FFI)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code builds (and runs) fine on stable Rust when targeting x86_64-unknown-linux-gnu:
Other nonsensical ABIs are also accepted, including
win64
,avr-interrupt
(with feature gate). I expected all of these to result in a compilation error, since they are unsupported on x86_64-unknown-linux-gnu.The text was updated successfully, but these errors were encountered: