assertions-on-constants
incorrectly fails on const blocks
#12816
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
In ffi code, sometimes std defines types that may have incompatible layout with third-party codes (windows-sys).
To be more safe, one has to check the layout of a std type and another correspond type has the same layout.
Lint Name
assertions_on_constants
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: Don't lint.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: