[INFO] fetching crate roles_logic_sv2 2.0.0... [INFO] checking roles_logic_sv2-2.0.0 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate roles_logic_sv2 2.0.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate roles_logic_sv2 2.0.0 [INFO] finished tweaking crates.io crate roles_logic_sv2 2.0.0 [INFO] tweaked toml for crates.io crate roles_logic_sv2 2.0.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate roles_logic_sv2 2.0.0 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 114 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3bafe8cb45fd8018e33c9085ce4993353b48a597870df12760f7b3a91c1e3b2 [INFO] running `Command { std: "docker" "start" "-a" "c3bafe8cb45fd8018e33c9085ce4993353b48a597870df12760f7b3a91c1e3b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3bafe8cb45fd8018e33c9085ce4993353b48a597870df12760f7b3a91c1e3b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3bafe8cb45fd8018e33c9085ce4993353b48a597870df12760f7b3a91c1e3b2", kill_on_drop: false }` [INFO] [stdout] c3bafe8cb45fd8018e33c9085ce4993353b48a597870df12760f7b3a91c1e3b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e53cf5bd81f91ff41daf321b1bdd6be0f5fc50f43bb14c2d03c4db1533e410ce [INFO] running `Command { std: "docker" "start" "-a" "e53cf5bd81f91ff41daf321b1bdd6be0f5fc50f43bb14c2d03c4db1533e410ce", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling binary_codec_sv2 v1.2.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling bitcoin-io v0.1.3 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking const_sv2 v4.0.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking hex-conservative v0.2.1 [INFO] [stderr] Compiling bitcoin v0.32.6 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking bech32 v0.11.0 [INFO] [stderr] Checking bitcoin-units v0.1.2 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking hex-conservative v0.3.0 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking bitcoin_hashes v0.14.0 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking uint v0.10.0 [INFO] [stderr] Compiling derive_codec_sv2 v1.1.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Compiling secp256k1-sys v0.9.2 [INFO] [stderr] Checking binary_sv2 v2.0.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking framing_sv2 v4.0.0 [INFO] [stderr] Checking mining_sv2 v3.0.0 [INFO] [stderr] Checking template_distribution_sv2 v3.0.0 [INFO] [stderr] Checking common_messages_sv2 v4.0.0 [INFO] [stderr] Checking job_declaration_sv2 v3.0.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking base58ck v0.1.0 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking buffer_sv2 v2.0.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking primitive-types v0.13.1 [INFO] [stderr] Checking secp256k1 v0.29.1 [INFO] [stderr] Checking secp256k1 v0.28.2 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling quickcheck_macros v1.1.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking codec_sv2 v2.0.0 [INFO] [stderr] Checking stratum-common v2.0.0 [INFO] [stderr] Checking roles_logic_sv2 v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 240 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 240 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 360 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 360 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 412 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 412 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:1038:9 [INFO] [stdout] | [INFO] [stdout] 1038 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 1043 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 1043 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:1382:9 [INFO] [stdout] | [INFO] [stdout] 1382 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 1387 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 1387 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/channel_logic/channel_factory.rs:1394:9 [INFO] [stdout] | [INFO] [stdout] 1394 | &mut self, [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 1398 | ) -> Result, Error> { [INFO] [stdout] | ------ the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 1398 | ) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `toml` [INFO] [stdout] --> src/utils.rs:1017:13 [INFO] [stdout] | [INFO] [stdout] 1017 | toml::from_str(&test_file).expect("Could not parse toml file as `TestBlockToml`"); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `toml` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/utils.rs:1041:13 [INFO] [stdout] | [INFO] [stdout] 1041 | for p in block.path { [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/utils.rs:1041:9 [INFO] [stdout] | [INFO] [stdout] 1041 | / for p in block.path { [INFO] [stdout] 1042 | | let p_vec = decode_hex(&p).expect("Could not decode hex string to `Vec`"); [INFO] [stdout] 1043 | | let p_arr: [u8; 32] = p_vec.try_into().expect("Slice is incorrect length"); [INFO] [stdout] 1044 | | let p_u256: U256 = (p_arr).into(); [INFO] [stdout] 1045 | | path_vec.push(p_u256); [INFO] [stdout] 1046 | | } [INFO] [stdout] | |_________^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `std::prelude::v1::None` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/option.rs:595:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/utils.rs:1041:18 [INFO] [stdout] | [INFO] [stdout] 1041 | for p in block.path { [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by an implicit `Sized` bound in `std::option::Option` [INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/option.rs:591:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `roles_logic_sv2` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "e53cf5bd81f91ff41daf321b1bdd6be0f5fc50f43bb14c2d03c4db1533e410ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e53cf5bd81f91ff41daf321b1bdd6be0f5fc50f43bb14c2d03c4db1533e410ce", kill_on_drop: false }` [INFO] [stdout] e53cf5bd81f91ff41daf321b1bdd6be0f5fc50f43bb14c2d03c4db1533e410ce