[INFO] updating cached repository https://github.com/tomerhc/colorust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f91ea9698a78f01fa9e5beabbc60d8757c8d3942 [INFO] checking tomerhc/colorust against try#85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 for pr-73323 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomerhc%2Fcolorust" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tomerhc/colorust on toolchain 85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tomerhc/colorust [INFO] finished tweaking git repo https://github.com/tomerhc/colorust [INFO] tweaked toml for git repo https://github.com/tomerhc/colorust written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/tomerhc/colorust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 12b4cfe7559e2e95928044cace9bfb53784938197f3a01567ed2976ab0539832 [INFO] running `Command { std: "docker" "start" "-a" "12b4cfe7559e2e95928044cace9bfb53784938197f3a01567ed2976ab0539832", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12b4cfe7559e2e95928044cace9bfb53784938197f3a01567ed2976ab0539832", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12b4cfe7559e2e95928044cace9bfb53784938197f3a01567ed2976ab0539832", kill_on_drop: false }` [INFO] [stdout] 12b4cfe7559e2e95928044cace9bfb53784938197f3a01567ed2976ab0539832 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63ed1ff786d9219aea9e7d651ecf5020bd67012c7d7acb25b973c15e5b12539c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "63ed1ff786d9219aea9e7d651ecf5020bd67012c7d7acb25b973c15e5b12539c", kill_on_drop: false }` [INFO] [stderr] Checking image v0.23.4 [INFO] [stderr] Checking colorust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/mcq.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | for i in (0..buckets.len()){//.step_by(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::FilterType` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use image::imageops::FilterType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/mcq.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | for i in (0..buckets.len()){//.step_by(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops::FilterType` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use image::imageops::FilterType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mcq.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut sat_vec: Vec<(image::Rgb, f64)> = v.into_iter().map(|&mut a| (*a, img_ops::calc_sat(a))).collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_mode` [INFO] [stdout] --> src/img_ops.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_mode(v: &mut [image::Rgb], len_res: usize) -> Vec<(image::Rgb, i32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_closest` [INFO] [stdout] --> src/img_ops.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn find_closest(v: &[image::Rgb], pix: &image::Rgb) -> (image::Rgb, f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `combine` [INFO] [stdout] --> src/img_ops.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn combine(v: &mut [&image:: Rgb], threshold: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_distinct` [INFO] [stdout] --> src/img_ops.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn find_distinct(v: &mut [image::Rgb], avg_col: &image::Rgb, num: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_avg` [INFO] [stdout] --> src/img_ops.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn find_avg(v: &mut [&image::Rgb]) -> image::Rgb{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut_index` [INFO] [stdout] --> src/mcq.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn cut_index(v: &Vec<&image::Rgb>, channel: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mcq.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut sat_vec: Vec<(image::Rgb, f64)> = v.into_iter().map(|&mut a| (*a, img_ops::calc_sat(a))).collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_mode` [INFO] [stdout] --> src/img_ops.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn find_mode(v: &mut [image::Rgb], len_res: usize) -> Vec<(image::Rgb, i32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_closest` [INFO] [stdout] --> src/img_ops.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn find_closest(v: &[image::Rgb], pix: &image::Rgb) -> (image::Rgb, f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `combine` [INFO] [stdout] --> src/img_ops.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn combine(v: &mut [&image:: Rgb], threshold: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_distinct` [INFO] [stdout] --> src/img_ops.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn find_distinct(v: &mut [image::Rgb], avg_col: &image::Rgb, num: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_avg` [INFO] [stdout] --> src/img_ops.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn find_avg(v: &mut [&image::Rgb]) -> image::Rgb{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut_index` [INFO] [stdout] --> src/mcq.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn cut_index(v: &Vec<&image::Rgb>, channel: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.96s [INFO] running `Command { std: "docker" "inspect" "63ed1ff786d9219aea9e7d651ecf5020bd67012c7d7acb25b973c15e5b12539c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63ed1ff786d9219aea9e7d651ecf5020bd67012c7d7acb25b973c15e5b12539c", kill_on_drop: false }` [INFO] [stdout] 63ed1ff786d9219aea9e7d651ecf5020bd67012c7d7acb25b973c15e5b12539c