[INFO] fetching crate image-toolbox 0.1.1... [INFO] testing image-toolbox-0.1.1 against beta-2021-09-08 for beta-1.56-1 [INFO] extracting crate image-toolbox 0.1.1 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate image-toolbox 0.1.1 on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate image-toolbox 0.1.1 [INFO] finished tweaking crates.io crate image-toolbox 0.1.1 [INFO] tweaked toml for crates.io crate image-toolbox 0.1.1 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 423dcae916c9166dd3642126c48ed069ca8c1c5410d5543e3f06a054ef40888f [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" "423dcae916c9166dd3642126c48ed069ca8c1c5410d5543e3f06a054ef40888f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "423dcae916c9166dd3642126c48ed069ca8c1c5410d5543e3f06a054ef40888f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "423dcae916c9166dd3642126c48ed069ca8c1c5410d5543e3f06a054ef40888f", kill_on_drop: false }` [INFO] [stdout] 423dcae916c9166dd3642126c48ed069ca8c1c5410d5543e3f06a054ef40888f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72162f3d5783ee080fd88446c7fd5abc288fcc48be5c837461eaecc9e51513ad [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" "72162f3d5783ee080fd88446c7fd5abc288fcc48be5c837461eaecc9e51513ad", kill_on_drop: false }` [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling math v0.0.2 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling png v0.14.1 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.3 [INFO] [stderr] Compiling image-toolbox v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ImageBuffer`, `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`, `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] warning[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: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[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] warning[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] | ^ unreachable pattern [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] | ^ unreachable pattern [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] = note: `#[warn(unused_variables)]` on by default [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] [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: 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: `#[warn(unused_must_use)]` on by default [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: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] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.60s [INFO] running `Command { std: "docker" "inspect" "72162f3d5783ee080fd88446c7fd5abc288fcc48be5c837461eaecc9e51513ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72162f3d5783ee080fd88446c7fd5abc288fcc48be5c837461eaecc9e51513ad", kill_on_drop: false }` [INFO] [stdout] 72162f3d5783ee080fd88446c7fd5abc288fcc48be5c837461eaecc9e51513ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2afd4b14a96279206f0d6bbe1746074bc1784defbdc9ca334e68d0805af2a648 [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" "2afd4b14a96279206f0d6bbe1746074bc1784defbdc9ca334e68d0805af2a648", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `ImageBuffer`, `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`, `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] warning[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: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[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] warning[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] | ^ unreachable pattern [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] | ^ unreachable pattern [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] = note: `#[warn(unused_variables)]` on by default [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] [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: 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: `#[warn(unused_must_use)]` on by default [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: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] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Compiling image-toolbox v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ImageBuffer`, `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`, `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] warning[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: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[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] warning[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] | ^ unreachable pattern [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] | ^ unreachable pattern [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] = note: `#[warn(unused_variables)]` on by default [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] [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: `p2` [INFO] [stdout] --> src/lib.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | let p2 = img2.get_pixel(i, j); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [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: `#[warn(unused_must_use)]` on by default [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: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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.05s [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2afd4b14a96279206f0d6bbe1746074bc1784defbdc9ca334e68d0805af2a648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2afd4b14a96279206f0d6bbe1746074bc1784defbdc9ca334e68d0805af2a648", kill_on_drop: false }` [INFO] [stdout] 2afd4b14a96279206f0d6bbe1746074bc1784defbdc9ca334e68d0805af2a648 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 32cd1c7039891a7c22548b85d4a180a2af004430a36c53a0b48f36216d1e5cc4 [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" "32cd1c7039891a7c22548b85d4a180a2af004430a36c53a0b48f36216d1e5cc4", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ImageBuffer`, `RGB` [INFO] [stderr] --> src/lib.rs:33:27 [INFO] [stderr] | [INFO] [stderr] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `image::imageops` [INFO] [stderr] --> src/lib.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | use image::imageops; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `max`, `min` [INFO] [stderr] --> src/lib.rs:35:16 [INFO] [stderr] | [INFO] [stderr] 35 | use std::cmp::{min, max}; [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix` [INFO] [stderr] --> src/lib.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | R => self.r_dist[pix_val as usize], [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `Pix::R` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix` [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | G => self.g_dist[pix_val as usize], [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `Pix::G` [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix` [INFO] [stderr] --> src/lib.rs:83:13 [INFO] [stderr] | [INFO] [stderr] 83 | B => self.b_dist[pix_val as usize], [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `Pix::B` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 81 | R => self.r_dist[pix_val as usize], [INFO] [stderr] | - matches any value [INFO] [stderr] 82 | G => self.g_dist[pix_val as usize], [INFO] [stderr] | ^ unreachable pattern [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/lib.rs:83:13 [INFO] [stderr] | [INFO] [stderr] 81 | R => self.r_dist[pix_val as usize], [INFO] [stderr] | - matches any value [INFO] [stderr] 82 | G => self.g_dist[pix_val as usize], [INFO] [stderr] 83 | B => self.b_dist[pix_val as usize], [INFO] [stderr] | ^ unreachable pattern [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_pixel` [INFO] [stderr] --> src/lib.rs:126:9 [INFO] [stderr] | [INFO] [stderr] 126 | let new_pixel = 0; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `R` [INFO] [stderr] --> src/lib.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | R => self.r_dist[pix_val as usize], [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_R` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `G` [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | G => self.g_dist[pix_val as usize], [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_G` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `B` [INFO] [stderr] --> src/lib.rs:83:13 [INFO] [stderr] | [INFO] [stderr] 83 | B => self.b_dist[pix_val as usize], [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_B` [INFO] [stderr] [INFO] [stderr] warning: variable `sum_distros` is assigned to, but never used [INFO] [stderr] --> src/lib.rs:103:17 [INFO] [stderr] | [INFO] [stderr] 103 | let mut sum_distros = 0.0; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_sum_distros` instead [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:128:9 [INFO] [stderr] | [INFO] [stderr] 128 | let mut up_to = original_pixel as u32 +1; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `L` should have a snake case name [INFO] [stderr] --> src/lib.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | let L = 256; [INFO] [stderr] | ^ help: convert the identifier to snake case: `l` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | write!(f,"\n----------------- RED -----------------\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | write!(f,"{} => {}\n", i, self.r_dist[i]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | write!(f,"\n----------------- GREEN -----------------\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:62:17 [INFO] [stderr] | [INFO] [stderr] 62 | write!(f,"{} => {}\n", i, self.g_dist[i]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | write!(f,"\n----------------- BLUE -----------------\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/lib.rs:68:17 [INFO] [stderr] | [INFO] [stderr] 68 | write!(f,"{} => {}\n", i, self.b_dist[i]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable `R` should have a snake case name [INFO] [stderr] --> src/lib.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | R => self.r_dist[pix_val as usize], [INFO] [stderr] | ^ help: convert the identifier to snake case: `r` [INFO] [stderr] [INFO] [stderr] warning: variable `G` should have a snake case name [INFO] [stderr] --> src/lib.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | G => self.g_dist[pix_val as usize], [INFO] [stderr] | ^ help: convert the identifier to snake case: `g` [INFO] [stderr] [INFO] [stderr] warning: variable `B` should have a snake case name [INFO] [stderr] --> src/lib.rs:83:13 [INFO] [stderr] | [INFO] [stderr] 83 | B => self.b_dist[pix_val as usize], [INFO] [stderr] | ^ help: convert the identifier to snake case: `b` [INFO] [stderr] [INFO] [stderr] warning: variable `L` should have a snake case name [INFO] [stderr] --> src/lib.rs:88:13 [INFO] [stderr] | [INFO] [stderr] 88 | let L = 256; [INFO] [stderr] | ^ help: convert the identifier to snake case: `l` [INFO] [stderr] [INFO] [stderr] warning: variable `colorType` should have a snake case name [INFO] [stderr] --> src/lib.rs:124:45 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{ [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `color_type` [INFO] [stderr] [INFO] [stderr] warning: variable `L` should have a snake case name [INFO] [stderr] --> src/lib.rs:125:9 [INFO] [stderr] | [INFO] [stderr] 125 | let L = 256.0; [INFO] [stderr] | ^ help: convert the identifier to snake case: `l` [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0170`. [INFO] [stderr] warning: unused variable: `p2` [INFO] [stderr] --> src/lib.rs:218:21 [INFO] [stderr] | [INFO] [stderr] 218 | let p2 = img2.get_pixel(i, j); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stderr] [INFO] [stderr] warning: `image-toolbox` (lib) generated 27 warnings [INFO] [stderr] warning: `image-toolbox` (lib test) generated 28 warnings (27 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/image_toolbox-0153b92a6d42f5c3) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::perform_histogram_equalization ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 11.11s [INFO] [stdout] [INFO] [stderr] Doc-tests image_toolbox [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - (line 22) ... ignored [INFO] [stdout] test src/lib.rs - (line 5) ... ignored [INFO] [stdout] test src/lib.rs - load_img (line 163) ... ok [INFO] [stdout] test src/lib.rs - save_img (line 173) ... FAILED [INFO] [stdout] test src/lib.rs - transform_from_histogram (line 135) ... ok [INFO] [stdout] test src/lib.rs - (line 10) ... ok [INFO] [stdout] test src/lib.rs - normalize_brightness (line 188) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - save_img (line 173) stdout ---- [INFO] [stdout] Test executable failed (exit code 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }', src/lib.rs:10:39 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55fac2e8e46c - std::backtrace_rs::backtrace::libunwind::trace::h51faa62df48810e4 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55fac2e8e46c - std::backtrace_rs::backtrace::trace_unsynchronized::h91de4d8e16d607e4 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55fac2e8e46c - std::sys_common::backtrace::_print_fmt::h71b0935f97e4322c [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55fac2e8e46c - ::fmt::h9a78218788c14e18 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55fac2ea8fbc - core::fmt::write::h3381b3176fe2b3d3 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/core/src/fmt/mod.rs:1150:17 [INFO] [stdout] 5: 0x55fac2e8c375 - std::io::Write::write_fmt::h1d5220480c7a2437 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/io/mod.rs:1667:15 [INFO] [stdout] 6: 0x55fac2e8fb60 - std::sys_common::backtrace::_print::h4b77abc4d907ed0e [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55fac2e8fb60 - std::sys_common::backtrace::print::hb170c60b542377ad [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55fac2e8fb60 - std::panicking::default_hook::{{closure}}::h12bbda9af8901ee3 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:210:50 [INFO] [stdout] 9: 0x55fac2e8f717 - std::panicking::default_hook::h8c6c66d3f3ba6768 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:227:9 [INFO] [stdout] 10: 0x55fac2e90214 - std::panicking::rust_panic_with_hook::h36f2fa0bb09f4069 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:624:17 [INFO] [stdout] 11: 0x55fac2e8fcf0 - std::panicking::begin_panic_handler::{{closure}}::h9c42b65a42d06a7a [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:521:13 [INFO] [stdout] 12: 0x55fac2e8e934 - std::sys_common::backtrace::__rust_end_short_backtrace::hc791bddfe31e532c [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55fac2e8fc59 - rust_begin_unwind [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:517:5 [INFO] [stdout] 14: 0x55fac2e08e51 - core::panicking::panic_fmt::hf9de31d4acbce4db [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/core/src/panicking.rs:101:14 [INFO] [stdout] 15: 0x55fac2e08ee3 - core::result::unwrap_failed::ha0c84e81219e5878 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/core/src/result.rs:1617:5 [INFO] [stdout] 16: 0x55fac2e6f9a6 - core::result::Result::unwrap::hffe2fc297a646e60 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/core/src/result.rs:1299:23 [INFO] [stdout] 17: 0x55fac2e098e4 - rust_out::main::_doctest_main_src_lib_rs_173_0::hd4de6eb43c17b30d [INFO] [stdout] 18: 0x55fac2e09866 - rust_out::main::h61823b600df25383 [INFO] [stdout] 19: 0x55fac2e09783 - core::ops::function::FnOnce::call_once::h3d07824a44777914 [INFO] [stdout] 20: 0x55fac2e096b9 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd0fdc54e9188a18d [INFO] [stdout] 21: 0x55fac2e09739 - std::rt::lang_start::{{closure}}::hec4f5193e4af3c47 [INFO] [stdout] 22: 0x55fac2e9071a - core::ops::function::impls:: for &F>::call_once::hc590b210ed55e22f [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 23: 0x55fac2e9071a - std::panicking::try::do_call::h5f0600b7a33ea1af [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:403:40 [INFO] [stdout] 24: 0x55fac2e9071a - std::panicking::try::he15826df0f376a33 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:367:19 [INFO] [stdout] 25: 0x55fac2e9071a - std::panic::catch_unwind::hd8af3a578b6b4c86 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panic.rs:129:14 [INFO] [stdout] 26: 0x55fac2e9071a - std::rt::lang_start_internal::{{closure}}::h301d1329324ae1f0 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/rt.rs:45:48 [INFO] [stdout] 27: 0x55fac2e9071a - std::panicking::try::do_call::h941e8fdb0bd03655 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:403:40 [INFO] [stdout] 28: 0x55fac2e9071a - std::panicking::try::ha20a77bf65530f63 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panicking.rs:367:19 [INFO] [stdout] 29: 0x55fac2e9071a - std::panic::catch_unwind::h33afc061cc69ef90 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/panic.rs:129:14 [INFO] [stdout] 30: 0x55fac2e9071a - std::rt::lang_start_internal::hc05c244593147106 [INFO] [stdout] at /rustc/e784c962ea252f0874a4305168077e7048cb39e9/library/std/src/rt.rs:45:20 [INFO] [stdout] 31: 0x55fac2e09711 - std::rt::lang_start::he85d58294892489a [INFO] [stdout] 32: 0x55fac2e09943 - main [INFO] [stdout] 33: 0x7f69163d70b3 - __libc_start_main [INFO] [stdout] 34: 0x55fac2e095ee - _start [INFO] [stdout] 35: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - save_img (line 173) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 2 ignored; 0 measured; 0 filtered out; finished in 19.12s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "32cd1c7039891a7c22548b85d4a180a2af004430a36c53a0b48f36216d1e5cc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32cd1c7039891a7c22548b85d4a180a2af004430a36c53a0b48f36216d1e5cc4", kill_on_drop: false }` [INFO] [stdout] 32cd1c7039891a7c22548b85d4a180a2af004430a36c53a0b48f36216d1e5cc4