[INFO] cloning repository https://github.com/markmurphycodes/learnrust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/markmurphycodes/learnrust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkmurphycodes%2Flearnrust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkmurphycodes%2Flearnrust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6685ea07f3ca8e6e8e0ba8a7a897d6296c651a07
[INFO] checking markmurphycodes/learnrust against e3d12f3322cb00126b2208c6b9df3ac4467951f5 for pr-159706
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkmurphycodes%2Flearnrust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/markmurphycodes/learnrust
[INFO] finished tweaking git repo https://github.com/markmurphycodes/learnrust
[INFO] tweaked toml for git repo https://github.com/markmurphycodes/learnrust written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/markmurphycodes/learnrust on toolchain e3d12f3322cb00126b2208c6b9df3ac4467951f5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e3d12f3322cb00126b2208c6b9df3ac4467951f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/markmurphycodes/learnrust 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" "+e3d12f3322cb00126b2208c6b9df3ac4467951f5" "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] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded libc v0.2.107
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436
[INFO] running `Command { std: "docker" "start" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436" "/opt/rustwide/cargo-home/bin/cargo" "+e3d12f3322cb00126b2208c6b9df3ac4467951f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436" "/opt/rustwide/cargo-home/bin/cargo" "+e3d12f3322cb00126b2208c6b9df3ac4467951f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling typenum v1.14.0
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling libc v0.2.107
[INFO] [stderr]     Checking block-padding v0.2.1
[INFO] [stderr]     Checking opaque-debug v0.3.0
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking chrono v0.4.19 (https://github.com/chronotope/chrono#f6bd567b)
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking sha3 v0.9.1
[INFO] [stderr]     Checking rockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0583]: file not found for module `structures`
[INFO] [stdout]  --> src/block.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod structures;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: to create the module `structures`, create file "src/block/structures.rs" or "src/block/structures/mod.rs"
[INFO] [stdout]   = note: if there is a `mod structures` elsewhere in the crate already, import it with `use crate::...` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0583]: file not found for module `structures`
[INFO] [stdout]  --> src/block.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod structures;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: to create the module `structures`, create file "src/block/structures.rs" or "src/block/structures/mod.rs"
[INFO] [stdout]   = note: if there is a `mod structures` elsewhere in the crate already, import it with `use crate::...` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Block` in this scope
[INFO] [stdout]  --> src/structures/blockchain.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 |     blocks: Vec<*const Block>
[INFO] [stdout]   |                        ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 1 + use crate::structures::block::Block;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_block` in module `block`
[INFO] [stdout]  --> src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 |     block::create_block(String::from("Hello"), String::from("Blockchain"));
[INFO] [stdout]   |            ^^^^^^^^^^^^ not found in `block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Block` in this scope
[INFO] [stdout]  --> src/structures/blockchain.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 |     blocks: Vec<*const Block>
[INFO] [stdout]   |                        ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 1 + use crate::structures::block::Block;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_block` in module `block`
[INFO] [stdout]  --> src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 |     block::create_block(String::from("Hello"), String::from("Blockchain"));
[INFO] [stdout]   |            ^^^^^^^^^^^^ not found in `block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::offset::Utc`
[INFO] [stdout]  --> src/structures/block.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use chrono::offset::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::offset::Utc`
[INFO] [stdout]  --> src/structures/block.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use chrono::offset::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `new_block` in this scope
[INFO] [stdout]   --> src/structures/block.rs:55:18
[INFO] [stdout]    |
[INFO] [stdout] 55 |          let b = new_block("Genesis".as_bytes(), my_hash);
[INFO] [stdout]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider using the associated function on `Self`
[INFO] [stdout]    |
[INFO] [stdout] 55 |          let b = Self::new_block("Genesis".as_bytes(), my_hash);
[INFO] [stdout]    |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `new_block` in this scope
[INFO] [stdout]   --> src/structures/block.rs:55:18
[INFO] [stdout]    |
[INFO] [stdout] 55 |          let b = new_block("Genesis".as_bytes(), my_hash);
[INFO] [stdout]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider using the associated function on `Self`
[INFO] [stdout]    |
[INFO] [stdout] 55 |          let b = Self::new_block("Genesis".as_bytes(), my_hash);
[INFO] [stdout]    |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0381]: used binding `hash_vector` isn't initialized
[INFO] [stdout]   --> src/structures/block.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hash_vector: Vec<u8>;
[INFO] [stdout]    |             --------------- binding declared here but left uninitialized
[INFO] [stdout] 18 |         hash_vector.extend(b.timestamp.to_be_bytes());
[INFO] [stdout]    |         ^^^^^^^^^^^ `hash_vector` used here but it isn't initialized
[INFO] [stdout]    |
[INFO] [stdout] help: consider assigning a value
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hash_vector: Vec<u8> = vec![];
[INFO] [stdout]    |                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0381]: used binding `hash_vector` isn't initialized
[INFO] [stdout]   --> src/structures/block.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hash_vector: Vec<u8>;
[INFO] [stdout]    |             --------------- binding declared here but left uninitialized
[INFO] [stdout] 18 |         hash_vector.extend(b.timestamp.to_be_bytes());
[INFO] [stdout]    |         ^^^^^^^^^^^ `hash_vector` used here but it isn't initialized
[INFO] [stdout]    |
[INFO] [stdout] help: consider assigning a value
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut hash_vector: Vec<u8> = vec![];
[INFO] [stdout]    |                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `b.previous_block_hash` which is behind a shared reference
[INFO] [stdout]   --> src/structures/block.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |         hash_vector.extend(b.previous_block_hash);
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ move occurs because `b.previous_block_hash` has type `Vec<u8>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 19 |         hash_vector.extend(b.previous_block_hash.clone());
[INFO] [stdout]    |                                                 ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `b.previous_block_hash` which is behind a shared reference
[INFO] [stdout]   --> src/structures/block.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |         hash_vector.extend(b.previous_block_hash);
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ move occurs because `b.previous_block_hash` has type `Vec<u8>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 19 |         hash_vector.extend(b.previous_block_hash.clone());
[INFO] [stdout]    |                                                 ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `b.all_data` which is behind a shared reference
[INFO] [stdout]   --> src/structures/block.rs:20:28
[INFO] [stdout]    |
[INFO] [stdout] 20 |         hash_vector.extend(b.all_data);
[INFO] [stdout]    |                            ^^^^^^^^^^ move occurs because `b.all_data` has type `Vec<u8>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 20 |         hash_vector.extend(b.all_data.clone());
[INFO] [stdout]    |                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `b.my_block_hash` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/structures/block.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |         b.my_block_hash.extend(result);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `b` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be a mutable reference
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn set_hash(b: &mut Block){
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `b.all_data` which is behind a shared reference
[INFO] [stdout]   --> src/structures/block.rs:20:28
[INFO] [stdout]    |
[INFO] [stdout] 20 |         hash_vector.extend(b.all_data);
[INFO] [stdout]    |                            ^^^^^^^^^^ move occurs because `b.all_data` has type `Vec<u8>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 20 |         hash_vector.extend(b.all_data.clone());
[INFO] [stdout]    |                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `b.my_block_hash` as mutable, as it is behind a `&` reference
[INFO] [stdout]   --> src/structures/block.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |         b.my_block_hash.extend(result);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `b` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be a mutable reference
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn set_hash(b: &mut Block){
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0381, E0425, E0507, E0583, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0381`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0381, E0425, E0507, E0583, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0381`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rockchain` (bin "rockchain" test) due to 8 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rockchain` (bin "rockchain") due to 8 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436", kill_on_drop: false }`
[INFO] [stdout] 1b23f8af20c494e700e21de52a6fb84e6e70e4092502abf177b859ca8ce44436
