rust-clippy/tests/ui/infinite_loop.stderr

96 lines
2.8 KiB
Text
Raw Normal View History

error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:22:11
|
2018-12-27 15:57:55 +00:00
LL | while y < 10 {
| ^^^^^^
|
= note: this may lead to an infinite or to a never running loop
2022-09-22 16:04:22 +00:00
= note: `#[deny(clippy::while_immutable_condition)]` on by default
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:29:11
|
2018-12-27 15:57:55 +00:00
LL | while y < 10 && x < 3 {
| ^^^^^^^^^^^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:38:11
|
2018-12-27 15:57:55 +00:00
LL | while !cond {
| ^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:84:11
|
2018-12-27 15:57:55 +00:00
LL | while i < 3 {
| ^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:91:11
|
2018-12-27 15:57:55 +00:00
LL | while i < 3 && j > 0 {
| ^^^^^^^^^^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:97:11
|
2018-12-27 15:57:55 +00:00
LL | while i < 3 {
| ^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:114:11
2018-12-27 15:57:55 +00:00
|
LL | while i < 3 {
| ^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:121:11
2018-12-27 15:57:55 +00:00
|
LL | while i < 3 {
| ^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:189:15
2018-12-27 15:57:55 +00:00
|
LL | while self.count < n {
| ^^^^^^^^^^^^^^
|
= note: this may lead to an infinite or to a never running loop
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:199:11
|
LL | while y < 10 {
| ^^^^^^
|
= note: this may lead to an infinite or to a never running loop
= note: this loop contains `return`s or `break`s
= help: rewrite it as `if cond { loop { } }`
error: variables in the condition are not mutated in the loop body
--> tests/ui/infinite_loop.rs:208:11
|
LL | while y < 10 {
| ^^^^^^
|
= note: this may lead to an infinite or to a never running loop
= note: this loop contains `return`s or `break`s
= help: rewrite it as `if cond { loop { } }`
error: aborting due to 11 previous errors