[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-04-10 for beta-1.61-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-19/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-19/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harsh-supra/tx-queue-batch-creation on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-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-19/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-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59a23732ac6fffca912aabe336eef963bd1cf223dd9c56347fb843ecb6ba31ef [INFO] running `Command { std: "docker" "start" "-a" "59a23732ac6fffca912aabe336eef963bd1cf223dd9c56347fb843ecb6ba31ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59a23732ac6fffca912aabe336eef963bd1cf223dd9c56347fb843ecb6ba31ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59a23732ac6fffca912aabe336eef963bd1cf223dd9c56347fb843ecb6ba31ef", kill_on_drop: false }` [INFO] [stdout] 59a23732ac6fffca912aabe336eef963bd1cf223dd9c56347fb843ecb6ba31ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64e073c25554772f07570c8d0d8bf02c5fb6731a7f4f05b89f950c44ba048349 [INFO] running `Command { std: "docker" "start" "-a" "64e073c25554772f07570c8d0d8bf02c5fb6731a7f4f05b89f950c44ba048349", 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; //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` [INFO] [stdout] --> src/main.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let mut batches = Vec::new(); [INFO] [stdout] | ----------- ^^^^^^^^ cannot infer type for type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | consider giving `batches` the explicit type `Vec`, where the type parameter `T` is specified [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" "64e073c25554772f07570c8d0d8bf02c5fb6731a7f4f05b89f950c44ba048349", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64e073c25554772f07570c8d0d8bf02c5fb6731a7f4f05b89f950c44ba048349", kill_on_drop: false }` [INFO] [stdout] 64e073c25554772f07570c8d0d8bf02c5fb6731a7f4f05b89f950c44ba048349