[INFO] cloning repository https://github.com/amatureApe/task_manager [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amatureApe/task_manager" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FamatureApe%2Ftask_manager", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FamatureApe%2Ftask_manager'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 900fed5b1b4a68df53c29889dfe10d139cdabe81 [INFO] checking amatureApe/task_manager against 65c7d39f9c2b9d5c316725cb48fa3d360c64c663 for pr-161253 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FamatureApe%2Ftask_manager" "/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/amatureApe/task_manager [INFO] finished tweaking git repo https://github.com/amatureApe/task_manager [INFO] tweaked toml for git repo https://github.com/amatureApe/task_manager written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/amatureApe/task_manager on toolchain 65c7d39f9c2b9d5c316725cb48fa3d360c64c663 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65c7d39f9c2b9d5c316725cb48fa3d360c64c663" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/amatureApe/task_manager 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" "+65c7d39f9c2b9d5c316725cb48fa3d360c64c663" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc [INFO] running `Command { std: "docker" "start" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc", 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" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc" "/opt/rustwide/cargo-home/bin/cargo" "+65c7d39f9c2b9d5c316725cb48fa3d360c64c663" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc", 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" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc" "/opt/rustwide/cargo-home/bin/cargo" "+65c7d39f9c2b9d5c316725cb48fa3d360c64c663" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling aws-types v0.8.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking tokio v1.39.0 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking bytestring v1.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking xmlparser v0.13.3 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Checking urlencoding v1.3.3 [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 regex-automata v0.4.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking aws-smithy-types v0.38.0 [INFO] [stderr] Checking aws-smithy-json v0.38.0 [INFO] [stderr] Checking aws-smithy-query v0.38.0 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking aws-smithy-xml v0.38.0 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking ct-logs v0.8.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking rustls-native-certs v0.5.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking aws-smithy-async v0.38.0 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Checking actix-web v4.8.0 [INFO] [stderr] Checking aws-smithy-http v0.38.0 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking aws-smithy-http-tower v0.38.0 [INFO] [stderr] Checking aws-sigv4 v0.8.1 [INFO] [stderr] Checking aws-smithy-client v0.38.0 [INFO] [stderr] Checking aws-http v0.8.0 [INFO] [stderr] Checking aws-endpoint v0.8.0 [INFO] [stderr] Checking aws-sig-auth v0.8.0 [INFO] [stderr] Checking aws-sdk-sts v0.8.0 [INFO] [stderr] Checking aws-sdk-sso v0.8.0 [INFO] [stderr] Checking aws-sdk-dynamodb v0.8.0 [INFO] [stderr] Checking aws-config v0.8.0 [INFO] [stderr] Checking ActixWebTask v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/repository/ddb.rs:81:87 [INFO] [stdout] | [INFO] [stdout] 81 | let tokens:Vec = task_id.split("_").map(|x| String::from(x)).collect() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 82 | let user_uuid = AttributeValue::S(tokens[0].clone()); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/repository/ddb.rs:81:87 [INFO] [stdout] | [INFO] [stdout] 81 | let tokens:Vec = task_id.split("_").map(|x| String::from(x)).collect() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 82 | let user_uuid = AttributeValue::S(tokens[0].clone()); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;` [INFO] [stdout] --> src/main.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let ddb_data: Data::new(ddb_repo); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_web::we` [INFO] [stdout] --> src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{HttpServer, App, we::Data, middleware::Logger}; [INFO] [stdout] | ^^ could not find `we` in `actix_web` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;` [INFO] [stdout] --> src/main.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let ddb_data: Data::new(ddb_repo); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_web::we` [INFO] [stdout] --> src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{HttpServer, App, we::Data, middleware::Logger}; [INFO] [stdout] | ^^ could not find `we` in `actix_web` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/api/task.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use derive_more::{Display}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `derive_more` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `derive_more`, use `cargo add derive_more` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `api::task::fail_task`, `api::task::pause_task` [INFO] [stdout] --> src/main.rs:5:53 [INFO] [stdout] | [INFO] [stdout] 5 | use api::task::{ get_task, submit_task, start_task, fail_task, complete_task, pause_task }; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `pause_task` in `api::task` [INFO] [stdout] | | [INFO] [stdout] | no `fail_task` in `api::task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/api/task.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use derive_more::{Display}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `derive_more` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `derive_more`, use `cargo add derive_more` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `api::task::fail_task`, `api::task::pause_task` [INFO] [stdout] --> src/main.rs:5:53 [INFO] [stdout] | [INFO] [stdout] 5 | use api::task::{ get_task, submit_task, start_task, fail_task, complete_task, pause_task }; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `pause_task` in `api::task` [INFO] [stdout] | | [INFO] [stdout] | no `fail_task` in `api::task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `task_global_di` in this scope [INFO] [stdout] --> src/api/task.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | task_global_di [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 94 - task_global_di [INFO] [stdout] 94 + task_global_id [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Daba` in this scope [INFO] [stdout] --> src/api/task.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | ddb_repo: Daba, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: similarly named struct `Data` defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/data.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Data(Arc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 116 - ddb_repo: Daba, [INFO] [stdout] 116 + ddb_repo: Data, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `task_global_di` in this scope [INFO] [stdout] --> src/api/task.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | task_global_di [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 94 - task_global_di [INFO] [stdout] 94 + task_global_id [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Daba` in this scope [INFO] [stdout] --> src/api/task.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | ddb_repo: Daba, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: similarly named struct `Data` defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/data.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Data(Arc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 116 - ddb_repo: Daba, [INFO] [stdout] 116 + ddb_repo: Data, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TaskError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/api/task.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | impl ResponseError for TaskError { [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `TaskError` [INFO] [stdout] --> src/api/task.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `actix_web::ResponseError` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/error/response_error.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait ResponseError: fmt::Debug + fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `ResponseError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TaskError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/api/task.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | impl ResponseError for TaskError { [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `TaskError` [INFO] [stdout] --> src/api/task.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `actix_web::ResponseError` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/error/response_error.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait ResponseError: fmt::Debug + fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `ResponseError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/api/task.rs:79:46 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Result, TaskError> { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 80 | | let task = Task::new( [INFO] [stdout] 81 | | request.user_id.clone(), [INFO] [stdout] 82 | | request.task_type.clone(), [INFO] [stdout] 83 | | request.source_file.clone() [INFO] [stdout] 84 | | ); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ expected `Result, TaskError>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, TaskError>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/api/task.rs:79:46 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Result, TaskError> { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 80 | | let task = Task::new( [INFO] [stdout] 81 | | request.user_id.clone(), [INFO] [stdout] 82 | | request.task_type.clone(), [INFO] [stdout] 83 | | request.source_file.clone() [INFO] [stdout] 84 | | ); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ expected `Result, TaskError>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, TaskError>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `con_transition_to` found for struct `Task` in the current scope [INFO] [stdout] --> src/api/task.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | if !task.con_transition_to(&new_state) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/model/task.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Task { [INFO] [stdout] | --------------- method `con_transition_to` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `can_transition_to` with a similar name [INFO] [stdout] | [INFO] [stdout] 100 - if !task.con_transition_to(&new_state) { [INFO] [stdout] 100 + if !task.can_transition_to(&new_state) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `con_transition_to` found for struct `Task` in the current scope [INFO] [stdout] --> src/api/task.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | if !task.con_transition_to(&new_state) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/model/task.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Task { [INFO] [stdout] | --------------- method `con_transition_to` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `can_transition_to` with a similar name [INFO] [stdout] | [INFO] [stdout] 100 - if !task.con_transition_to(&new_state) { [INFO] [stdout] 100 + if !task.can_transition_to(&new_state) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `run` found for enum `Result` in the current scope [INFO] [stdout] --> src/main.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 18 | // HttpServer::new(move || { [INFO] [stdout] 19 | || let ddb_repo: DDBRepository = DDBRepository::init(String::from("task"), config.clone()); [INFO] [stdout] 20 | || let ddb_data: Data::new(ddb_repo); [INFO] [stdout] 21 | || let logger = Logger::default(); [INFO] [stdout] ... || [INFO] [stdout] 30 | || .service(complete_task) [INFO] [stdout] 31 | || }) [INFO] [stdout] | ||______- method `run` is available on `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` [INFO] [stdout] 32 | | .bind(("127.0.0.1", 80)).run().await [INFO] [stdout] | | -^^^ method not found in `Result, _, _>, Error>` [INFO] [stdout] | |______________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `run` exists on the type `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/server.rs:1050:5 [INFO] [stdout] | [INFO] [stdout] 1050 | pub fn run(self) -> Server { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/build/ActixWebTask/24b3f6059682533c/out/ActixWebTask-24b3f6059682533c.long-type-6954534656326773364.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: use the `?` operator to extract the `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 32 | .bind(("127.0.0.1", 80))?.run().await [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `run` found for enum `Result` in the current scope [INFO] [stdout] --> src/main.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 18 | // HttpServer::new(move || { [INFO] [stdout] 19 | || let ddb_repo: DDBRepository = DDBRepository::init(String::from("task"), config.clone()); [INFO] [stdout] 20 | || let ddb_data: Data::new(ddb_repo); [INFO] [stdout] 21 | || let logger = Logger::default(); [INFO] [stdout] ... || [INFO] [stdout] 30 | || .service(complete_task) [INFO] [stdout] 31 | || }) [INFO] [stdout] | ||______- method `run` is available on `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` [INFO] [stdout] 32 | | .bind(("127.0.0.1", 80)).run().await [INFO] [stdout] | | -^^^ method not found in `Result, _, _>, Error>` [INFO] [stdout] | |______________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `run` exists on the type `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/server.rs:1050:5 [INFO] [stdout] | [INFO] [stdout] 1050 | pub fn run(self) -> Server { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/build/ActixWebTask/3885970dcc41891b/out/ActixWebTask-3885970dcc41891b.long-type-8991135101376715061.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: use the `?` operator to extract the `HttpServer<{closure@src/main.rs:18:21: 18:28}, App>, Error = actix_web::Error, InitError = ()>>, actix_web::app_service::AppInit>, Error = actix_web::Error, InitError = ()>, actix_web::middleware::logger::StreamLog>, actix_web::middleware::logger::StreamLog>` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 32 | .bind(("127.0.0.1", 80))?.run().await [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | async fn main() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TaskError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/api/task.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | HttpResponse::build(self.status_code()) [INFO] [stdout] | ^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `TaskError` [INFO] [stdout] --> src/api/task.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `status_code` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/error/response_error.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait ResponseError: fmt::Debug + fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `ResponseError::status_code` [INFO] [stdout] ... [INFO] [stdout] 31 | fn status_code(&self) -> StatusCode { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TaskError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/api/task.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | HttpResponse::build(self.status_code()) [INFO] [stdout] | ^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `TaskError` [INFO] [stdout] --> src/api/task.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `status_code` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/actix-web-4.8.0/src/error/response_error.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait ResponseError: fmt::Debug + fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `ResponseError::status_code` [INFO] [stdout] ... [INFO] [stdout] 31 | fn status_code(&self) -> StatusCode { [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_string` exists for reference `&TaskError`, but its trait bounds were not satisfied [INFO] [stdout] --> src/api/task.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ------------------ doesn't satisfy `TaskError: ToString` or `TaskError: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 50 | .body(self.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&TaskError` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TaskError: std::fmt::Display` [INFO] [stdout] which is required by `TaskError: ToString` [INFO] [stdout] `TaskError: std::fmt::Display` [INFO] [stdout] which is required by `&TaskError: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/65c7d39f9c2b9d5c316725cb48fa3d360c64c663/library/core/src/fmt/mod.rs:1187:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_string` exists for reference `&TaskError`, but its trait bounds were not satisfied [INFO] [stdout] --> src/api/task.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TaskError { [INFO] [stdout] | ------------------ doesn't satisfy `TaskError: ToString` or `TaskError: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 50 | .body(self.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `&TaskError` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TaskError: std::fmt::Display` [INFO] [stdout] which is required by `TaskError: ToString` [INFO] [stdout] `TaskError: std::fmt::Display` [INFO] [stdout] which is required by `&TaskError: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/65c7d39f9c2b9d5c316725cb48fa3d360c64c663/library/core/src/fmt/mod.rs:1187:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0432, 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, E0425, E0432, E0599, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ActixWebTask` (bin "ActixWebTask" test) due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ActixWebTask` (bin "ActixWebTask") due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc", kill_on_drop: false }` [INFO] [stdout] c8ea95496981c68ab72c3c2948c2a90163273564ddeeeeab19eb86aaa54d55dc