Skip to content

Commit 2f74283

Browse files
committed
Add a comment linking to the issue
1 parent a083b84 commit 2f74283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/hir_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ fn swap_binop<'a>(
316316
BinOpKind::Le => Some((BinOpKind::Ge, rhs, lhs)),
317317
BinOpKind::Ge => Some((BinOpKind::Le, rhs, lhs)),
318318
BinOpKind::Gt => Some((BinOpKind::Lt, rhs, lhs)),
319-
BinOpKind::Mul
319+
BinOpKind::Mul // Not always commutative, e.g. with matrices. See issue #5698
320320
| BinOpKind::Shl
321321
| BinOpKind::Shr
322322
| BinOpKind::Rem

0 commit comments

Comments
 (0)