False positive when swapping elements of a matrix #4853
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
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Clippy(clippy 0.0.212 (3aea860 2019-09-03)) incorrectly suggests to use
std::mem::swap
when trying to swap elements of a matrix across different rows. The lint isclippy::manual_swap
.Here's a minimal example:
The text was updated successfully, but these errors were encountered: