use_self lint misidentifies Self simplification #6221
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I tried clippy with this code:
It throws me the following warning:
However, core::intrinsics cannot be replaced by Self (which is f32 here). Doing so will result in an obvious compile error.
Any idea why this is happening?
Meta
cargo clippy -V
: clippy 0.0.212 (7bade6e 2020-10-23)rustc -Vv
:The text was updated successfully, but these errors were encountered: