Skip to content

Commit b0d008b

Browse files
committed
add known problems
1 parent c6b4b19 commit b0d008b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/assign_ops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use utils::{span_lint_and_then, span_lint, snippet_opt, SpanlessEq, get_trait_de
77
/// **Why is this bad?** Projects with many developers from languages without those operations
88
/// may find them unreadable and not worth their weight
99
///
10-
/// **Known problems:** None
10+
/// **Known problems:** Types implementing `OpAssign` don't necessarily implement `Op`
1111
///
1212
/// **Example:**
1313
/// ```
@@ -22,7 +22,7 @@ declare_restriction_lint! {
2222
///
2323
/// **Why is this bad?** These can be written as the shorter `a op= b`
2424
///
25-
/// **Known problems:** Hopefully none.
25+
/// **Known problems:** While forbidden by the spec, `OpAssign` traits may have implementations that differ from the regular `Op` impl
2626
///
2727
/// **Example:**
2828
///

0 commit comments

Comments
 (0)