Skip to content

Commit 8300878

Browse files
committed
Add known problems to mut_range_bound docs
1 parent 7ab1876 commit 8300878

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/loops/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ declare_clippy_lint! {
397397
/// ### Why is this bad?
398398
/// One might think that modifying the mutable variable changes the loop bounds
399399
///
400+
/// ### Known problems
401+
/// False positive when mutation is not immediately followed by a break statement
402+
/// False positive on nested expressions ([#6072](https://github.com/rust-lang/rust-clippy/issues/6072))
403+
///
400404
/// ### Example
401405
/// ```rust
402406
/// let mut foo = 42;

0 commit comments

Comments
 (0)