extern { fn f(_: *const __m128); }
emits improper_ctypes
#135993
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
L-false-positive
Lint: False positive (should not have fired).
L-improper_ctypes
Lint: improper_ctypes
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
I don’t see why passing
*const __m128
over FFI could cause ABI problems (as opposed to passing__m128
by value, which is known to miscompile). C and Rust agree on the size and alignment of__m128
, and forextern
functions, on the argument passing convention for pointers.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: