[INFO] cloning repository https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Isan-Rivkin/image-toolbox-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsan-Rivkin%2Fimage-toolbox-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsan-Rivkin%2Fimage-toolbox-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c305a5b6a43fad8b449780df210f5e383c4d6d56
[INFO] building Isan-Rivkin/image-toolbox-rs against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsan-Rivkin%2Fimage-toolbox-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Isan-Rivkin/image-toolbox-rs on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] finished tweaking git repo https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] tweaked toml for git repo https://github.com/Isan-Rivkin/image-toolbox-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/Isan-Rivkin/image-toolbox-rs 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 45a241cfc996c32c52f705f783cf794badcb8edd3c0ed94195ad97b26164b4d6
[INFO] running `Command { std: "docker" "start" "-a" "45a241cfc996c32c52f705f783cf794badcb8edd3c0ed94195ad97b26164b4d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "45a241cfc996c32c52f705f783cf794badcb8edd3c0ed94195ad97b26164b4d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "45a241cfc996c32c52f705f783cf794badcb8edd3c0ed94195ad97b26164b4d6", kill_on_drop: false }`
[INFO] [stdout] 45a241cfc996c32c52f705f783cf794badcb8edd3c0ed94195ad97b26164b4d6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] dcbbd52a0232c7108f84c3179ba5e1cc9b43188cb4b92b6a85c9662d85ea7dda
[INFO] running `Command { std: "docker" "start" "-a" "dcbbd52a0232c7108f84c3179ba5e1cc9b43188cb4b92b6a85c9662d85ea7dda", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]    Compiling arrayvec v0.4.10
[INFO] [stderr]    Compiling nodrop v0.1.13
[INFO] [stderr]    Compiling libc v0.2.48
[INFO] [stderr]    Compiling cfg-if v0.1.6
[INFO] [stderr]    Compiling proc-macro2 v0.4.27
[INFO] [stderr]    Compiling byteorder v1.3.1
[INFO] [stderr]    Compiling scopeguard v0.3.3
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling rayon-core v1.4.1
[INFO] [stderr]    Compiling lazy_static v1.2.0
[INFO] [stderr]    Compiling memoffset v0.2.1
[INFO] [stderr]    Compiling num-iter v0.1.37
[INFO] [stderr]    Compiling rayon v1.0.3
[INFO] [stderr]    Compiling num-derive v0.2.4
[INFO] [stderr]    Compiling adler32 v1.0.3
[INFO] [stderr]    Compiling either v1.5.1
[INFO] [stderr]    Compiling crossbeam-utils v0.2.2
[INFO] [stderr]    Compiling num-rational v0.2.1
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling inflate v0.4.5
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling safe-transmute v0.10.1
[INFO] [stderr]    Compiling math v0.0.2
[INFO] [stderr]    Compiling gif v0.10.1
[INFO] [stderr]    Compiling deflate v0.7.19
[INFO] [stderr]    Compiling num_cpus v1.10.0
[INFO] [stderr]    Compiling quote v0.6.11
[INFO] [stderr]    Compiling crossbeam-epoch v0.3.1
[INFO] [stderr]    Compiling syn v0.15.26
[INFO] [stderr]    Compiling crossbeam-deque v0.2.0
[INFO] [stderr]    Compiling png v0.14.0
[INFO] [stderr]    Compiling jpeg-decoder v0.1.15
[INFO] [stderr]    Compiling tiff v0.2.2
[INFO] [stderr]    Compiling image v0.21.0
[INFO] [stderr]    Compiling image-toolbox v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ImageBuffer` and `RGB`
[INFO] [stdout]   --> src/lib.rs:33:27
[INFO] [stdout]    |
[INFO] [stdout] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage};
[INFO] [stdout]    |                           ^^^^^^^^^^^ ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `image::imageops`
[INFO] [stdout]   --> src/lib.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | use image::imageops;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `max` and `min`
[INFO] [stdout]   --> src/lib.rs:35:16
[INFO] [stdout]    |
[INFO] [stdout] 35 | use std::cmp::{min, max};
[INFO] [stdout]    |                ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::R`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[deny(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::G`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `R`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_R`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `G`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_G`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `B`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sum_distros` is assigned to, but never used
[INFO] [stdout]    --> src/lib.rs:103:17
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut sum_distros = 0.0;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_sum_distros` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_pixel`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let new_pixel = 0; 
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     let mut up_to = original_pixel as u32 +1;
[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: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |         write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:56:17
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |         write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `R` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `G` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `B` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `colorType` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:124:45
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{
[INFO] [stdout]     |                                             ^^^^^^^^^ help: convert the identifier to snake case: `color_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let L = 256.0; 
[INFO] [stdout]     |         ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `image-toolbox` (lib) due to 3 previous errors; 24 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "dcbbd52a0232c7108f84c3179ba5e1cc9b43188cb4b92b6a85c9662d85ea7dda", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dcbbd52a0232c7108f84c3179ba5e1cc9b43188cb4b92b6a85c9662d85ea7dda", kill_on_drop: false }`
[INFO] [stdout] dcbbd52a0232c7108f84c3179ba5e1cc9b43188cb4b92b6a85c9662d85ea7dda
