[INFO] cloning repository https://github.com/harsh-supra/tx-queue-batch-creation
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harsh-supra/tx-queue-batch-creation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharsh-supra%2Ftx-queue-batch-creation", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharsh-supra%2Ftx-queue-batch-creation'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5b46d5730dd05771cec30451524da2279e124868
[INFO] testing harsh-supra/tx-queue-batch-creation against beta-2022-07-10 for beta-1.63-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharsh-supra%2Ftx-queue-batch-creation" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/harsh-supra/tx-queue-batch-creation on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/harsh-supra/tx-queue-batch-creation
[INFO] finished tweaking git repo https://github.com/harsh-supra/tx-queue-batch-creation
[INFO] tweaked toml for git repo https://github.com/harsh-supra/tx-queue-batch-creation written to /workspace/builds/worker-13/source/Cargo.toml
[INFO] crate git repo https://github.com/harsh-supra/tx-queue-batch-creation already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a1678b8fbbbb5f6184579742021685b8ad4bd42ad9f7d069e82ee3d37b221924
[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" "a1678b8fbbbb5f6184579742021685b8ad4bd42ad9f7d069e82ee3d37b221924", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a1678b8fbbbb5f6184579742021685b8ad4bd42ad9f7d069e82ee3d37b221924", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1678b8fbbbb5f6184579742021685b8ad4bd42ad9f7d069e82ee3d37b221924", kill_on_drop: false }`
[INFO] [stdout] a1678b8fbbbb5f6184579742021685b8ad4bd42ad9f7d069e82ee3d37b221924
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--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] d568eb4d96cc953c3a4b190085ce5c40029812f2764156d18204ded03f886408
[INFO] running `Command { std: "docker" "start" "-a" "d568eb4d96cc953c3a4b190085ce5c40029812f2764156d18204ded03f886408", kill_on_drop: false }`
[INFO] [stderr]    Compiling supra v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: Rust has no postfix increment operator
[INFO] [stdout]   --> src/transaction.rs:60:33
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let batch = Batch {
[INFO] [stdout]    |                 ----- while parsing this struct
[INFO] [stdout] ...
[INFO] [stdout] 60 |         batch_index: batch_index++,
[INFO] [stdout]    |                                 ^^ not a valid postfix operator
[INFO] [stdout]    |
[INFO] [stdout] help: use `+= 1` instead
[INFO] [stdout]    |
[INFO] [stdout] 60 |         batch_index: { let tmp = batch_index; batch_index += 1; tmp },
[INFO] [stdout]    |                      +++++++++++            ~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 60 -         batch_index: batch_index++,
[INFO] [stdout] 60 +         batch_index: batch_index += 1,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
[INFO] [stdout]  --> src/transaction.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug)]
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^ not applicable here
[INFO] [stdout] 2 | use std::hash::{Hash, Hasher};
[INFO] [stdout]   | ------------------------------ not a `struct`, `enum` or `union`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `chrono`
[INFO] [stdout]  --> src/transaction.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use chrono::{DateTime, FixedOffset, Local, Utc};
[INFO] [stdout]   |     ^^^^^^ use of undeclared crate or module `chrono`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:27:25
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Transaction {
[INFO] [stdout]    | ---------------------- similarly named struct `Transaction` defined here
[INFO] [stdout] ...
[INFO] [stdout] 27 |     batch_transactions: transaction,
[INFO] [stdout]    |                         ^^^^^^^^^^^ help: a struct with a similar name exists: `Transaction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:35:69
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Transaction {
[INFO] [stdout]    | ---------------------- similarly named struct `Transaction` defined here
[INFO] [stdout] ...
[INFO] [stdout] 35 |                         _amount: f32,_partial_signature: String) -> transaction {
[INFO] [stdout]    |                                                                     ^^^^^^^^^^^ help: a struct with a similar name exists: `Transaction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:43:5
[INFO] [stdout]    |
[INFO] [stdout] 43 |     transaction.push(transactions);
[INFO] [stdout]    |     ^^^^^^^^^^^ help: a local variable with a similar name exists: `transactions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 44 |     return transaction;
[INFO] [stdout]    |            ^^^^^^^^^^^ help: a local variable with a similar name exists: `transactions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 |     if transaction.len() == batch_capacity {
[INFO] [stdout]    |        ^^^^^^^^^^^ help: a local variable with a similar name exists: `transactions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `batch_capacity` in this scope
[INFO] [stdout]   --> src/transaction.rs:45:29
[INFO] [stdout]    |
[INFO] [stdout] 45 |     if transaction.len() == batch_capacity {
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `previousbatchhash` in this scope
[INFO] [stdout]   --> src/transaction.rs:46:22
[INFO] [stdout]    |
[INFO] [stdout] 46 |         create_batch(previousbatchhash, transaction)
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `transaction` in this scope
[INFO] [stdout]   --> src/transaction.rs:46:41
[INFO] [stdout]    |
[INFO] [stdout] 46 |         create_batch(previousbatchhash, transaction)
[INFO] [stdout]    |                                         ^^^^^^^^^^^ help: a local variable with a similar name exists: `transactions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `previous_batch_hash` in this scope
[INFO] [stdout]   --> src/transaction.rs:61:37
[INFO] [stdout]    |
[INFO] [stdout] 61 |         batch_hash: calculate_hash(&previous_batch_hash),
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `_previous_batch_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `batches` in this scope
[INFO] [stdout]   --> src/transaction.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     batches.push(batch);
[INFO] [stdout]    |     ^^^^^^^ help: a local variable with a similar name exists: `batch`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `batch_hashes` in this scope
[INFO] [stdout]   --> src/transaction.rs:65:5
[INFO] [stdout]    |
[INFO] [stdout] 65 |     batch_hashes.insert(batch_index, String::from("previous_batch_hash"));
[INFO] [stdout]    |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `batch_index` in this scope
[INFO] [stdout]   --> src/transaction.rs:65:25
[INFO] [stdout]    |
[INFO] [stdout] 65 |     batch_hashes.insert(batch_index, String::from("previous_batch_hash"));
[INFO] [stdout]    |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `batches` in this scope
[INFO] [stdout]   --> src/transaction.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 |     return batches;
[INFO] [stdout]    |            ^^^^^^^ help: a local variable with a similar name exists: `batch`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `transaction` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 |     type transaction = Vec<Transaction>; //This will be the queue where we will add all our transaction 
[INFO] [stdout]    |          ^^^^^^^^^^^ help: convert the identifier to upper camel case: `Transaction`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/transaction.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 44 |       return transaction;
[INFO] [stdout]    |       ------------------ any code following this expression is unreachable
[INFO] [stdout] 45 | /     if transaction.len() == batch_capacity {
[INFO] [stdout] 46 | |         create_batch(previousbatchhash, transaction)
[INFO] [stdout] 47 | |     }
[INFO] [stdout]    | |_____^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/transaction.rs:61:21
[INFO] [stdout]    |
[INFO] [stdout] 61 |         batch_hash: calculate_hash(&previous_batch_hash),
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     expected struct `String`, found `u64`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<T>`
[INFO] [stdout]   --> src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let mut batches = Vec::new();
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `batches` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let mut batches: Vec<T> = Vec::new();
[INFO] [stdout]    |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0412, E0425, E0432, E0774.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `supra` due to 19 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d568eb4d96cc953c3a4b190085ce5c40029812f2764156d18204ded03f886408", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d568eb4d96cc953c3a4b190085ce5c40029812f2764156d18204ded03f886408", kill_on_drop: false }`
[INFO] [stdout] d568eb4d96cc953c3a4b190085ce5c40029812f2764156d18204ded03f886408
