[INFO] cloning repository https://github.com/overoxidize/png-dec [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/overoxidize/png-dec" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foveroxidize%2Fpng-dec", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foveroxidize%2Fpng-dec'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 767b212d47ee888ef4786e0a9d195490efdeb113 [INFO] checking overoxidize/png-dec against master#2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foveroxidize%2Fpng-dec" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/overoxidize/png-dec on toolchain 2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/overoxidize/png-dec [INFO] finished tweaking git repo https://github.com/overoxidize/png-dec [INFO] tweaked toml for git repo https://github.com/overoxidize/png-dec written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/overoxidize/png-dec 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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 428bb97badf3e01789aa9e24b2220a2191d01b3242b305266ee73245346b2aa9 [INFO] running `Command { std: "docker" "start" "-a" "428bb97badf3e01789aa9e24b2220a2191d01b3242b305266ee73245346b2aa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "428bb97badf3e01789aa9e24b2220a2191d01b3242b305266ee73245346b2aa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "428bb97badf3e01789aa9e24b2220a2191d01b3242b305266ee73245346b2aa9", kill_on_drop: false }` [INFO] [stdout] 428bb97badf3e01789aa9e24b2220a2191d01b3242b305266ee73245346b2aa9 [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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bda931c0fdf3637c00fd0ca02c3507e847b5cbbe2fd97b7805c93ba6e5debc83 [INFO] running `Command { std: "docker" "start" "-a" "bda931c0fdf3637c00fd0ca02c3507e847b5cbbe2fd97b7805c93ba6e5debc83", kill_on_drop: false }` [INFO] [stderr] Checking png-dec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `try_from` [INFO] [stdout] --> src/chunk_type.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | impl TryFrom<[u8; 4]> for ChunkType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `try_from` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn try_from(_: [u8; 4]) -> std::result::Result>::Error> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | fn main() -> Result<()> { [INFO] [stdout] | ---- ^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `try_from` [INFO] [stdout] --> src/chunk_type.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | impl TryFrom<[u8; 4]> for ChunkType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `try_from` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn try_from(_: [u8; 4]) -> std::result::Result>::Error> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `png-dec` (bin "png-dec") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `bytes` found for struct `chunk_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- method `bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 32 | assert_eq!(expected, actual.bytes()); [INFO] [stdout] | ^^^^^ method not found in `chunk_type::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[E0599]: no function or associated item named `from_str` found for struct `chunk_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 38 | let actual = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 38 - let actual = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 38 + let actual = 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 44 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 44 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 50 | let chunk = ChunkType::from_str("ruSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 50 - let chunk = ChunkType::from_str("ruSt").unwrap(); [INFO] [stdout] 50 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 56 | let chunk = ChunkType::from_str("RUSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 56 - let chunk = ChunkType::from_str("RUSt").unwrap(); [INFO] [stdout] 56 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:62:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 62 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 62 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 62 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:68:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 68 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 68 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 68 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 74 | let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 74 - let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] 74 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 80 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 80 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 80 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:86:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 86 | let chunk = ChunkType::from_str("RuST").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 86 - let chunk = ChunkType::from_str("RuST").unwrap(); [INFO] [stdout] 86 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 92 | let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 92 - let chunk = ChunkType::from_str("RuSt").unwrap(); [INFO] [stdout] 92 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 98 | let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 98 - let chunk = ChunkType::from_str("Rust").unwrap(); [INFO] [stdout] 98 + 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_type::ChunkType` in the current scope [INFO] [stdout] --> src/chunk_type.rs:101:36 [INFO] [stdout] | [INFO] [stdout] 5 | struct ChunkType { [INFO] [stdout] | ---------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 101 | let chunk = ChunkType::from_str("Ru1t"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `chunk_type::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] 101 - let chunk = ChunkType::from_str("Ru1t"); [INFO] [stdout] 101 + let chunk = ChunkType::from("Ru1t"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `png-dec` (bin "png-dec" test) due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "bda931c0fdf3637c00fd0ca02c3507e847b5cbbe2fd97b7805c93ba6e5debc83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bda931c0fdf3637c00fd0ca02c3507e847b5cbbe2fd97b7805c93ba6e5debc83", kill_on_drop: false }` [INFO] [stdout] bda931c0fdf3637c00fd0ca02c3507e847b5cbbe2fd97b7805c93ba6e5debc83