[INFO] cloning repository https://github.com/pepejammers42/pngme [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pepejammers42/pngme" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepejammers42%2Fpngme", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepejammers42%2Fpngme'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c6f659e5936e087c152e6664cadbbeee0c739cce [INFO] checking pepejammers42/pngme against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpepejammers42%2Fpngme" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pepejammers42/pngme [INFO] finished tweaking git repo https://github.com/pepejammers42/pngme [INFO] tweaked toml for git repo https://github.com/pepejammers42/pngme written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pepejammers42/pngme on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pepejammers42/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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 73111d1a8a31a6f23b5fc7390c8db88a1b2436b2b4219e263f18ec43e7a14da8 [INFO] running `Command { std: "docker" "start" "-a" "73111d1a8a31a6f23b5fc7390c8db88a1b2436b2b4219e263f18ec43e7a14da8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73111d1a8a31a6f23b5fc7390c8db88a1b2436b2b4219e263f18ec43e7a14da8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73111d1a8a31a6f23b5fc7390c8db88a1b2436b2b4219e263f18ec43e7a14da8", kill_on_drop: false }` [INFO] [stdout] 73111d1a8a31a6f23b5fc7390c8db88a1b2436b2b4219e263f18ec43e7a14da8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cab65f7afbb0ae038ca4793e7c83f71a866c7e99638a37bb0e10b12bfda23e46 [INFO] running `Command { std: "docker" "start" "-a" "cab65f7afbb0ae038ca4793e7c83f71a866c7e99638a37bb0e10b12bfda23e46", kill_on_drop: false }` [INFO] [stderr] Checking pngme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `ChunkType` is never constructed [INFO] [stdout] --> src/chunk.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: TryFrom<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let actual = ChunkType::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- method `bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | assert_eq!(expected, actual.bytes()); [INFO] [stdout] | ^^^^^ method not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `bytes`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: From<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let actual = ChunkType::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: TryFrom<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | let expected = ChunkType::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | let actual = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 28 - let actual = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 28 + let actual = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: From<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | let expected = ChunkType::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 34 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 34 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 34 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 40 | let chunk = ChunkType::from_str("ruSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 40 - let chunk = ChunkType::from_str("ruSt").unwrap(); [INFO] [stdout] 40 + let chunk = ChunkType::from("ruSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 46 | let chunk = ChunkType::from_str("RUSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 46 - let chunk = ChunkType::from_str("RUSt").unwrap(); [INFO] [stdout] 46 + let chunk = ChunkType::from("RUSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 52 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 52 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 52 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 58 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 58 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 58 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 64 | let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 64 - let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] 64 + let chunk = ChunkType::from("Rust").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 70 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 70 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 70 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 76 | let chunk = ChunkType::from_str("RuST").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 76 - let chunk = ChunkType::from_str("RuST").unwrap(); [INFO] [stdout] 76 + let chunk = ChunkType::from("RuST").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 82 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 82 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 82 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 88 | let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 88 - let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] 88 + let chunk = ChunkType::from("Rust").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 91 | let chunk = ChunkType::from_str("Ru1t"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 91 - let chunk = ChunkType::from_str("Ru1t"); [INFO] [stdout] 91 + let chunk = ChunkType::from("Ru1t"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `chunk::ChunkType` in the current scope [INFO] [stdout] --> src/chunk.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 97 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 97 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 97 + let chunk = ChunkType::from("RuSt").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: TryFrom<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:103:57 [INFO] [stdout] | [INFO] [stdout] 103 | let chunk_type_1: ChunkType = TryFrom::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: FromStr` is not satisfied [INFO] [stdout] --> src/chunk.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | let chunk_type_2: ChunkType = FromStr::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromStr` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `FromStr`: [INFO] [stdout] ByteString [INFO] [stdout] CString [INFO] [stdout] IpAddr [INFO] [stdout] Ipv4Addr [INFO] [stdout] Ipv6Addr [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] and 32 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `chunk::ChunkType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/chunk.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | let _chunk_string = format!("{}", chunk_type_1); [INFO] [stdout] | -- ^^^^^^^^^^^^ `chunk::ChunkType` 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::ChunkType` [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] error[E0369]: binary operation `==` cannot be applied to type `chunk::ChunkType` [INFO] [stdout] --> src/chunk.rs:106:46 [INFO] [stdout] | [INFO] [stdout] 106 | let _are_chunks_equal = chunk_type_1 == chunk_type_2; [INFO] [stdout] | ------------ ^^ ------------ chunk::ChunkType [INFO] [stdout] | | [INFO] [stdout] | chunk::ChunkType [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `chunk::ChunkType` [INFO] [stdout] --> src/chunk.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | struct ChunkType{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `chunk::ChunkType` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 3 + #[derive(PartialEq)] [INFO] [stdout] 4 | struct ChunkType{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `chunk::ChunkType: From<[{integer}; 4]>` is not satisfied [INFO] [stdout] --> src/chunk.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | let chunk_type_1: ChunkType = TryFrom::try_from([82, 117, 83, 116]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[{integer}; 4]>` is not implemented for `chunk::ChunkType` [INFO] [stdout] | [INFO] [stdout] = note: required for `[{integer}; 4]` to implement `Into` [INFO] [stdout] = note: required for `chunk::ChunkType` to implement `TryFrom<[{integer}; 4]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, 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 23 previous errors [INFO] running `Command { std: "docker" "inspect" "cab65f7afbb0ae038ca4793e7c83f71a866c7e99638a37bb0e10b12bfda23e46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cab65f7afbb0ae038ca4793e7c83f71a866c7e99638a37bb0e10b12bfda23e46", kill_on_drop: false }` [INFO] [stdout] cab65f7afbb0ae038ca4793e7c83f71a866c7e99638a37bb0e10b12bfda23e46