[INFO] cloning repository https://github.com/Wuelle/Blockchain.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wuelle/Blockchain.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuelle%2FBlockchain.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuelle%2FBlockchain.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23e30d19a12e7ed0200273b8068bdeb0c60b041b [INFO] checking Wuelle/Blockchain.rs against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuelle%2FBlockchain.rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Wuelle/Blockchain.rs on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Wuelle/Blockchain.rs [INFO] finished tweaking git repo https://github.com/Wuelle/Blockchain.rs [INFO] tweaked toml for git repo https://github.com/Wuelle/Blockchain.rs written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Wuelle/Blockchain.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "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] 77278ad47d23c95eb2b30303eb0f1c7910dcb379d122bbd74d49a0d696289a7b [INFO] running `Command { std: "docker" "start" "-a" "77278ad47d23c95eb2b30303eb0f1c7910dcb379d122bbd74d49a0d696289a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77278ad47d23c95eb2b30303eb0f1c7910dcb379d122bbd74d49a0d696289a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77278ad47d23c95eb2b30303eb0f1c7910dcb379d122bbd74d49a0d696289a7b", kill_on_drop: false }` [INFO] [stdout] 77278ad47d23c95eb2b30303eb0f1c7910dcb379d122bbd74d49a0d696289a7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa05ebd02e3f5226266b538f19c410aae81807458b911cb8795333f661b9c3c6 [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" "aa05ebd02e3f5226266b538f19c410aae81807458b911cb8795333f661b9c3c6", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-bigint-dig v0.6.1 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking crossbeam-queue v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking crossbeam v0.8.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking pem v0.8.2 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling zeroize_derive v1.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking rsa v0.3.0 [INFO] [stderr] Checking blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::blockchain::Block` [INFO] [stdout] --> src/trader.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::blockchain::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::Block` [INFO] [stdout] --> src/trader.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::blockchain::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/trader.rs:55:34 [INFO] [stdout] | [INFO] [stdout] 55 | fn spawn_miner_thread(&self, r: Receiver<&SignedTransaction>) -> JoinHandle<()>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/trader.rs:55:34 [INFO] [stdout] | [INFO] [stdout] 55 | fn spawn_miner_thread(&self, r: Receiver<&SignedTransaction>) -> JoinHandle<()>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | transactions: Vec>, // This should be a merkle tree [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `merkle_root_hash` [INFO] [stdout] --> src/blockchain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | merkle_root_hash: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/blockchain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | nonce: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `blocks` [INFO] [stdout] --> src/blockchain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | blocks: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `receiver` [INFO] [stdout] --> src/transaction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | receiver: &'a Trader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `amount` [INFO] [stdout] --> src/transaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | amount: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fee` [INFO] [stdout] --> src/transaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fee: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/blockchain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | transactions: Vec>, // This should be a merkle tree [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `merkle_root_hash` [INFO] [stdout] --> src/blockchain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | merkle_root_hash: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/blockchain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | nonce: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `blocks` [INFO] [stdout] --> src/blockchain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | blocks: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `receiver` [INFO] [stdout] --> src/transaction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | receiver: &'a Trader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `amount` [INFO] [stdout] --> src/transaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | amount: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fee` [INFO] [stdout] --> src/transaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fee: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t1` does not live long enough [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | let trans1: Transaction = Transaction::new(&t1, &t2, 100.0); [INFO] [stdout] | ^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `t1` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t2` does not live long enough [INFO] [stdout] --> src/main.rs:18:53 [INFO] [stdout] | [INFO] [stdout] 18 | let trans1: Transaction = Transaction::new(&t1, &t2, 100.0); [INFO] [stdout] | ^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `t2` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `strans1` does not live long enough [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | s.send(&strans1).unwrap(); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `strans1` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t1` does not live long enough [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | let trans1: Transaction = Transaction::new(&t1, &t2, 100.0); [INFO] [stdout] | ^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `t1` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t2` does not live long enough [INFO] [stdout] --> src/main.rs:18:53 [INFO] [stdout] | [INFO] [stdout] 18 | let trans1: Transaction = Transaction::new(&t1, &t2, 100.0); [INFO] [stdout] | ^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `t2` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `strans1` does not live long enough [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | s.send(&strans1).unwrap(); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `strans1` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `s` is dropped and runs the `Drop` code for type `crossbeam::crossbeam_channel::Sender` [INFO] [stdout] | [INFO] [stdout] = note: values in a scope are dropped in the opposite order they are defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "aa05ebd02e3f5226266b538f19c410aae81807458b911cb8795333f661b9c3c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa05ebd02e3f5226266b538f19c410aae81807458b911cb8795333f661b9c3c6", kill_on_drop: false }` [INFO] [stdout] aa05ebd02e3f5226266b538f19c410aae81807458b911cb8795333f661b9c3c6