improper_ctypes
fails to trigger on invalid repr(transparent)
types
#116959
Labels
A-FFI
Area: Foreign function interface (FFI)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-repr
Area: the `#[repr(stuff)]` attribute
C-bug
Category: This is a bug.
L-improper_ctypes
Lint: improper_ctypes
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is the estranged cousin of
improper_ctypes
lint triggers on valid#[repr(transparent)]
types #115457This code is erroneously accepted (Playground):
It has an invalid repr in the C ABI, as I understand it.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: