[INFO] cloning repository https://github.com/theDewill/PayGo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/theDewill/PayGo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FtheDewill%2FPayGo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FtheDewill%2FPayGo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46a361a1d0b70ca04f1496c30dab40c5df7c4732 [INFO] checking theDewill/PayGo against try#3c75d5844aa65b4aa19243ac44ceda49fe4e61ca for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FtheDewill%2FPayGo" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/theDewill/PayGo [INFO] finished tweaking git repo https://github.com/theDewill/PayGo [INFO] tweaked toml for git repo https://github.com/theDewill/PayGo written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/theDewill/PayGo on toolchain 3c75d5844aa65b4aa19243ac44ceda49fe4e61ca [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/theDewill/PayGo 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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "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 actix-web v4.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 550e0ec2cea46e2e24096b2207d8b6f8be7754461f56d11a7901280ccb41a767 [INFO] running `Command { std: "docker" "start" "-a" "550e0ec2cea46e2e24096b2207d8b6f8be7754461f56d11a7901280ccb41a767", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "550e0ec2cea46e2e24096b2207d8b6f8be7754461f56d11a7901280ccb41a767", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "550e0ec2cea46e2e24096b2207d8b6f8be7754461f56d11a7901280ccb41a767", kill_on_drop: false }` [INFO] [stdout] 550e0ec2cea46e2e24096b2207d8b6f8be7754461f56d11a7901280ccb41a767 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 538418f3899e51c5eeadf2843e65e506e29af10c13d76bbefb421b9cb576ab51 [INFO] running `Command { std: "docker" "start" "-a" "538418f3899e51c5eeadf2843e65e506e29af10c13d76bbefb421b9cb576ab51", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking miniz_oxide v0.7.3 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling zstd-sys v2.0.11+zstd.1.5.6 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking zstd v0.13.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.2 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking zerovec v0.10.2 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna v1.0.0 [INFO] [stderr] Checking url v2.5.1 [INFO] [stderr] Checking actix-web v4.7.0 [INFO] [stderr] Checking TerraPay v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `::`, found `=` [INFO] [stdout] --> src/main.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let server : = Server::new(HashMap::new()); // server init [INFO] [stdout] | - ^ expected `::` [INFO] [stdout] | | [INFO] [stdout] | while parsing the type for `server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::`, found `=` [INFO] [stdout] --> src/main.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let server : = Server::new(HashMap::new()); // server init [INFO] [stdout] | - ^ expected `::` [INFO] [stdout] | | [INFO] [stdout] | while parsing the type for `server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `secrets` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod secrets; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `secrets`, create file "src/secrets.rs" or "src/secrets/mod.rs" [INFO] [stdout] = note: if there is a `mod secrets` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `secrets` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod secrets; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `secrets`, create file "src/secrets.rs" or "src/secrets/mod.rs" [INFO] [stdout] = note: if there is a `mod secrets` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::` [INFO] [stdout] --> src/main.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let server : = Server::new(HashMap::new()); // server init [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `::` [INFO] [stdout] --> src/main.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let server : = Server::new(HashMap::new()); // server init [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aes::cipher::NewCipher` [INFO] [stdout] --> src/security/encryptor.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use aes::cipher::{NewCipher, StreamCipher}; [INFO] [stdout] | ^^^^^^^^^ no `NewCipher` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aes::cipher::NewCipher` [INFO] [stdout] --> src/security/encryptor.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use aes::cipher::{NewCipher, StreamCipher}; [INFO] [stdout] | ^^^^^^^^^ no `NewCipher` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aes::ctr` [INFO] [stdout] --> src/security/encryptor.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | use aes::ctr::CtrStream; [INFO] [stdout] | ^^^ could not find `ctr` in `aes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aes::ctr` [INFO] [stdout] --> src/security/encryptor.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | use aes::ctr::CtrStream; [INFO] [stdout] | ^^^ could not find `ctr` in `aes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SourceTypes` in this scope [INFO] [stdout] --> src/security/decryptor.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | pub sources : Vec, //this is the array of items to decrypt [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::SourceTypes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SourceTypes` in this scope [INFO] [stdout] --> src/security/decryptor.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | pub sources : Vec, //this is the array of items to decrypt [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::SourceTypes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes::Aes256` [INFO] [stdout] --> src/security/encryptor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::Aes256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamCipher` [INFO] [stdout] --> src/security/encryptor.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use aes::cipher::{NewCipher, StreamCipher}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/security/encryptor.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aes::Aes256` [INFO] [stdout] --> src/security/encryptor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use aes::Aes256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/server/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | get, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Encryptor` and `SourceTypes` [INFO] [stdout] --> src/main.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use security::{encryptor::{Encryptor, SourceTypes}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamCipher` [INFO] [stdout] --> src/security/encryptor.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use aes::cipher::{NewCipher, StreamCipher}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/security/encryptor.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/server/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | get, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Encryptor` and `SourceTypes` [INFO] [stdout] --> src/main.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use security::{encryptor::{Encryptor, SourceTypes}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, `post`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ ^^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, `post`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ ^^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 57 | impl<'a, F, I, S, B: Any> Server<'a, F, I, S, B> [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 73 | let tmp_server = HttpServer::new(move || { [INFO] [stdout] | ------- the found closure [INFO] [stdout] ... [INFO] [stdout] 82 | server: tmp_server, [INFO] [stdout] | ^^^^^^^^^^ expected `HttpServer`, found `HttpServer<{closure@...}, ..., ..., ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HttpServer` [INFO] [stdout] found struct `HttpServer<{closure@src/server/mod.rs:73:42: 73:49}, App, actix_web::app_service::AppInit, BoxBody>` [INFO] [stdout] = help: every closure has a distinct type and so could not always match the caller-chosen type of parameter `F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 57 | impl<'a, F, I, S, B: Any> Server<'a, F, I, S, B> [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 73 | let tmp_server = HttpServer::new(move || { [INFO] [stdout] | ------- the found closure [INFO] [stdout] ... [INFO] [stdout] 82 | server: tmp_server, [INFO] [stdout] | ^^^^^^^^^^ expected `HttpServer`, found `HttpServer<{closure@...}, ..., ..., ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HttpServer` [INFO] [stdout] found struct `HttpServer<{closure@src/server/mod.rs:73:42: 73:49}, App, actix_web::app_service::AppInit, BoxBody>` [INFO] [stdout] = help: every closure has a distinct type and so could not always match the caller-chosen type of parameter `F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:90:30 [INFO] [stdout] | [INFO] [stdout] 90 | .workers(t) [INFO] [stdout] | ------- ^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.7.0/src/server.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn workers(mut self, num: usize) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 90 | .workers(t.into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:90:30 [INFO] [stdout] | [INFO] [stdout] 90 | .workers(t) [INFO] [stdout] | ------- ^ expected `usize`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.7.0/src/server.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn workers(mut self, num: usize) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: you can convert a `u8` to a `usize` [INFO] [stdout] | [INFO] [stdout] 90 | .workers(t.into()) [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/server/mod.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn start(&self, port: u16, threads: Option) { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 87 | | match threads { [INFO] [stdout] 88 | | Some(t) => { [INFO] [stdout] 89 | | self.server [INFO] [stdout] 90 | | .workers(t) [INFO] [stdout] 91 | | .bind(("127.0.0.1", port))? [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/server/mod.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn start(&self, port: u16, threads: Option) { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 87 | | match threads { [INFO] [stdout] 88 | | Some(t) => { [INFO] [stdout] 89 | | self.server [INFO] [stdout] 90 | | .workers(t) [INFO] [stdout] 91 | | .bind(("127.0.0.1", port))? [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | / self.server [INFO] [stdout] 90 | | .workers(t) [INFO] [stdout] 91 | | .bind(("127.0.0.1", port))? [INFO] [stdout] 92 | | .run() [INFO] [stdout] 93 | | .await [INFO] [stdout] | |__________________________^ expected `()`, found `Result<(), Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), std::io::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<(), std::io::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 93 | .await.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | / self.server [INFO] [stdout] 90 | | .workers(t) [INFO] [stdout] 91 | | .bind(("127.0.0.1", port))? [INFO] [stdout] 92 | | .run() [INFO] [stdout] 93 | | .await [INFO] [stdout] | |__________________________^ expected `()`, found `Result<(), Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), std::io::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<(), std::io::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 93 | .await.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/server/mod.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn start(&self, port: u16, threads: Option) { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 87 | | match threads { [INFO] [stdout] 88 | | Some(t) => { [INFO] [stdout] 89 | | self.server [INFO] [stdout] ... | [INFO] [stdout] 96 | | None => self.server.bind(("127.0.0.1", port))?.run().await, [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/server/mod.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn start(&self, port: u16, threads: Option) { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 87 | | match threads { [INFO] [stdout] 88 | | Some(t) => { [INFO] [stdout] 89 | | self.server [INFO] [stdout] ... | [INFO] [stdout] 96 | | None => self.server.bind(("127.0.0.1", port))?.run().await, [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | None => self.server.bind(("127.0.0.1", port))?.run().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), std::io::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<(), std::io::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 96 | None => self.server.bind(("127.0.0.1", port))?.run().await.expect("REASON"), [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/server/mod.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | None => self.server.bind(("127.0.0.1", port))?.run().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), std::io::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<(), std::io::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 96 | None => self.server.bind(("127.0.0.1", port))?.run().await.expect("REASON"), [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/security/encryptor.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | algo : algo [INFO] [stdout] | ^^^^ expected `String`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 34 | algo : algo.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/security/encryptor.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | algo : algo [INFO] [stdout] | ^^^^ expected `String`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 34 | algo : algo.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> src/main.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | server.start(); [INFO] [stdout] | ^^^^^ method not found in `impl std::future::Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 26 | server.await.start(); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> src/main.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | server.start(); [INFO] [stdout] | ^^^^^ method not found in `impl std::future::Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 26 | server.await.start(); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/server/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let t1 = thread::spawn(move || { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/server/mod.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut data = gt2.stateData.lock().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/server/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let t1 = thread::spawn(move || { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut gt2: Arc = Arc::clone(>); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut data = gt2.stateData.lock().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/server/mod.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut data = gt2.stateData.lock().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut gt = Arc::new(GatewayState { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut gt2: Arc = Arc::clone(>); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut data = gt2.stateData.lock().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut gt = Arc::new(GatewayState { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0432, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0432, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TerraPay` (bin "TerraPay") due to 14 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `TerraPay` (bin "TerraPay" test) due to 14 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "538418f3899e51c5eeadf2843e65e506e29af10c13d76bbefb421b9cb576ab51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "538418f3899e51c5eeadf2843e65e506e29af10c13d76bbefb421b9cb576ab51", kill_on_drop: false }` [INFO] [stdout] 538418f3899e51c5eeadf2843e65e506e29af10c13d76bbefb421b9cb576ab51