[INFO] updating cached repository FlowerBOII/Lucy [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/FlowerBOII/Lucy [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/FlowerBOII/Lucy" "work/ex/clippy-test-run/sources/stable/gh/FlowerBOII/Lucy"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/FlowerBOII/Lucy'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/FlowerBOII/Lucy" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FlowerBOII/Lucy"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FlowerBOII/Lucy'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f0ebfd1c27dbb19f72c69281ed09b55927c0a834 [INFO] sha for GitHub repo FlowerBOII/Lucy: f0ebfd1c27dbb19f72c69281ed09b55927c0a834 [INFO] validating manifest of FlowerBOII/Lucy 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 FlowerBOII/Lucy 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 FlowerBOII/Lucy [INFO] finished frobbing FlowerBOII/Lucy [INFO] frobbed toml for FlowerBOII/Lucy written to work/ex/clippy-test-run/sources/stable/gh/FlowerBOII/Lucy/Cargo.toml [INFO] started frobbing FlowerBOII/Lucy [INFO] finished frobbing FlowerBOII/Lucy [INFO] frobbed toml for FlowerBOII/Lucy written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/FlowerBOII/Lucy/Cargo.toml [INFO] crate FlowerBOII/Lucy has a lockfile. skipping [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 FlowerBOII/Lucy against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/FlowerBOII/Lucy:/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] 24685035cf3b525aa2b6a8738dab7a8dd4bc02e13f04b9edc9fbebc799a0b679 [INFO] running `"docker" "start" "-a" "24685035cf3b525aa2b6a8738dab7a8dd4bc02e13f04b9edc9fbebc799a0b679"` [INFO] [stderr] Checking rulinalg v0.3.7 [INFO] [stderr] Checking rusty-machine v0.5.4 [INFO] [stderr] Checking lucy v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: Unnecessary `>= y + 1` or `x - 1 >=` [INFO] [stderr] --> src/main.rs:57:36 [INFO] [stderr] | [INFO] [stderr] 57 | for n in (0..1000).filter(|&x| x + 1 <= 1000) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::int_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one [INFO] [stderr] help: change `>= y + 1` to `> y` as shown [INFO] [stderr] | [INFO] [stderr] 57 | for n in (0..1000).filter(|&x| x < 1000) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:58:15 [INFO] [stderr] | [INFO] [stderr] 58 | let nf = n as f64; [INFO] [stderr] | ^^^^^^^^ help: try: `f64::from(n)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/main.rs:65:50 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 66 | | essaies += 1; [INFO] [stderr] 67 | | //println!("Impaire:{}", output[0]); [INFO] [stderr] 68 | | true [INFO] [stderr] 69 | | } else { [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/main.rs:61:52 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [INFO] [stderr] | _______________________________________________________^ [INFO] [stderr] 62 | | essaies += 1; [INFO] [stderr] 63 | | //println!("Paire:{}", output[0]); [INFO] [stderr] 64 | | true [INFO] [stderr] 65 | | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | |_________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/main.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(output[0] - 1.).abs() < error` [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/main.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [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] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/main.rs:65:33 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(output[0] - -1.).abs() < error` [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/main.rs:65:33 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [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: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:80:21 [INFO] [stderr] | [INFO] [stderr] 80 | let essaies_f = essaies as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(essaies)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | let total = (essaies + echec) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(essaies + echec)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `lucy`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: Unnecessary `>= y + 1` or `x - 1 >=` [INFO] [stderr] --> src/main.rs:57:36 [INFO] [stderr] | [INFO] [stderr] 57 | for n in (0..1000).filter(|&x| x + 1 <= 1000) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::int_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one [INFO] [stderr] help: change `>= y + 1` to `> y` as shown [INFO] [stderr] | [INFO] [stderr] 57 | for n in (0..1000).filter(|&x| x < 1000) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:58:15 [INFO] [stderr] | [INFO] [stderr] 58 | let nf = n as f64; [INFO] [stderr] | ^^^^^^^^ help: try: `f64::from(n)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/main.rs:65:50 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | _____________________________________________________^ [INFO] [stderr] 66 | | essaies += 1; [INFO] [stderr] 67 | | //println!("Impaire:{}", output[0]); [INFO] [stderr] 68 | | true [INFO] [stderr] 69 | | } else { [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/main.rs:61:52 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [INFO] [stderr] | _______________________________________________________^ [INFO] [stderr] 62 | | essaies += 1; [INFO] [stderr] 63 | | //println!("Paire:{}", output[0]); [INFO] [stderr] 64 | | true [INFO] [stderr] 65 | | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | |_________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/main.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(output[0] - 1.).abs() < error` [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/main.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let res = if nf % 2. == 0. && output[0] == 1. { [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] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/main.rs:65:33 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(output[0] - -1.).abs() < error` [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/main.rs:65:33 [INFO] [stderr] | [INFO] [stderr] 65 | } else if nf % 2. != 0. && output[0] == -1. { [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: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:80:21 [INFO] [stderr] | [INFO] [stderr] 80 | let essaies_f = essaies as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(essaies)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | let total = (essaies + echec) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(essaies + echec)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `lucy`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "24685035cf3b525aa2b6a8738dab7a8dd4bc02e13f04b9edc9fbebc799a0b679"` [INFO] running `"docker" "rm" "-f" "24685035cf3b525aa2b6a8738dab7a8dd4bc02e13f04b9edc9fbebc799a0b679"` [INFO] [stdout] 24685035cf3b525aa2b6a8738dab7a8dd4bc02e13f04b9edc9fbebc799a0b679