diff options
| author | bors <bors@rust-lang.org> | 2023-01-31 09:36:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-31 09:36:15 +0000 |
| commit | 607e3e893e5963c55986880db1cd1031a910d3af (patch) | |
| tree | 6f39fc8d709551c5353d06a01cded725fb8206a7 | |
| parent | d227f18c2eb7c1d21d590ea4d8708d8dc5d01308 (diff) | |
| parent | ca5f4a1deea72a7a0c0654055195c6e98af9ef41 (diff) | |
| download | rust-607e3e893e5963c55986880db1cd1031a910d3af.tar.gz rust-607e3e893e5963c55986880db1cd1031a910d3af.zip | |
Auto merge of #10114 - tgross35:option-let-else-wording, r=flip1995
option_if_let_else: update known problems wording changelog: none <!-- changelog_checked -->
| -rw-r--r-- | clippy_lints/src/option_if_let_else.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/src/option_if_let_else.rs b/clippy_lints/src/option_if_let_else.rs index 472f52380bb..c5ea09590d3 100644 --- a/clippy_lints/src/option_if_let_else.rs +++ b/clippy_lints/src/option_if_let_else.rs @@ -25,11 +25,11 @@ declare_clippy_lint! { /// Using the dedicated functions of the `Option` type is clearer and /// more concise than an `if let` expression. /// - /// ### Known problems - /// This lint uses a deliberately conservative metric for checking - /// if the inside of either body contains breaks or continues which will - /// cause it to not suggest a fix if either block contains a loop with - /// continues or breaks contained within the loop. + /// ### Notes + /// This lint uses a deliberately conservative metric for checking if the + /// inside of either body contains loop control expressions `break` or + /// `continue` (which cannot be used within closures). If these are found, + /// this lint will not be raised. /// /// ### Example /// ```rust |
