[INFO] cloning repository https://github.com/kzhang425/pngme [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kzhang425/pngme" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 193fac022353c499d3400ffd38d965d00d3247af [INFO] checking kzhang425/pngme against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kzhang425/pngme [INFO] finished tweaking git repo https://github.com/kzhang425/pngme [INFO] tweaked toml for git repo https://github.com/kzhang425/pngme written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kzhang425/pngme on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kzhang425/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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kzhang425/pngme against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kzhang425/pngme [INFO] finished tweaking git repo https://github.com/kzhang425/pngme [INFO] tweaked toml for git repo https://github.com/kzhang425/pngme written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kzhang425/pngme on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kzhang425/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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kzhang425/pngme against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kzhang425/pngme [INFO] finished tweaking git repo https://github.com/kzhang425/pngme [INFO] tweaked toml for git repo https://github.com/kzhang425/pngme written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kzhang425/pngme on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kzhang425/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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kzhang425/pngme against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kzhang425/pngme [INFO] finished tweaking git repo https://github.com/kzhang425/pngme [INFO] tweaked toml for git repo https://github.com/kzhang425/pngme written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kzhang425/pngme on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kzhang425/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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kzhang425/pngme against try#d83b14207998f47b18a34e930157ac0d7c18b16e for pr-149137 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkzhang425%2Fpngme" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kzhang425/pngme [INFO] finished tweaking git repo https://github.com/kzhang425/pngme [INFO] tweaked toml for git repo https://github.com/kzhang425/pngme written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kzhang425/pngme on toolchain d83b14207998f47b18a34e930157ac0d7c18b16e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kzhang425/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" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e06da87801b69a0dad73cdf12b11c86709146e3fa8f00276d5424815fc1c36d0 [INFO] running `Command { std: "docker" "start" "-a" "e06da87801b69a0dad73cdf12b11c86709146e3fa8f00276d5424815fc1c36d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e06da87801b69a0dad73cdf12b11c86709146e3fa8f00276d5424815fc1c36d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e06da87801b69a0dad73cdf12b11c86709146e3fa8f00276d5424815fc1c36d0", kill_on_drop: false }` [INFO] [stdout] e06da87801b69a0dad73cdf12b11c86709146e3fa8f00276d5424815fc1c36d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+d83b14207998f47b18a34e930157ac0d7c18b16e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd0c4a5f21f127fca3bc8c437fa2c3b4ea95697c1bdaacd7af7e89f108637d3e [INFO] running `Command { std: "docker" "start" "-a" "bd0c4a5f21f127fca3bc8c437fa2c3b4ea95697c1bdaacd7af7e89f108637d3e", kill_on_drop: false }` [INFO] [stderr] Checking pngme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `total_len` [INFO] [stdout] --> src/chunk.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let total_len = bytes.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctype` [INFO] [stdout] --> src/chunk.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let ctype = ChunkType::try_from(type_bytes)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ctype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/chunk.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let data = Vec::from(slice); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crc_slice` [INFO] [stdout] --> src/chunk.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let crc_slice = &bytes[4..(8+len as usize)]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crc_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChunkType` is never constructed [INFO] [stdout] --> src/chunk_type.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ChunkType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bit_value` is never used [INFO] [stdout] --> src/chunk_type.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn bit_value(input: u8, index: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_bytes` is never used [INFO] [stdout] --> src/chunk_type.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn valid_bytes(input: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/chunk_type.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ChunkType { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 36 | // For ease of use [INFO] [stdout] 37 | pub fn bytes(&self) -> [u8; 4] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn is_critical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn is_public(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn is_reserved_bit_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn is_safe_to_copy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chunk` is never constructed [INFO] [stdout] --> src/chunk.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_SIZE` is never used [INFO] [stdout] --> src/tables.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const TABLE_SIZE: usize = 256; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CrcType` is never used [INFO] [stdout] --> src/tables.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CrcType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LookupTable` is never used [INFO] [stdout] --> src/tables.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum LookupTable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_table` is never used [INFO] [stdout] --> src/tables.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl CrcType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 39 | pub fn make_table(&self) -> LookupTable [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_table_u8` is never used [INFO] [stdout] --> src/tables.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn make_table_u8(generator: u8) -> [u8; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_table_u16` is never used [INFO] [stdout] --> src/tables.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn make_table_u16(generator: u16) -> [u16; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_table_u32` is never used [INFO] [stdout] --> src/tables.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn make_table_u32(generator: u32) -> [u32; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 71 | let chunk = Chunk::new(chunk_type, data); [INFO] [stdout] | ^^^ function or associated item not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `length` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 79 | assert_eq!(chunk.length(), 42); [INFO] [stdout] | ^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunk_type` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `chunk_type` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 85 | assert_eq!(chunk.chunk_type().to_string(), String::from("RuSt")); [INFO] [stdout] | ^^^^^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `data_as_string` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `data_as_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 91 | let chunk_string = chunk.data_as_string().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `crc` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `crc` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 99 | assert_eq!(chunk.crc(), 2882656334); [INFO] [stdout] | ^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `data_as_string` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:120:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `data_as_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 120 | let chunk_string = chunk.data_as_string().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `length` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 123 | assert_eq!(chunk.length(), 42); [INFO] [stdout] | ^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunk_type` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `chunk_type` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | assert_eq!(chunk.chunk_type().to_string(), String::from("RuSt")); [INFO] [stdout] | ^^^^^^^^^^ method not found in `chunk::Chunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `crc` found for struct `chunk::Chunk` in the current scope [INFO] [stdout] --> src/chunk.rs:126:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ---------------- method `crc` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 126 | assert_eq!(chunk.crc(), 2882656334); [INFO] [stdout] | ^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `chunk::Chunk` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/chunk.rs:168:43 [INFO] [stdout] | [INFO] [stdout] 168 | let _chunk_string = format!("{}", chunk); [INFO] [stdout] | -- ^^^^^ `chunk::Chunk` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `chunk::Chunk` [INFO] [stdout] --> src/chunk.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_len` [INFO] [stdout] --> src/chunk.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let total_len = bytes.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctype` [INFO] [stdout] --> src/chunk.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let ctype = ChunkType::try_from(type_bytes)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ctype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/chunk.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let data = Vec::from(slice); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crc_slice` [INFO] [stdout] --> src/chunk.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let crc_slice = &bytes[4..(8+len as usize)]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crc_slice` [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 10 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bd0c4a5f21f127fca3bc8c437fa2c3b4ea95697c1bdaacd7af7e89f108637d3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd0c4a5f21f127fca3bc8c437fa2c3b4ea95697c1bdaacd7af7e89f108637d3e", kill_on_drop: false }` [INFO] [stdout] bd0c4a5f21f127fca3bc8c437fa2c3b4ea95697c1bdaacd7af7e89f108637d3e