[INFO] cloning repository https://github.com/chb0github/rusty-brown [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chb0github/rusty-brown" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchb0github%2Frusty-brown", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchb0github%2Frusty-brown'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d45205be048412291660b8b6e77d7efd289aa11 [INFO] testing chb0github/rusty-brown against master#404c8471aba60c2d837fa728e7c729a0f52d5830 for pr-87041-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchb0github%2Frusty-brown" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chb0github/rusty-brown on toolchain 404c8471aba60c2d837fa728e7c729a0f52d5830 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chb0github/rusty-brown [INFO] finished tweaking git repo https://github.com/chb0github/rusty-brown [INFO] tweaked toml for git repo https://github.com/chb0github/rusty-brown written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/chb0github/rusty-brown already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e98fe3f518f2117c658ca4abc0efb67ee8248ba9d756e113b554036e3b29c7e5 [INFO] running `Command { std: "docker" "start" "-a" "e98fe3f518f2117c658ca4abc0efb67ee8248ba9d756e113b554036e3b29c7e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e98fe3f518f2117c658ca4abc0efb67ee8248ba9d756e113b554036e3b29c7e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e98fe3f518f2117c658ca4abc0efb67ee8248ba9d756e113b554036e3b29c7e5", kill_on_drop: false }` [INFO] [stdout] e98fe3f518f2117c658ca4abc0efb67ee8248ba9d756e113b554036e3b29c7e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0a571bf74304d154f24e0911a083d4f18958e719581dda3b932d931e3d7106a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d0a571bf74304d154f24e0911a083d4f18958e719581dda3b932d931e3d7106a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling futures-io v0.3.18 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling parity-send-wrapper v0.1.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling ed25519 v1.3.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling dns-parser v0.8.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling crc32fast v1.2.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling quicksink v0.1.2 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling poly1305 v0.7.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling blake2 v0.9.2 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling salsa20 v0.8.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling which v4.2.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling if-addrs v0.6.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling prost-build v0.8.0 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling libsecp256k1 v0.5.0 [INFO] [stderr] Compiling snow v0.8.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling cuckoofilter v0.5.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling prost-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling minicbor-derive v0.6.4 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling libp2p-swarm-derive v0.24.0 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling chacha20 v0.7.3 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling chacha20poly1305 v0.8.2 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling x25519-dalek v1.2.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling if-watch v0.2.2 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling pin-project v0.4.28 [INFO] [stderr] Compiling prost v0.8.0 [INFO] [stderr] Compiling minicbor v0.8.1 [INFO] [stderr] Compiling prost-types v0.8.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Compiling futures-rustls v0.21.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-executor v0.3.18 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling futures v0.3.18 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling wasm-timer v0.2.5 [INFO] [stderr] Compiling soketto v0.4.2 [INFO] [stderr] Compiling yamux v0.9.0 [INFO] [stderr] Compiling libp2p-pnet v0.21.0 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling js-sys v0.3.55 [INFO] [stderr] Compiling libp2p-core v0.29.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.32.0 [INFO] [stderr] Compiling libp2p-noise v0.32.0 [INFO] [stderr] Compiling libp2p-kad v0.31.0 [INFO] [stderr] Compiling libp2p-floodsub v0.30.0 [INFO] [stderr] Compiling libp2p-plaintext v0.29.0 [INFO] [stderr] Compiling libp2p-relay v0.3.0 [INFO] [stderr] Compiling libp2p-identify v0.30.0 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling async-std-resolver v0.20.3 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.28 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling libp2p-swarm v0.30.0 [INFO] [stderr] Compiling libp2p-tcp v0.29.0 [INFO] [stderr] Compiling libp2p-yamux v0.33.0 [INFO] [stderr] Compiling libp2p-dns v0.29.0 [INFO] [stderr] Compiling libp2p-uds v0.29.0 [INFO] [stderr] Compiling libp2p-websocket v0.30.0 [INFO] [stderr] Compiling libp2p-deflate v0.29.0 [INFO] [stderr] Compiling libp2p-wasm-ext v0.29.0 [INFO] [stderr] Compiling libp2p-mplex v0.29.0 [INFO] [stderr] Compiling libp2p-request-response v0.12.0 [INFO] [stderr] Compiling libp2p-ping v0.30.0 [INFO] [stderr] Compiling libp2p-mdns v0.31.0 [INFO] [stderr] Compiling libp2p v0.39.1 [INFO] [stderr] Compiling pyrsia-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/block_chain.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/block_chain.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> src/block_chain.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|(nonce,hash, bin)| (nonce, hex::encode(hash))).expect("results") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_chain_valid` [INFO] [stdout] --> src/block_chain.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn is_chain_valid(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block_chain.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | / serde_json::to_string_pretty(&self.blocks).map(|pretty_json| [INFO] [stdout] 13 | | println!("{}", pretty_json) [INFO] [stdout] 14 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 15s [INFO] running `Command { std: "docker" "inspect" "d0a571bf74304d154f24e0911a083d4f18958e719581dda3b932d931e3d7106a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0a571bf74304d154f24e0911a083d4f18958e719581dda3b932d931e3d7106a", kill_on_drop: false }` [INFO] [stdout] d0a571bf74304d154f24e0911a083d4f18958e719581dda3b932d931e3d7106a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c6b2960539b25c51dc1cbb3f594b1eef298cb5e5454ab56bca547413f2719464 [INFO] running `Command { std: "docker" "start" "-a" "c6b2960539b25c51dc1cbb3f594b1eef298cb5e5454ab56bca547413f2719464", kill_on_drop: false }` [INFO] [stderr] Compiling pyrsia-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/block_chain.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/block_chain.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> src/block_chain.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|(nonce,hash, bin)| (nonce, hex::encode(hash))).expect("results") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_chain_valid` [INFO] [stdout] --> src/block_chain.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn is_chain_valid(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block_chain.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | / serde_json::to_string_pretty(&self.blocks).map(|pretty_json| [INFO] [stdout] 13 | | println!("{}", pretty_json) [INFO] [stdout] 14 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.82s [INFO] running `Command { std: "docker" "inspect" "c6b2960539b25c51dc1cbb3f594b1eef298cb5e5454ab56bca547413f2719464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6b2960539b25c51dc1cbb3f594b1eef298cb5e5454ab56bca547413f2719464", kill_on_drop: false }` [INFO] [stdout] c6b2960539b25c51dc1cbb3f594b1eef298cb5e5454ab56bca547413f2719464 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+404c8471aba60c2d837fa728e7c729a0f52d5830" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4723508451f8475df656f2d6091d6958c38bcdb5dd27c69cdbc3e6083b882de6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4723508451f8475df656f2d6091d6958c38bcdb5dd27c69cdbc3e6083b882de6", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `nonce` [INFO] [stderr] --> src/block_chain.rs:125:17 [INFO] [stderr] | [INFO] [stderr] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonce` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hash` [INFO] [stderr] --> src/block_chain.rs:125:23 [INFO] [stderr] | [INFO] [stderr] 125 | .find(|(nonce,hash,binary_hash)| binary_hash.starts_with(DIFFICULTY_PREFIX)) [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bin` [INFO] [stderr] --> src/block_chain.rs:126:28 [INFO] [stderr] | [INFO] [stderr] 126 | .map(|(nonce,hash, bin)| (nonce, hex::encode(hash))).expect("results") [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_chain_valid` [INFO] [stderr] --> src/block_chain.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 83 | fn is_chain_valid(&self, chain: &[Block]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/block_chain.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | / serde_json::to_string_pretty(&self.blocks).map(|pretty_json| [INFO] [stderr] 13 | | println!("{}", pretty_json) [INFO] [stderr] 14 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `pyrsia-blockchain` (bin "pyrsia-blockchain" test) generated 5 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/pyrsia_blockchain-b8f1cd1da6c9ca3e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4723508451f8475df656f2d6091d6958c38bcdb5dd27c69cdbc3e6083b882de6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4723508451f8475df656f2d6091d6958c38bcdb5dd27c69cdbc3e6083b882de6", kill_on_drop: false }` [INFO] [stdout] 4723508451f8475df656f2d6091d6958c38bcdb5dd27c69cdbc3e6083b882de6