Cast_ptr_alignment false negative in trait method default impl #3440
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
L-correctness
Lint: Belongs in the correctness lint group
I believe Clippy should catch both of the following casts but it currently only flags the first one.
Would have prevented this bug in Chrome OS: https://bugs.chromium.org/p/chromium/issues/detail?id=900962.
clippy 0.0.212 (f5d868c 2018-11-15)
The text was updated successfully, but these errors were encountered: