[INFO] cloning repository https://github.com/dwalker109/pngme [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dwalker109/pngme" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwalker109%2Fpngme", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwalker109%2Fpngme'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c4929fd5b39ce4e085e8bb4b15928647b763a69 [INFO] checking dwalker109/pngme against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdwalker109%2Fpngme" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dwalker109/pngme on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dwalker109/pngme [INFO] finished tweaking git repo https://github.com/dwalker109/pngme [INFO] tweaked toml for git repo https://github.com/dwalker109/pngme written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dwalker109/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" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c902b516356db95d90be3feb0edb02684d2996acba25ced5a2535dd8ec7260c9 [INFO] running `Command { std: "docker" "start" "-a" "c902b516356db95d90be3feb0edb02684d2996acba25ced5a2535dd8ec7260c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c902b516356db95d90be3feb0edb02684d2996acba25ced5a2535dd8ec7260c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c902b516356db95d90be3feb0edb02684d2996acba25ced5a2535dd8ec7260c9", kill_on_drop: false }` [INFO] [stdout] c902b516356db95d90be3feb0edb02684d2996acba25ced5a2535dd8ec7260c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78c01f8eb094d7fcfef604b6c96e0066e0811dbffc62794dfa7353157723196a [INFO] running `Command { std: "docker" "start" "-a" "78c01f8eb094d7fcfef604b6c96e0066e0811dbffc62794dfa7353157723196a", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Checking crc-catalog v1.1.1 [INFO] [stderr] Checking crc v2.1.0 [INFO] [stderr] Checking pngme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/png.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | fn try_from(value: &[u8]) -> Result { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pngme` (bin "pngme") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/png.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | fn try_from(value: &[u8]) -> Result { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_chunks` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- function or associated item `from_chunks` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 40 | Png::from_chunks(chunks) [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_chunks` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- function or associated item `from_chunks` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 53 | let png = Png::from_chunks(chunks); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunks` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `chunks` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 119 | let chunks = png.chunks(); [INFO] [stdout] | ^^^^^^ field, not a method [INFO] [stdout] | [INFO] [stdout] help: remove the arguments [INFO] [stdout] | [INFO] [stdout] 119 - let chunks = png.chunks(); [INFO] [stdout] 119 + let chunks = png.chunks; [INFO] [stdout] | [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 119 | let chunks = png.chunks.chunks(); [INFO] [stdout] | +++++++ [INFO] [stdout] 119 | let chunks = png.header.chunks(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunk_by_type` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `chunk_by_type` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 126 | let chunk = png.chunk_by_type("FrSt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `append_chunk` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `append_chunk` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 134 | png.append_chunk(chunk_from_strings("TeSt", "Message").unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunk_by_type` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `chunk_by_type` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 135 | let chunk = png.chunk_by_type("TeSt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `append_chunk` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `append_chunk` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 143 | png.append_chunk(chunk_from_strings("TeSt", "Message").unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_chunk` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `remove_chunk` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 144 | png.remove_chunk("TeSt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chunk_by_type` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:145:25 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `chunk_by_type` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 145 | let chunk = png.chunk_by_type("TeSt"); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `png::Png` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `png::Png` in the current scope [INFO] [stdout] --> src/png.rs:158:26 [INFO] [stdout] | [INFO] [stdout] 3 | struct Png { [INFO] [stdout] | ---------- method `as_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 158 | let actual = png.as_bytes(); [INFO] [stdout] | ^^^^^^^^ method not found in `png::Png` [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 `as_bytes`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `png::Png` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/png.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | let _png_string = format!("{}", png); [INFO] [stdout] | ^^^ `png::Png` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `png::Png` [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] Some errors have detailed explanations: E0277, E0308, 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 12 previous errors [INFO] running `Command { std: "docker" "inspect" "78c01f8eb094d7fcfef604b6c96e0066e0811dbffc62794dfa7353157723196a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78c01f8eb094d7fcfef604b6c96e0066e0811dbffc62794dfa7353157723196a", kill_on_drop: false }` [INFO] [stdout] 78c01f8eb094d7fcfef604b6c96e0066e0811dbffc62794dfa7353157723196a