https://github.com/rust-lang/rust-clippy/issues/3548
error: variables in the condition are not mutated in the loop body
--> src/scanner.rs:1031:15
|
1031 | while CHECK!((*parser).buffer, b' ')
| _______________^
1032 | | || ((*parser).flow_level != 0 || (*parser).simple_key_allowed == 0)
1033 | | && CHECK!((*parser).buffer, b'\t')
| |__________________________________________________^
|
= note: `-D clippy::while-immutable-condition` implied by `-D clippy::all`
= 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 { } }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
error: variables in the condition are not mutated in the loop body
--> src/macros.rs:138:9
|
138 | *$string.pointer >= b'0' && *$string.pointer <= b'9'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/scanner.rs:1319:11
|
1319 | while IS_DIGIT!((*parser).buffer) {
| --------------------------- in this macro invocation
|
= 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 { } }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
= note: this error originates in the macro `IS_DIGIT` (in Nightly builds, run with -Z macro-backtrace for more info)