[INFO] cloning repository https://github.com/nkaush/png-decorder-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nkaush/png-decorder-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkaush%2Fpng-decorder-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkaush%2Fpng-decorder-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 220a94904e3ec659f08d03ab8a5550e76a842933 [INFO] checking nkaush/png-decorder-rs against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkaush%2Fpng-decorder-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nkaush/png-decorder-rs [INFO] finished tweaking git repo https://github.com/nkaush/png-decorder-rs [INFO] tweaked toml for git repo https://github.com/nkaush/png-decorder-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nkaush/png-decorder-rs on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nkaush/png-decorder-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c9638b583bfbc835a97769ca56955996814495edff491ef9d103e58cd88d33f [INFO] running `Command { std: "docker" "start" "-a" "9c9638b583bfbc835a97769ca56955996814495edff491ef9d103e58cd88d33f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c9638b583bfbc835a97769ca56955996814495edff491ef9d103e58cd88d33f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c9638b583bfbc835a97769ca56955996814495edff491ef9d103e58cd88d33f", kill_on_drop: false }` [INFO] [stdout] 9c9638b583bfbc835a97769ca56955996814495edff491ef9d103e58cd88d33f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8b8bbd58582895e97eb2b513587d6257ffd5965701797207c948d5607ad8c57 [INFO] running `Command { std: "docker" "start" "-a" "a8b8bbd58582895e97eb2b513587d6257ffd5965701797207c948d5607ad8c57", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Checking crc-catalog v1.1.1 [INFO] [stderr] Checking crc v2.1.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.0.5 [INFO] [stderr] Checking clap v3.0.5 [INFO] [stderr] Checking png v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `png::chunk_specs::IHDR` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use png::chunk_specs::IHDR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `png::chunk_specs::IHDR` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use png::chunk_specs::IHDR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_chunks`, `header`, and `chunk_by_type` are never used [INFO] [stdout] --> src/png/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Png { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn from_chunks(chunks: Vec) -> Png { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn header(&self) -> &[u8; 8] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn chunk_by_type(&self, chunk_type: &str) -> Option<&Chunk> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_valid`, `is_public`, `is_reserved_bit_valid`, and `is_safe_to_copy` are never used [INFO] [stdout] --> src/png/chunk_type.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ChunkType { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn is_public(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn is_reserved_bit_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_safe_to_copy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IHDR` is never constructed [INFO] [stdout] --> src/png/chunk_specs/ihdr.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IHDR { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/png/chunk_specs/ihdr.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl IHDR { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 17 | fn width(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn height(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn bit_depth(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn color_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn compression_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn filter_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn interlace_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / /// The 4-byte chunk type code to use to add messages under [INFO] [stdout] 32 | | pub chunk_type: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / /// The message to encode [INFO] [stdout] 34 | | pub message: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / /// [Optional] The filepath to write the encoded image to [INFO] [stdout] 36 | | pub destination: Option [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / /// The 4-byte chunk type code to use to search for messages to decode [INFO] [stdout] 45 | | pub chunk_type: String [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / /// The 4-byte chunk type code to use to search for messages to remove [INFO] [stdout] 54 | | pub chunk_type: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/png/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | writeln!(f, "{}", chunk); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = writeln!(f, "{}", chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `png` (bin "png") due to 5 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `header` is never used [INFO] [stdout] --> src/png/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Png { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn header(&self) -> &[u8; 8] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IHDR` is never constructed [INFO] [stdout] --> src/png/chunk_specs/ihdr.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IHDR { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/png/chunk_specs/ihdr.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl IHDR { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 17 | fn width(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn height(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn bit_depth(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn color_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn compression_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn filter_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn interlace_method(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / /// The 4-byte chunk type code to use to add messages under [INFO] [stdout] 32 | | pub chunk_type: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / /// The message to encode [INFO] [stdout] 34 | | pub message: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / /// [Optional] The filepath to write the encoded image to [INFO] [stdout] 36 | | pub destination: Option [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / /// The 4-byte chunk type code to use to search for messages to decode [INFO] [stdout] 45 | | pub chunk_type: String [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/args.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / /// The 4-byte chunk type code to use to search for messages to remove [INFO] [stdout] 54 | | pub chunk_type: String, [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/png/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | writeln!(f, "{}", chunk); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 148 | let _ = writeln!(f, "{}", chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `png` (bin "png" test) due to 5 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a8b8bbd58582895e97eb2b513587d6257ffd5965701797207c948d5607ad8c57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8b8bbd58582895e97eb2b513587d6257ffd5965701797207c948d5607ad8c57", kill_on_drop: false }` [INFO] [stdout] a8b8bbd58582895e97eb2b513587d6257ffd5965701797207c948d5607ad8c57