[INFO] cloning repository https://github.com/openkylin/rust-png [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/openkylin/rust-png" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-png", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-png'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32864d1dd1c7b7b542ab02ca73a2fac69cc290bc [INFO] testing openkylin/rust-png against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-png" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/openkylin/rust-png [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/openkylin/rust-png [INFO] tweaked toml for git repo https://github.com/openkylin/rust-png written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/openkylin/rust-png on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/openkylin/rust-png 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 17 packages to latest compatible versions [INFO] [stderr] Adding adler2 v2.0.1 [INFO] [stderr] Adding arrayref v0.3.9 [INFO] [stderr] Adding arrayvec v0.5.2 [INFO] [stderr] Adding base64 v0.13.1 [INFO] [stderr] Adding blake2b_simd v0.5.11 [INFO] [stderr] Adding byteorder v1.5.0 [INFO] [stderr] Adding constant_time_eq v0.1.5 [INFO] [stderr] Adding dirs v1.0.5 [INFO] [stderr] Updating flate2 v1.0.24 -> v1.1.2 [INFO] [stderr] Adding getrandom v0.1.16 [INFO] [stderr] Adding miniz_oxide v0.7.4 (available: v0.8.9) [INFO] [stderr] Adding miniz_oxide v0.8.9 [INFO] [stderr] Downgrading redox_syscall v0.2.10 -> v0.1.57 [INFO] [stderr] Downgrading redox_users v0.4.0 -> v0.3.5 [INFO] [stderr] Adding rust-argon2 v0.8.3 [INFO] [stderr] Downgrading term v0.7.0 -> v0.5.2 (available: v1.0.2) [INFO] [stderr] Downgrading wasi v0.11.0+wasi-snapshot-preview1 -> v0.9.0+wasi-snapshot-preview1 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v1.3.1 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd4be0189535f092e5c80ead374b3a3e00b6d1c1b32b64095ee007a6d0f5effa [INFO] running `Command { std: "docker" "start" "-a" "dd4be0189535f092e5c80ead374b3a3e00b6d1c1b32b64095ee007a6d0f5effa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd4be0189535f092e5c80ead374b3a3e00b6d1c1b32b64095ee007a6d0f5effa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd4be0189535f092e5c80ead374b3a3e00b6d1c1b32b64095ee007a6d0f5effa", kill_on_drop: false }` [INFO] [stdout] dd4be0189535f092e5c80ead374b3a3e00b6d1c1b32b64095ee007a6d0f5effa [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1219d87e842d7a04934d31a5dab2ac98afcd3d5c0aa389deeb21237fecda789f [INFO] running `Command { std: "docker" "start" "-a" "1219d87e842d7a04934d31a5dab2ac98afcd3d5c0aa389deeb21237fecda789f", kill_on_drop: false }` [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling bitflags v1.3.1 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling png v0.17.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/decoder/stream.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | const CHECKSUM_DISABLED: bool = cfg!(fuzzing); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Huffman`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2296:26 [INFO] [stdout] | [INFO] [stdout] 2296 | Compression::Huffman => flate2::Compression::none(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Rle`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2297:26 [INFO] [stdout] | [INFO] [stdout] 2297 | Compression::Rle => flate2::Compression::none(), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Uninit` is never constructed [INFO] [stdout] --> src/decoder/mod.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 335 | enum SubframeIdx { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 336 | /// The info has not yet been decoded. [INFO] [stdout] 337 | Uninit, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubframeIdx` has a derived impl for the trait `Clone`, 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: field `recover` is never read [INFO] [stdout] --> src/decoder/stream.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | CrcMismatch { [INFO] [stdout] | ----------- field in this variant [INFO] [stdout] 122 | /// bytes to skip to try to recover from this error [INFO] [stdout] 123 | recover: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FormatErrorInner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info<'_>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:454:17 [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:551:32 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:560:33 [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:938:26 [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:947:36 [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.08s [INFO] running `Command { std: "docker" "inspect" "1219d87e842d7a04934d31a5dab2ac98afcd3d5c0aa389deeb21237fecda789f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1219d87e842d7a04934d31a5dab2ac98afcd3d5c0aa389deeb21237fecda789f", kill_on_drop: false }` [INFO] [stdout] 1219d87e842d7a04934d31a5dab2ac98afcd3d5c0aa389deeb21237fecda789f [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 453f706be5f3efcece1951f3de82c34521bc2d60a5e36527a72d88fc3788d76a [INFO] running `Command { std: "docker" "start" "-a" "453f706be5f3efcece1951f3de82c34521bc2d60a5e36527a72d88fc3788d76a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.129 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/decoder/stream.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | const CHECKSUM_DISABLED: bool = cfg!(fuzzing); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Huffman`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2296:26 [INFO] [stdout] | [INFO] [stdout] 2296 | Compression::Huffman => flate2::Compression::none(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Rle`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2297:26 [INFO] [stdout] | [INFO] [stdout] 2297 | Compression::Rle => flate2::Compression::none(), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Uninit` is never constructed [INFO] [stdout] --> src/decoder/mod.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 335 | enum SubframeIdx { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 336 | /// The info has not yet been decoded. [INFO] [stdout] 337 | Uninit, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubframeIdx` has a derived impl for the trait `Clone`, 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: field `recover` is never read [INFO] [stdout] --> src/decoder/stream.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | CrcMismatch { [INFO] [stdout] | ----------- field in this variant [INFO] [stdout] 122 | /// bytes to skip to try to recover from this error [INFO] [stdout] 123 | recover: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FormatErrorInner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info<'_>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:454:17 [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:551:32 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:560:33 [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:938:26 [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:947:36 [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling png v0.17.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] --> src/decoder/stream.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | const CHECKSUM_DISABLED: bool = cfg!(fuzzing); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Decoder` [INFO] [stdout] --> src/decoder/mod.rs:944:9 [INFO] [stdout] | [INFO] [stdout] 944 | use super::Decoder; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::discriminant` [INFO] [stdout] --> src/decoder/mod.rs:946:9 [INFO] [stdout] | [INFO] [stdout] 946 | use std::mem::discriminant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Huffman`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2296:26 [INFO] [stdout] | [INFO] [stdout] 2296 | Compression::Huffman => flate2::Compression::none(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `common::Compression::Rle`: use one of the other compression levels instead, such as 'fast' [INFO] [stdout] --> src/encoder.rs:2297:26 [INFO] [stdout] | [INFO] [stdout] 2297 | Compression::Rle => flate2::Compression::none(), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Uninit` is never constructed [INFO] [stdout] --> src/decoder/mod.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 335 | enum SubframeIdx { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 336 | /// The info has not yet been decoded. [INFO] [stdout] 337 | Uninit, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubframeIdx` has a derived impl for the trait `Clone`, 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: field `recover` is never read [INFO] [stdout] --> src/decoder/stream.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 121 | CrcMismatch { [INFO] [stdout] | ----------- field in this variant [INFO] [stdout] 122 | /// bytes to skip to try to recover from this error [INFO] [stdout] 123 | recover: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FormatErrorInner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `image_gamma` is never used [INFO] [stdout] --> src/decoder/stream.rs:1292:8 [INFO] [stdout] | [INFO] [stdout] 1292 | fn image_gamma() -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `image_source_chromaticities` is never used [INFO] [stdout] --> src/decoder/stream.rs:1332:8 [INFO] [stdout] | [INFO] [stdout] 1332 | fn image_source_chromaticities() -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmalBuf` is never constructed [INFO] [stdout] --> src/decoder/mod.rs:949:12 [INFO] [stdout] | [INFO] [stdout] 949 | struct SmalBuf { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/decoder/mod.rs:955:12 [INFO] [stdout] | [INFO] [stdout] 954 | impl SmalBuf { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 955 | fn new(inner: R, cap: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 179 | pub fn read_header_info(&mut self) -> Result<&Info<'_>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 282 | fn info(&self) -> Option<&Info<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:454:17 [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 454 | pub fn info(&self) -> &Info<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 545 | pub fn next_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:551:32 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_interlaced_row(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/decoder/mod.rs:560:33 [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result, DecodingError> { [INFO] [stdout] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 560 | fn next_interlaced_row_impl(&mut self) -> Result>, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:938:26 [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/encoder.rs:947:36 [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.46s [INFO] running `Command { std: "docker" "inspect" "453f706be5f3efcece1951f3de82c34521bc2d60a5e36527a72d88fc3788d76a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "453f706be5f3efcece1951f3de82c34521bc2d60a5e36527a72d88fc3788d76a", kill_on_drop: false }` [INFO] [stdout] 453f706be5f3efcece1951f3de82c34521bc2d60a5e36527a72d88fc3788d76a [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] bbf8ef2ceabf03cff155d3bd361eb21883446bde1f7ab156acb6af502a09220a [INFO] running `Command { std: "docker" "start" "-a" "bbf8ef2ceabf03cff155d3bd361eb21883446bde1f7ab156acb6af502a09220a", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `fuzzing` [INFO] [stdout] [INFO] [stderr] --> src/decoder/stream.rs:28:38 [INFO] [stdout] running 26 tests [INFO] [stderr] | [INFO] [stdout] test encoder::tests::can_write_header_with_valid_bit_depth_color_type_combination ... ok [INFO] [stderr] 28 | const CHECKSUM_DISABLED: bool = cfg!(fuzzing); [INFO] [stdout] test encoder::tests::expect_error_on_invalid_bit_depth_color_type_combination ... ok [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated unit variant `common::Compression::Huffman`: use one of the other compression levels instead, such as 'fast' [INFO] [stderr] --> src/encoder.rs:2296:26 [INFO] [stderr] | [INFO] [stderr] 2296 | Compression::Huffman => flate2::Compression::none(), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated unit variant `common::Compression::Rle`: use one of the other compression levels instead, such as 'fast' [INFO] [stderr] --> src/encoder.rs:2297:26 [INFO] [stderr] | [INFO] [stderr] 2297 | Compression::Rle => flate2::Compression::none(), [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Uninit` is never constructed [INFO] [stderr] --> src/decoder/mod.rs:337:5 [INFO] [stderr] | [INFO] [stderr] 335 | enum SubframeIdx { [INFO] [stderr] | ----------- variant in this enum [INFO] [stderr] 336 | /// The info has not yet been decoded. [INFO] [stderr] 337 | Uninit, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SubframeIdx` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `recover` is never read [INFO] [stderr] --> src/decoder/stream.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 121 | CrcMismatch { [INFO] [stderr] | ----------- field in this variant [INFO] [stderr] 122 | /// bytes to skip to try to recover from this error [INFO] [stderr] 123 | recover: usize, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FormatErrorInner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:179:29 [INFO] [stderr] | [INFO] [stderr] 179 | pub fn read_header_info(&mut self) -> Result<&Info, DecodingError> { [INFO] [stderr] | ^^^^^^^^^ ----- [INFO] [stderr] | | || [INFO] [stderr] | | |the lifetimes get resolved as `'_` [INFO] [stderr] | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 179 | pub fn read_header_info(&mut self) -> Result<&Info<'_>, DecodingError> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:282:13 [INFO] [stderr] | [INFO] [stderr] 282 | fn info(&self) -> Option<&Info> { [INFO] [stderr] | ^^^^^ ----- [INFO] [stderr] | | || [INFO] [stderr] | | |the lifetimes get resolved as `'_` [INFO] [stderr] | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 282 | fn info(&self) -> Option<&Info<'_>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:454:17 [INFO] [stderr] | [INFO] [stderr] 454 | pub fn info(&self) -> &Info { [INFO] [stderr] | ^^^^^ ----- [INFO] [stderr] | | || [INFO] [stderr] | | |the lifetimes get resolved as `'_` [INFO] [stderr] | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 454 | pub fn info(&self) -> &Info<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:545:21 [INFO] [stderr] | [INFO] [stderr] 545 | pub fn next_row(&mut self) -> Result, DecodingError> { [INFO] [stderr] | ^^^^^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 545 | pub fn next_row(&mut self) -> Result>, DecodingError> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:551:32 [INFO] [stderr] | [INFO] [stderr] 551 | pub fn next_interlaced_row(&mut self) -> Result, DecodingError> { [INFO] [stderr] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 551 | pub fn next_interlaced_row(&mut self) -> Result>, DecodingError> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/decoder/mod.rs:560:33 [INFO] [stderr] | [INFO] [stderr] 560 | fn next_interlaced_row_impl(&mut self) -> Result, DecodingError> { [INFO] [stderr] | ^^^^^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 560 | fn next_interlaced_row_impl(&mut self) -> Result>, DecodingError> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/encoder.rs:938:26 [INFO] [stderr] | [INFO] [stderr] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stderr] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 938 | pub fn stream_writer(&mut self) -> Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/encoder.rs:947:36 [INFO] [stderr] | [INFO] [stderr] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stderr] | ^^^^^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 947 | pub fn stream_writer_with_size(&mut self, size: usize) -> Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `png` (lib) generated 13 warnings (run `cargo fix --lib -p png` to apply 8 suggestions) [INFO] [stderr] warning: unused import: `super::Decoder` [INFO] [stderr] --> src/decoder/mod.rs:944:9 [INFO] [stderr] | [INFO] [stderr] 944 | use super::Decoder; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem::discriminant` [INFO] [stderr] --> src/decoder/mod.rs:946:9 [INFO] [stderr] | [INFO] [stderr] 946 | use std::mem::discriminant; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `image_gamma` is never used [INFO] [stderr] --> src/decoder/stream.rs:1292:8 [INFO] [stderr] | [INFO] [stderr] 1292 | fn image_gamma() -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `image_source_chromaticities` is never used [INFO] [stderr] --> src/decoder/stream.rs:1332:8 [INFO] [stderr] | [INFO] [stderr] 1332 | fn image_source_chromaticities() -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SmalBuf` is never constructed [INFO] [stderr] --> src/decoder/mod.rs:949:12 [INFO] [stderr] | [INFO] [stderr] 949 | struct SmalBuf { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/decoder/mod.rs:955:12 [INFO] [stderr] | [INFO] [stderr] 954 | impl SmalBuf { [INFO] [stderr] | --------------------------- associated function in this implementation [INFO] [stderr] 955 | fn new(inner: R, cap: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `png` (lib test) generated 19 warnings (13 duplicates) (run `cargo fix --lib -p png --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/png-d3ce6fbcec11c63f) [INFO] [stdout] test encoder::tests::image_validate_missing_image ... ok [INFO] [stdout] test encoder::tests::exper_error_on_non_u32_chunk ... ok [INFO] [stdout] test encoder::tests::expect_error_on_wrong_image_len ... ok [INFO] [stdout] test encoder::tests::exper_error_on_huge_chunk ... ok [INFO] [stdout] test encoder::tests::expect_error_on_empty_image ... ok [INFO] [stdout] test encoder::tests::roundtrip_stream ... ok [INFO] [stdout] test encoder::tests::issue_307_stream_validation ... ok [INFO] [stdout] test filter::test::sum_buffer_test ... ok [INFO] [stdout] test utils::test_adam7 ... ok [INFO] [stdout] test filter::test::roundtrip ... ok [INFO] [stdout] test encoder::tests::finish_drops_inner_writer ... ok [INFO] [stdout] test utils::test_subbyte_pixels ... ok [INFO] [stdout] test encoder::tests::image_validate_missing_animated_frame ... ok [INFO] [stdout] test encoder::tests::roundtrip ... ok [INFO] [stdout] test encoder::tests::image_validate_sequence_without_animation ... ok [INFO] [stdout] test filter::test::roundtrip_ascending_previous_line ... ok [INFO] [stdout] test encoder::tests::image_validate_animation ... ok [INFO] [stdout] test encoder::tests::image_validate_animation2 ... ok [INFO] [stdout] test utils::test_expand_adam7_bits ... ok [INFO] [stdout] test utils::test_expand_pass_subbyte ... ok [INFO] [stdout] test encoder::tests::image_validate_animation_sep_def_image ... ok [INFO] [stdout] test encoder::tests::all_filters_roundtrip ... ok [INFO] [stdout] test encoder::tests::write_image_chunks_beyond_first ... ok [INFO] [stdout] test encoder::tests::some_gamma_roundtrip ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 26 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bbf8ef2ceabf03cff155d3bd361eb21883446bde1f7ab156acb6af502a09220a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbf8ef2ceabf03cff155d3bd361eb21883446bde1f7ab156acb6af502a09220a", kill_on_drop: false }` [INFO] [stdout] bbf8ef2ceabf03cff155d3bd361eb21883446bde1f7ab156acb6af502a09220a