unnecessary_cast
: core::ffi::c_*
cases
#13494
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
unnecessary_cast
's does not cover some cases aroundcore::ffi::c_*
types that it could.Lint Name
unnecessary_cast
Reproducer
I tried this code:
I expected to see this happen: lint triggers (e.g. "warning: casting to the same type is unnecessary (
core::ffi::c_int
->core::ffi::c_int
)").Instead, this happened: lint does not trigger.
Version
rustc 1.83.0-nightly (18b1161ec 2024-10-02)
binary: rustc
commit-hash: 18b1161ec9eeab8927f91405bca0ddf59a4a26c9
commit-date: 2024-10-02
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0
The text was updated successfully, but these errors were encountered: