[INFO] cloning repository https://github.com/genya0407/png_print [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/genya0407/png_print" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenya0407%2Fpng_print", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenya0407%2Fpng_print'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a562b235595f3f61f2ce56057035952802e3e097 [INFO] checking genya0407/png_print/a562b235595f3f61f2ce56057035952802e3e097 against master#6a9758d4f38d4763bd437c48fa7e5246cecf8d04 for pr-124355 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenya0407%2Fpng_print" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/genya0407/png_print on toolchain 6a9758d4f38d4763bd437c48fa7e5246cecf8d04 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6a9758d4f38d4763bd437c48fa7e5246cecf8d04" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/genya0407/png_print [INFO] finished tweaking git repo https://github.com/genya0407/png_print [INFO] tweaked toml for git repo https://github.com/genya0407/png_print written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/genya0407/png_print 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" "+6a9758d4f38d4763bd437c48fa7e5246cecf8d04" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded inflate v0.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+6a9758d4f38d4763bd437c48fa7e5246cecf8d04" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] acac70f9f0062aec46ecba604f41e9cb0c56b41819fbb1b06ceb9b293b74d64a [INFO] running `Command { std: "docker" "start" "-a" "acac70f9f0062aec46ecba604f41e9cb0c56b41819fbb1b06ceb9b293b74d64a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "acac70f9f0062aec46ecba604f41e9cb0c56b41819fbb1b06ceb9b293b74d64a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acac70f9f0062aec46ecba604f41e9cb0c56b41819fbb1b06ceb9b293b74d64a", kill_on_drop: false }` [INFO] [stdout] acac70f9f0062aec46ecba604f41e9cb0c56b41819fbb1b06ceb9b293b74d64a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+6a9758d4f38d4763bd437c48fa7e5246cecf8d04" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8902a7ca24d8edbb4fa0ed75d62d1ecf43266575111c3a90e7f27763118bbf5 [INFO] running `Command { std: "docker" "start" "-a" "b8902a7ca24d8edbb4fa0ed75d62d1ecf43266575111c3a90e7f27763118bbf5", kill_on_drop: false }` [INFO] [stderr] Checking adler32 v1.0.2 [INFO] [stderr] Checking ansi_term v0.10.2 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking inflate v0.3.3 [INFO] [stderr] Checking png_encoder v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_to_png(chunks: Vec) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_to_png(chunks: Vec) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_to_png(chunks: Vec) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_to_png(chunks: Vec) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:63:69 [INFO] [stdout] | [INFO] [stdout] 63 | fn parse_to_chunks(bytes: Vec) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn parse_to_chunks(bytes: Vec) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:63:69 [INFO] [stdout] | [INFO] [stdout] 63 | fn parse_to_chunks(bytes: Vec) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn parse_to_chunks(bytes: Vec) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:94:52 [INFO] [stdout] | [INFO] [stdout] 94 | fn readfile(filename: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 | fn readfile(filename: &str) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:94:52 [INFO] [stdout] | [INFO] [stdout] 94 | fn readfile(filename: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 | fn readfile(filename: &str) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/model.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/model.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut scanline = reversed_pixels[scanline_start..next_scanline_start].to_vec(); [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 does not need to be mutable [INFO] [stdout] --> src/model.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut scanline = reversed_pixels[scanline_start..next_scanline_start].to_vec(); [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: unused variable: `scanline` [INFO] [stdout] --> src/model.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | let scanline: Vec = match filter_method { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanline` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanline` [INFO] [stdout] --> src/model.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | let scanline: Vec = match filter_method { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanline` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `width` is never read [INFO] [stdout] --> src/model.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Image { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 32 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Image` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iend` and `others` are never read [INFO] [stdout] --> src/model.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Png { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | pub iend: Iend, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub others: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Png` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `width` is never used [INFO] [stdout] --> src/model.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Png { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bit_depth`, `color_type`, `compression_method`, `filter_method`, and `interlace_method` are never read [INFO] [stdout] --> src/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Ihdr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | pub bit_depth: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 129 | pub color_type: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 130 | pub compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | pub filter_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub interlace_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ihdr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `width` is never read [INFO] [stdout] --> src/model.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Image { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 32 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Image` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `compression_method`, `additional_flags`, and `check_value` are never read [INFO] [stdout] --> src/model.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct Idat { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 222 | compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 223 | additional_flags: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 224 | compressed_data: Vec, [INFO] [stdout] 225 | check_value: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunk_length` and `chunk_crc` are never read [INFO] [stdout] --> src/model.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct GeneralChunk { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 254 | pub chunk_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub chunk_crc: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralChunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iend` and `others` are never read [INFO] [stdout] --> src/model.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Png { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | pub iend: Iend, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub others: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Png` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `width` is never used [INFO] [stdout] --> src/model.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Png { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn width(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bit_depth`, `color_type`, `compression_method`, `filter_method`, and `interlace_method` are never read [INFO] [stdout] --> src/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Ihdr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | pub bit_depth: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 129 | pub color_type: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 130 | pub compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | pub filter_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub interlace_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ihdr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `compression_method`, `additional_flags`, and `check_value` are never read [INFO] [stdout] --> src/model.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct Idat { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 222 | compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 223 | additional_flags: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 224 | compressed_data: Vec, [INFO] [stdout] 225 | check_value: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunk_length` and `chunk_crc` are never read [INFO] [stdout] --> src/model.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct GeneralChunk { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 254 | pub chunk_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub chunk_crc: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralChunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "b8902a7ca24d8edbb4fa0ed75d62d1ecf43266575111c3a90e7f27763118bbf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8902a7ca24d8edbb4fa0ed75d62d1ecf43266575111c3a90e7f27763118bbf5", kill_on_drop: false }` [INFO] [stdout] b8902a7ca24d8edbb4fa0ed75d62d1ecf43266575111c3a90e7f27763118bbf5