Skip to content

Commit 607e3e8

Browse files
committed
Auto merge of rust-lang#10114 - tgross35:option-let-else-wording, r=flip1995
option_if_let_else: update known problems wording changelog: none <!-- changelog_checked -->
2 parents d227f18 + ca5f4a1 commit 607e3e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_lints/src/option_if_let_else.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ declare_clippy_lint! {
2525
/// Using the dedicated functions of the `Option` type is clearer and
2626
/// more concise than an `if let` expression.
2727
///
28-
/// ### Known problems
29-
/// This lint uses a deliberately conservative metric for checking
30-
/// if the inside of either body contains breaks or continues which will
31-
/// cause it to not suggest a fix if either block contains a loop with
32-
/// continues or breaks contained within the loop.
28+
/// ### Notes
29+
/// This lint uses a deliberately conservative metric for checking if the
30+
/// inside of either body contains loop control expressions `break` or
31+
/// `continue` (which cannot be used within closures). If these are found,
32+
/// this lint will not be raised.
3333
///
3434
/// ### Example
3535
/// ```rust

0 commit comments

Comments
 (0)