[INFO] cloning repository https://github.com/emielvanseveren/pngme [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emielvanseveren/pngme" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femielvanseveren%2Fpngme", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femielvanseveren%2Fpngme'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5dfeabfec44a826e216798cea943f700e6fa091f [INFO] checking emielvanseveren/pngme/5dfeabfec44a826e216798cea943f700e6fa091f against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femielvanseveren%2Fpngme" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/emielvanseveren/pngme on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/emielvanseveren/pngme [INFO] finished tweaking git repo https://github.com/emielvanseveren/pngme [INFO] tweaked toml for git repo https://github.com/emielvanseveren/pngme written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/emielvanseveren/pngme 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b85f8d1587ea6ed260e29c42df38d4095437fbf7e80ce5530b55bc7590ef0cf [INFO] running `Command { std: "docker" "start" "-a" "9b85f8d1587ea6ed260e29c42df38d4095437fbf7e80ce5530b55bc7590ef0cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b85f8d1587ea6ed260e29c42df38d4095437fbf7e80ce5530b55bc7590ef0cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b85f8d1587ea6ed260e29c42df38d4095437fbf7e80ce5530b55bc7590ef0cf", kill_on_drop: false }` [INFO] [stdout] 9b85f8d1587ea6ed260e29c42df38d4095437fbf7e80ce5530b55bc7590ef0cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ffe54e998da85a21f835a828782c6206521bf263777bf7238b25feb13192028 [INFO] running `Command { std: "docker" "start" "-a" "1ffe54e998da85a21f835a828782c6206521bf263777bf7238b25feb13192028", kill_on_drop: false }` [INFO] [stderr] Checking pngme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chunk_type::ChunkType` [INFO] [stdout] --> src/chunk.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | use crate::chunk_type::ChunkType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/chunk.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `length`, `chunk_type`, `data`, `crc`, `data_as_string`, and `as_bytes` are never used [INFO] [stdout] --> src/chunk.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 21 | impl Chunk { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 22 | pub fn length(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn chunk_type(&self) -> &ChunkType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn data(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn crc(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn data_as_string(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn as_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/chunk.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bytes`, `is_valid`, `is_critical`, `is_public`, `is_reserved_bit_valid`, and `is_safe_to_copy` are never used [INFO] [stdout] --> src/chunk_type.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 20 | impl ChunkType { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 21 | pub fn bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_critical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_public(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_reserved_bit_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn is_safe_to_copy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | fn testing_chunk() -> Chunk { [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | Chunk::try_from(chunk_data.as_ref()).unwrap() [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: required by a bound in `try_from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:687:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | Chunk::try_from(chunk_data.as_ref()).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&_: Into` is not satisfied [INFO] [stdout] --> src/chunk.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | Chunk::try_from(chunk_data.as_ref()).unwrap() [INFO] [stdout] | ^^^^^ the trait `From<&_>` is not implemented for `chunk::Chunk`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&_` to implement `Into` [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result`, but its trait bounds were not satisfied [INFO] [stdout] --> src/chunk.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ---------------- doesn't satisfy `chunk::Chunk: Sized` [INFO] [stdout] ... [INFO] [stdout] 76 | Chunk::try_from(chunk_data.as_ref()).unwrap() [INFO] [stdout] | ^^^^^^ method cannot be called on `Result` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[u8]: Sized` [INFO] [stdout] which is required by `chunk::Chunk: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | let chunk = testing_chunk(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | let chunk = Chunk::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: required by a bound in `try_from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:687:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | let chunk = Chunk::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&_: Into` is not satisfied [INFO] [stdout] --> src/chunk.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | let chunk = Chunk::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^ the trait `From<&_>` is not implemented for `chunk::Chunk`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&_` to implement `Into` [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result`, but its trait bounds were not satisfied [INFO] [stdout] --> src/chunk.rs:121:56 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ---------------- doesn't satisfy `chunk::Chunk: Sized` [INFO] [stdout] ... [INFO] [stdout] 121 | let chunk = Chunk::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[u8]: Sized` [INFO] [stdout] which is required by `chunk::Chunk: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | let chunk = Chunk::try_from(chunk_data.as_ref()); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: required by a bound in `try_from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:687:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | let chunk = Chunk::try_from(chunk_data.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&_: Into` is not satisfied [INFO] [stdout] --> src/chunk.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | let chunk = Chunk::try_from(chunk_data.as_ref()); [INFO] [stdout] | ^^^^^ the trait `From<&_>` is not implemented for `chunk::Chunk`, which is required by `chunk::Chunk: std::convert::TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&_` to implement `Into` [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_err` exists for enum `Result`, but its trait bounds were not satisfied [INFO] [stdout] --> src/chunk.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ---------------- doesn't satisfy `chunk::Chunk: Sized` [INFO] [stdout] ... [INFO] [stdout] 150 | assert!(chunk.is_err()); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[u8]: Sized` [INFO] [stdout] which is required by `chunk::Chunk: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::Chunk: std::convert::TryFrom<&_>` is not satisfied [INFO] [stdout] --> src/chunk.rs:169:44 [INFO] [stdout] | [INFO] [stdout] 169 | let chunk: Chunk = TryFrom::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^ the trait `From<&_>` is not implemented for `chunk::Chunk`, which is required by `chunk::Chunk: std::convert::TryFrom<&_>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `&_` to implement `Into` [INFO] [stdout] = note: required for `chunk::Chunk` to implement `std::convert::TryFrom<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:169:11 [INFO] [stdout] | [INFO] [stdout] 169 | let chunk: Chunk = TryFrom::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 169 | let chunk: &Chunk = TryFrom::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/chunk.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 169 | let chunk: Chunk = TryFrom::try_from(chunk_data.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `chunk::Chunk`, the trait `Sized` is not implemented for `[u8]`, which is required by `chunk::Chunk: Sized` [INFO] [stdout] note: required because it appears within the type `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: required by a bound in `try_from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:687:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pngme` (bin "pngme" test) due to 25 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1ffe54e998da85a21f835a828782c6206521bf263777bf7238b25feb13192028", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ffe54e998da85a21f835a828782c6206521bf263777bf7238b25feb13192028", kill_on_drop: false }` [INFO] [stdout] 1ffe54e998da85a21f835a828782c6206521bf263777bf7238b25feb13192028