[INFO] crate lup 0.3.0 is already in cache [INFO] extracting crate lup 0.3.0 into work/ex/clippy-test-run/sources/stable/reg/lup/0.3.0 [INFO] extracting crate lup 0.3.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/lup/0.3.0 [INFO] validating manifest of lup-0.3.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of lup-0.3.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing lup-0.3.0 [INFO] finished frobbing lup-0.3.0 [INFO] frobbed toml for lup-0.3.0 written to work/ex/clippy-test-run/sources/stable/reg/lup/0.3.0/Cargo.toml [INFO] started frobbing lup-0.3.0 [INFO] finished frobbing lup-0.3.0 [INFO] frobbed toml for lup-0.3.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/lup/0.3.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting lup-0.3.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/lup/0.3.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 4d337e6b36e5f246fda787b085d92d4505dcf2e3c5888acc5408e6ac977da921 [INFO] running `"docker" "start" "-a" "4d337e6b36e5f246fda787b085d92d4505dcf2e3c5888acc5408e6ac977da921"` [INFO] [stderr] Checking lup v0.3.0 (/opt/crater/workdir) [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/lib.rs:313:27 [INFO] [stderr] | [INFO] [stderr] 313 | assert_eq!(prod, [0.020000001, 0.15, 0.28]); [INFO] [stderr] | ^^^^^^^^^^^ help: consider: `0.020_000_001` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 64 [INFO] [stderr] --> src/lib.rs:223:5 [INFO] [stderr] | [INFO] [stderr] 223 | / fn list() { [INFO] [stderr] 224 | | type Num = f32; [INFO] [stderr] 225 | | let list = vec![vec![vec![1.0, 2.0, 3.0]]]; [INFO] [stderr] 226 | | [INFO] [stderr] ... | [INFO] [stderr] 302 | | assert_eq!(comb.evidence, Some((0, 0, 2))); [INFO] [stderr] 303 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 227 | let sum = lup!(Sum: [INFO] [stderr] | ___________________- [INFO] [stderr] 228 | | i in 0..list.len(), [INFO] [stderr] 229 | | j in 0..list[i].len(), [INFO] [stderr] 230 | | k in 0..list[i][j].len() => { [INFO] [stderr] 231 | | list[i][j][k] [INFO] [stderr] 232 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | assert_eq!(sum, 6.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | assert_eq!(sum, 6.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 235 | let prod = lup!(Prod: [INFO] [stderr] | ____________________- [INFO] [stderr] 236 | | i in 0..list.len(), [INFO] [stderr] 237 | | j in 0..list[i].len(), [INFO] [stderr] 238 | | k in 0..list[i][j].len() => { [INFO] [stderr] 239 | | list[i][j][k] [INFO] [stderr] 240 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:241:9 [INFO] [stderr] | [INFO] [stderr] 241 | assert_eq!(prod, 6.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:241:9 [INFO] [stderr] | [INFO] [stderr] 241 | assert_eq!(prod, 6.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 243 | let any = lup!(Any<_>: i in 0..list[0][0].len() => { [INFO] [stderr] | ___________________- [INFO] [stderr] 244 | | list[0][0][i] > 2.0 [INFO] [stderr] 245 | | }); [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 248 | let any = lup!(Any<_>: [INFO] [stderr] | ___________________- [INFO] [stderr] 249 | | i in 0..list.len(), [INFO] [stderr] 250 | | j in 0..list[i].len(), [INFO] [stderr] 251 | | k in 0..list[i][j].len() => { [INFO] [stderr] 252 | | list[i][j][k] > 2.0 [INFO] [stderr] 253 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 256 | let all = lup!(All<_>: [INFO] [stderr] | ___________________- [INFO] [stderr] 257 | | i in 0..list.len(), [INFO] [stderr] 258 | | j in 0..list[i].len(), [INFO] [stderr] 259 | | k in 0..list[i][j].len() => { [INFO] [stderr] 260 | | list[i][j][k] < 3.0 [INFO] [stderr] 261 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 265 | let comb = lup!(Any<_>: [INFO] [stderr] | ____________________- [INFO] [stderr] 266 | | i in 0..list.len(), [INFO] [stderr] 267 | | j in 0..list[i].len() => { [INFO] [stderr] 268 | | !lup!(All<_>: k in 0..list[i][j].len() => { [INFO] [stderr] 269 | | list[i][j][k] < 3.0 [INFO] [stderr] 270 | | }) [INFO] [stderr] 271 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 275 | let max = lup!(Max<_, Num>: [INFO] [stderr] | ___________________- [INFO] [stderr] 276 | | i in 0..list.len(), [INFO] [stderr] 277 | | j in 0..list[i].len(), [INFO] [stderr] 278 | | k in 0..list[i][j].len() => { [INFO] [stderr] 279 | | list[i][j][k] [INFO] [stderr] 280 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 281 | assert_eq!(max.value, 3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 281 | assert_eq!(max.value, 3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 284 | let min = lup!(Min<_, Num>: [INFO] [stderr] | ___________________- [INFO] [stderr] 285 | | i in 0..list.len(), [INFO] [stderr] 286 | | j in 0..list[i].len(), [INFO] [stderr] 287 | | k in 0..list[i][j].len() => { [INFO] [stderr] 288 | | list[i][j][k] [INFO] [stderr] 289 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:290:9 [INFO] [stderr] | [INFO] [stderr] 290 | assert_eq!(min.value, 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:290:9 [INFO] [stderr] | [INFO] [stderr] 290 | assert_eq!(min.value, 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 294 | let comb = lup!(Any<_>: [INFO] [stderr] | ____________________- [INFO] [stderr] 295 | | i in 0..list.len(), [INFO] [stderr] 296 | | j in 0..list[i].len() => { [INFO] [stderr] 297 | | lup!(Max<_, f32>: k in 0..list[i][j].len() => { [INFO] [stderr] 298 | | list[i][j][k] [INFO] [stderr] 299 | | }).eq(&3.0) [INFO] [stderr] 300 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 309 | let sum = lup!(Sum<[f32; 3]>: i in 0..list.len() => {list[i]}); [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 312 | let prod = lup!(Prod<[f32; 3]>: i in 0..list.len() => {list[i]}); [INFO] [stderr] | ----------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 315 | let v = lup!(Vector<[f32; 4]>: i in 0..3 => {list[0][i] + list[1][i]}); [INFO] [stderr] | -------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 321 | let list = lup!(Sift>: i in 0..5 => {i as f32 + 1.0}); [INFO] [stderr] | --------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 324 | let list = lup!(Sift<_>: [INFO] [stderr] | ____________________- [INFO] [stderr] 325 | | i in 0..3, [INFO] [stderr] 326 | | j in 0..3 => { [INFO] [stderr] 327 | | i as f32 + j as f32 [INFO] [stderr] 328 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 335 | let symmetric = lup!(All<_>: [INFO] [stderr] | _________________________- [INFO] [stderr] 336 | | i in 0..3, [INFO] [stderr] 337 | | j in 0..3 => { [INFO] [stderr] 338 | | list[i][j] == list[j][i] [INFO] [stderr] 339 | | }); [INFO] [stderr] | |______________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:338:17 [INFO] [stderr] | [INFO] [stderr] 338 | list[i][j] == list[j][i] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(list[i][j] - list[j][i]).abs() < error` [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:338:17 [INFO] [stderr] | [INFO] [stderr] 338 | list[i][j] == list[j][i] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 345 | let list = lup!(Sift<_>: i in 0..3, j in 0..3, k in 0..3 => { [INFO] [stderr] | ____________________- [INFO] [stderr] 346 | | i as f32 + j as f32 + k as f32 [INFO] [stderr] 347 | | }); [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 348 | let a = lup!(Sum<_>: i, j, k by list => {list[i][j][k]}); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/lib.rs:349:9 [INFO] [stderr] | [INFO] [stderr] 349 | assert_eq!(a, 81.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/lib.rs:349:9 [INFO] [stderr] | [INFO] [stderr] 349 | assert_eq!(a, 81.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> src/lib.rs:211:30 [INFO] [stderr] | [INFO] [stderr] 211 | while let Some($i) = iter.next() { [INFO] [stderr] | ^^^^^^^^^^^ help: try: `for i in iter { .. }` [INFO] [stderr] ... [INFO] [stderr] 355 | / lup!(For: i, j by list => { [INFO] [stderr] 356 | | println!("{}", list[i][j]); [INFO] [stderr] 357 | | }); [INFO] [stderr] | |___________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `lup`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/vector.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | let a = lup!(Vector<[f64; 4]>: i in 0..4 => {i as f64}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/vector.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | let m = lup!(Vector<[[f64; 4]; 4]>: i in 0..4_usize => { [INFO] [stderr] | _____________^ [INFO] [stderr] 12 | | lup!(Vector<[f64; 4]>: j in 0..4_usize => { [INFO] [stderr] 13 | | i as f64 - j as f64 [INFO] [stderr] 14 | | }) [INFO] [stderr] 15 | | }); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/vector.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | let m2 = lup!(Vector<[[f64; 4]; 4]>: i by m => { [INFO] [stderr] | ______________^ [INFO] [stderr] 20 | | lup!(Vector<[f64; 4]>: j by m[i] => {m[j][i]}) [INFO] [stderr] 21 | | }); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/any_max.rs:13:18 [INFO] [stderr] | [INFO] [stderr] 13 | let search = lup!(Any<_>: i by data => { [INFO] [stderr] | __________________^ [INFO] [stderr] 14 | | lup!(Max<_, _>: j by data[i] => {data[i][j] as f32}).le(&7.0) [INFO] [stderr] 15 | | }); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/mary_had_a_little_lamb.rs:12:16 [INFO] [stderr] | [INFO] [stderr] 12 | let lamb = lup!(Any<_>: i by words => {words[i] == "lamb"}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/max.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | let a = lup!(Max<_, _>: i by data => {data[i].0 as f32}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/max.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | let b = lup!(Max<_, _>: i by data => {data[i].1 as f32}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `for` loop [INFO] [stderr] --> examples/any_2d.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | let b = lup!(Any<_>: i, j by arr => {arr[i][j] > 2}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_on_iterator)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "4d337e6b36e5f246fda787b085d92d4505dcf2e3c5888acc5408e6ac977da921"` [INFO] running `"docker" "rm" "-f" "4d337e6b36e5f246fda787b085d92d4505dcf2e3c5888acc5408e6ac977da921"` [INFO] [stdout] 4d337e6b36e5f246fda787b085d92d4505dcf2e3c5888acc5408e6ac977da921