[INFO] cloning repository https://github.com/Sfrfl-17304/Rust-BlockChain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sfrfl-17304/Rust-BlockChain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSfrfl-17304%2FRust-BlockChain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSfrfl-17304%2FRust-BlockChain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83b0fca6c4e0b3c1e4dd2397659edd836fccfe92 [INFO] testing Sfrfl-17304/Rust-BlockChain against try#8da20828b6ea601dfd8e2448cb50ace88876bd78 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSfrfl-17304%2FRust-BlockChain" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Sfrfl-17304/Rust-BlockChain [INFO] finished tweaking git repo https://github.com/Sfrfl-17304/Rust-BlockChain [INFO] tweaked toml for git repo https://github.com/Sfrfl-17304/Rust-BlockChain written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Sfrfl-17304/Rust-BlockChain on toolchain 8da20828b6ea601dfd8e2448cb50ace88876bd78 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Sfrfl-17304/Rust-BlockChain 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" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3367c8059de1588ce15ba8d08bc22571b81312a8dee839f8735741691066c65e [INFO] running `Command { std: "docker" "start" "-a" "3367c8059de1588ce15ba8d08bc22571b81312a8dee839f8735741691066c65e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3367c8059de1588ce15ba8d08bc22571b81312a8dee839f8735741691066c65e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3367c8059de1588ce15ba8d08bc22571b81312a8dee839f8735741691066c65e", kill_on_drop: false }` [INFO] [stdout] 3367c8059de1588ce15ba8d08bc22571b81312a8dee839f8735741691066c65e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5962b2bbed66abc0339204dfee0b3a53f224d9939a523f7fbcc80d9adbda283 [INFO] running `Command { std: "docker" "start" "-a" "a5962b2bbed66abc0339204dfee0b3a53f224d9939a523f7fbcc80d9adbda283", kill_on_drop: false }` [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling blockchain_prototype v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::{self, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:54 [INFO] [stdout] | [INFO] [stdout] 59 | let mut genesis_block = Block::new(0, timestamp, "Genesis Block".to_string(), "0".to_string()); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `String` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(index: u32, timestamp: u64, transactions: Vec, previous_hash: String) -> Self { [INFO] [stdout] | ^^^ ------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut new_block: Block = Block::new( [INFO] [stdout] | ---------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 69 | "Transaction: Alice pays Bob 10 coins".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `String` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(index: u32, timestamp: u64, transactions: Vec, previous_hash: String) -> Self { [INFO] [stdout] | ^^^ ------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `transaction` on type `Block` [INFO] [stdout] --> src/main.rs:76:43 [INFO] [stdout] | [INFO] [stdout] 76 | println!("Transaction: {}", new_block.transaction); [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 76 | println!("Transaction: {}", new_block.transactions); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `transaction` on type `Block` [INFO] [stdout] --> src/main.rs:86:43 [INFO] [stdout] | [INFO] [stdout] 86 | println!("Transaction: {}", new_block.transaction); [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 86 | println!("Transaction: {}", new_block.transactions); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `transaction` on type `&Block` [INFO] [stdout] --> src/main.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | println!("Transaction: {}", block.transaction); [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 97 | println!("Transaction: {}", block.transactions); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain_prototype` (bin "blockchain_prototype") due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a5962b2bbed66abc0339204dfee0b3a53f224d9939a523f7fbcc80d9adbda283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5962b2bbed66abc0339204dfee0b3a53f224d9939a523f7fbcc80d9adbda283", kill_on_drop: false }` [INFO] [stdout] a5962b2bbed66abc0339204dfee0b3a53f224d9939a523f7fbcc80d9adbda283