We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mut_range_bound
1 parent 7ab1876 commit 8300878Copy full SHA for 8300878
clippy_lints/src/loops/mod.rs
@@ -397,6 +397,10 @@ declare_clippy_lint! {
397
/// ### Why is this bad?
398
/// One might think that modifying the mutable variable changes the loop bounds
399
///
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
+ ///
404
/// ### Example
405
/// ```rust
406
/// let mut foo = 42;
0 commit comments