[INFO] cloning repository https://github.com/YoavNir1999/image_to_pallete [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YoavNir1999/image_to_pallete" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoavNir1999%2Fimage_to_pallete", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoavNir1999%2Fimage_to_pallete'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] feb41ce47ca7f2251a090fc21bbed3f8cf033da4 [INFO] checking YoavNir1999/image_to_pallete against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoavNir1999%2Fimage_to_pallete" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YoavNir1999/image_to_pallete [INFO] finished tweaking git repo https://github.com/YoavNir1999/image_to_pallete [INFO] tweaked toml for git repo https://github.com/YoavNir1999/image_to_pallete written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YoavNir1999/image_to_pallete on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YoavNir1999/image_to_pallete already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jpeg-decoder v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5d7dfcd5fe46c78693ff2e7d34725533627179fb69ccb21fef1f183fd2e4c6a [INFO] running `Command { std: "docker" "start" "-a" "d5d7dfcd5fe46c78693ff2e7d34725533627179fb69ccb21fef1f183fd2e4c6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5d7dfcd5fe46c78693ff2e7d34725533627179fb69ccb21fef1f183fd2e4c6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5d7dfcd5fe46c78693ff2e7d34725533627179fb69ccb21fef1f183fd2e4c6a", kill_on_drop: false }` [INFO] [stdout] d5d7dfcd5fe46c78693ff2e7d34725533627179fb69ccb21fef1f183fd2e4c6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c32f27d7f3bf1f05b031bd1691a3218b52319360b2112fa680356ba7a81d04f2 [INFO] running `Command { std: "docker" "start" "-a" "c32f27d7f3bf1f05b031bd1691a3218b52319360b2112fa680356ba7a81d04f2", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling syn v1.0.92 [INFO] [stderr] Compiling rayon-core v1.9.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Checking png v0.17.5 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking num-iter v0.1.43 [INFO] [stderr] Checking jpeg-decoder v0.2.4 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Checking tiff v0.7.2 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking flume v0.10.12 [INFO] [stderr] Checking exr v1.4.2 [INFO] [stderr] Checking image v0.24.2 [INFO] [stderr] Checking image_to_color_scheme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/kmeans.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 132 | for pixel in pixels.map(|i| (i.2)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 132 - for pixel in pixels.map(|i| (i.2)) { [INFO] [stdout] 132 + for pixel in pixels.map(|i| i.2 ) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 37 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:49:56 [INFO] [stdout] | [INFO] [stdout] 49 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 49 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 61 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:63:58 [INFO] [stdout] | [INFO] [stdout] 63 | ...me.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - let scheme : Vec<&String> = scheme.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 63 + let scheme : Vec<&String> = scheme.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/kmeans.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 132 | for pixel in pixels.map(|i| (i.2)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 132 - for pixel in pixels.map(|i| (i.2)) { [INFO] [stdout] 132 + for pixel in pixels.map(|i| i.2 ) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 37 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:49:56 [INFO] [stdout] | [INFO] [stdout] 49 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 49 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | ...es.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - let files : Vec<&String> = files.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 61 + let files : Vec<&String> = files.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/main.rs:63:58 [INFO] [stdout] | [INFO] [stdout] 63 | ...me.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - let scheme : Vec<&String> = scheme.iter().filter(|x| (return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg")).collect(); [INFO] [stdout] 63 + let scheme : Vec<&String> = scheme.iter().filter(|x| return_file_ext(x)=="jpg" || return_file_ext(x)=="png" || return_file_ext(x)=="jpeg" ).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/main.rs:51:51 [INFO] [stdout] | [INFO] [stdout] 51 | files.par_iter().for_each(|x| scheme_to_file(x.clone().to_owned(),image_to_hex(x.clone().to_owned(),k))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/main.rs:51:85 [INFO] [stdout] | [INFO] [stdout] 51 | files.par_iter().for_each(|x| scheme_to_file(x.clone().to_owned(),image_to_hex(x.clone().to_owned(),k))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/main.rs:51:51 [INFO] [stdout] | [INFO] [stdout] 51 | files.par_iter().for_each(|x| scheme_to_file(x.clone().to_owned(),image_to_hex(x.clone().to_owned(),k))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/main.rs:51:85 [INFO] [stdout] | [INFO] [stdout] 51 | files.par_iter().for_each(|x| scheme_to_file(x.clone().to_owned(),image_to_hex(x.clone().to_owned(),k))); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.86s [INFO] running `Command { std: "docker" "inspect" "c32f27d7f3bf1f05b031bd1691a3218b52319360b2112fa680356ba7a81d04f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c32f27d7f3bf1f05b031bd1691a3218b52319360b2112fa680356ba7a81d04f2", kill_on_drop: false }` [INFO] [stdout] c32f27d7f3bf1f05b031bd1691a3218b52319360b2112fa680356ba7a81d04f2