We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25e0a08 + 70f5bb1 commit 3f9b837Copy full SHA for 3f9b837
clippy_lints/src/assign_ops.rs
@@ -51,8 +51,10 @@ declare_clippy_lint! {
51
/// **Why is this bad?** Most likely these are bugs where one meant to write `a
52
/// op= b`.
53
///
54
-/// **Known problems:** Someone might actually mean `a op= a op b`, but that
55
-/// should rather be written as `a = (2 * a) op b` where applicable.
+/// **Known problems:** Clippy cannot know for sure if `a op= a op b` should have
+/// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore it suggests both.
56
+/// If `a op= a op b` is really the correct behaviour it should be
57
+/// written as `a = a op a op b` as it's less confusing.
58
59
/// **Example:**
60
/// ```rust
0 commit comments