about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2020-06-10 00:14:02 +0200
committerEduardo Broto <ebroto@tutanota.com>2020-06-10 00:14:02 +0200
commit2f74283fce768a262387fe7f51e1e4ebb9b0e300 (patch)
tree39d2084da9be56fd1f847fd62453b29ced7ba07b
parenta083b84b783a2c9e622c9d618e751da22adaff37 (diff)
downloadrust-2f74283fce768a262387fe7f51e1e4ebb9b0e300.tar.gz
rust-2f74283fce768a262387fe7f51e1e4ebb9b0e300.zip
Add a comment linking to the issue
-rw-r--r--clippy_lints/src/utils/hir_utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs
index 6846658b6e2..9c2c96203c0 100644
--- a/clippy_lints/src/utils/hir_utils.rs
+++ b/clippy_lints/src/utils/hir_utils.rs
@@ -316,7 +316,7 @@ fn swap_binop<'a>(
         BinOpKind::Le => Some((BinOpKind::Ge, rhs, lhs)),
         BinOpKind::Ge => Some((BinOpKind::Le, rhs, lhs)),
         BinOpKind::Gt => Some((BinOpKind::Lt, rhs, lhs)),
-        BinOpKind::Mul
+        BinOpKind::Mul // Not always commutative, e.g. with matrices. See issue #5698
         | BinOpKind::Shl
         | BinOpKind::Shr
         | BinOpKind::Rem