[INFO] cloning repository https://github.com/thankslyh/chat-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thankslyh/chat-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthankslyh%2Fchat-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthankslyh%2Fchat-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a72a32a7cac057fee4e6fdc69e0da1b6f629e196 [INFO] checking thankslyh/chat-server against master#00bfd6b2734d9c28a147bf237490995731781fdd for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthankslyh%2Fchat-server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thankslyh/chat-server on toolchain 00bfd6b2734d9c28a147bf237490995731781fdd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thankslyh/chat-server [INFO] finished tweaking git repo https://github.com/thankslyh/chat-server [INFO] tweaked toml for git repo https://github.com/thankslyh/chat-server written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/thankslyh/chat-server 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" "+00bfd6b2734d9c28a147bf237490995731781fdd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking thankslyh/chat-server against try#aa7c6ba69acce8b10a275eabfe6157ea72c8b599 for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthankslyh%2Fchat-server" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thankslyh/chat-server on toolchain aa7c6ba69acce8b10a275eabfe6157ea72c8b599 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thankslyh/chat-server [INFO] finished tweaking git repo https://github.com/thankslyh/chat-server [INFO] tweaked toml for git repo https://github.com/thankslyh/chat-server written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/thankslyh/chat-server 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" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "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 sea-orm v0.12.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57a8e4a3c879d8c59a021801bee6b33e0ef7e74a7cc1bd077231a94708785511 [INFO] running `Command { std: "docker" "start" "-a" "57a8e4a3c879d8c59a021801bee6b33e0ef7e74a7cc1bd077231a94708785511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57a8e4a3c879d8c59a021801bee6b33e0ef7e74a7cc1bd077231a94708785511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57a8e4a3c879d8c59a021801bee6b33e0ef7e74a7cc1bd077231a94708785511", kill_on_drop: false }` [INFO] [stdout] 57a8e4a3c879d8c59a021801bee6b33e0ef7e74a7cc1bd077231a94708785511 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 622b05e8cbf0b0faafad09445efcc31b7d2ae79209f2152040101d94cba7308b [INFO] running `Command { std: "docker" "start" "-a" "622b05e8cbf0b0faafad09445efcc31b7d2ae79209f2152040101d94cba7308b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking const-oid v0.9.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling time-macros v0.2.15 [INFO] [stderr] Compiling ring v0.17.5 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking tokio v1.34.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling zeroize v1.6.0 [INFO] [stderr] Compiling rustls v0.21.8 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling zerocopy v0.7.25 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling der v0.7.8 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling spki v0.7.2 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling deranged v0.3.9 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling rustls-pemfile v1.0.3 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling signature v2.1.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling uuid v1.5.0 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.10 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling rsa v0.9.3 [INFO] [stderr] Compiling sqlformat v0.2.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling tempfile v3.8.1 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling inherent v1.0.10 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking actix-codec v0.5.1 [INFO] [stderr] Checking brotli v3.4.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling ouroboros_macro v0.17.2 [INFO] [stderr] Compiling sea-bae v0.2.0 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking sea-query v0.30.2 [INFO] [stderr] Compiling actix-router v0.5.1 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking ouroboros v0.17.2 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling sea-orm-macros v0.12.5 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking webpki-roots v0.24.0 [INFO] [stderr] Checking zstd v0.12.4 [INFO] [stderr] Checking actix-http v3.4.0 [INFO] [stderr] Checking sqlx-core v0.7.2 [INFO] [stderr] Checking actix-web v4.4.0 [INFO] [stderr] Checking sqlx-mysql v0.7.2 [INFO] [stderr] Compiling sqlx-macros-core v0.7.2 [INFO] [stderr] Compiling sqlx-macros v0.7.2 [INFO] [stderr] Checking sqlx v0.7.2 [INFO] [stderr] Checking sea-query-binder v0.5.0 [INFO] [stderr] Checking sea-orm v0.12.5 [INFO] [stderr] Checking chat-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0252]: the name `CustomError` is defined multiple times [INFO] [stdout] --> src/routes/friends.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::CustomError; [INFO] [stdout] | -------------------------- previous import of the type `CustomError` here [INFO] [stdout] 2 | use crate::routes::{CustomError, ServiceResponse}; [INFO] [stdout] | ^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `CustomError` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `CustomError` is defined multiple times [INFO] [stdout] --> src/routes/friends.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::CustomError; [INFO] [stdout] | -------------------------- previous import of the type `CustomError` here [INFO] [stdout] 2 | use crate::routes::{CustomError, ServiceResponse}; [INFO] [stdout] | ^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `CustomError` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0573]: expected type, found variant `CustomError::BusinessFriendExist` [INFO] [stdout] --> src/routes.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub code: CustomError::BusinessFriendExist, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | not a type [INFO] [stdout] | help: try using the variant's enum: `crate::errors::CustomError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0573]: expected type, found variant `CustomError::BusinessFriendExist` [INFO] [stdout] --> src/routes.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub code: CustomError::BusinessFriendExist, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | not a type [INFO] [stdout] | help: try using the variant's enum: `crate::errors::CustomError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/model/user.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/model/user.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActiveModel`, `Model`, `Mutation` [INFO] [stdout] --> src/model/user.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 97 | use crate::model::user::{ActiveModel, Model, Mutation, Query, Sex}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CustomError` [INFO] [stdout] --> src/routes/friends.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::routes::{CustomError, ServiceResponse}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CustomError` [INFO] [stdout] --> src/routes/friends.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::routes::{CustomError, ServiceResponse}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpServer`, `Scope` [INFO] [stdout] --> src/routes.rs:6:47 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{get, post, web, HttpResponse, HttpServer, Scope}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpServer`, `Scope` [INFO] [stdout] --> src/routes.rs:6:47 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{get, post, web, HttpResponse, HttpServer, Scope}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/routes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/routes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Into` [INFO] [stdout] --> src/routes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use Into; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Into` [INFO] [stdout] --> src/routes.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use Into; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/errors.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/errors.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `errors::CustomError: ResponseError` is not satisfied [INFO] [stdout] --> src/routes/friends.rs:22:80 [INFO] [stdout] | [INFO] [stdout] 22 | let exist = service::friend::relation_is_exist(db, user.uid.as_str()).await?; [INFO] [stdout] | ^ the trait `ResponseError` is not implemented for `errors::CustomError` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ResponseError`: [INFO] [stdout] Box<(dyn StdError + 'static)> [INFO] [stdout] serde_json::error::Error [INFO] [stdout] actix_web::error::InternalError [INFO] [stdout] actix_web::http::Error [INFO] [stdout] serde_urlencoded::ser::Error [INFO] [stdout] InvalidHeaderValue [INFO] [stdout] HttpError [INFO] [stdout] std::io::Error [INFO] [stdout] and 16 others [INFO] [stdout] = note: required for `actix_web::Error` to implement `std::convert::From` [INFO] [stdout] = note: required for `Result<_, actix_web::Error>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `errors::CustomError: ResponseError` is not satisfied [INFO] [stdout] --> src/routes/friends.rs:22:80 [INFO] [stdout] | [INFO] [stdout] 22 | let exist = service::friend::relation_is_exist(db, user.uid.as_str()).await?; [INFO] [stdout] | ^ the trait `ResponseError` is not implemented for `errors::CustomError` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ResponseError`: [INFO] [stdout] Box<(dyn StdError + 'static)> [INFO] [stdout] serde_json::error::Error [INFO] [stdout] actix_web::error::InternalError [INFO] [stdout] actix_web::http::Error [INFO] [stdout] serde_urlencoded::ser::Error [INFO] [stdout] InvalidHeaderValue [INFO] [stdout] HttpError [INFO] [stdout] std::io::Error [INFO] [stdout] and 16 others [INFO] [stdout] = note: required for `actix_web::Error` to implement `std::convert::From` [INFO] [stdout] = note: required for `Result<_, actix_web::Error>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/routes/friends.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/routes/friends.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/friends.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | return web::Json(ServiceResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 25 | | code: CustomError::BusinessFriendExist.into(), [INFO] [stdout] 26 | | data: None, [INFO] [stdout] 27 | | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] 28 | | }); [INFO] [stdout] | |__________^ expected `Result<_, Error>`, found `Json>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, actix_web::Error>` [INFO] [stdout] found struct `actix_web::web::Json>>` [INFO] [stdout] help: try wrapping the expression in `Ok` [INFO] [stdout] | [INFO] [stdout] 24 ~ return Ok(web::Json(ServiceResponse { [INFO] [stdout] 25 | code: CustomError::BusinessFriendExist.into(), [INFO] [stdout] 26 | data: None, [INFO] [stdout] 27 | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] 28 ~ })); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/friends.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | return web::Json(ServiceResponse { [INFO] [stdout] | ________________^ [INFO] [stdout] 25 | | code: CustomError::BusinessFriendExist.into(), [INFO] [stdout] 26 | | data: None, [INFO] [stdout] 27 | | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] 28 | | }); [INFO] [stdout] | |__________^ expected `Result<_, Error>`, found `Json>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, actix_web::Error>` [INFO] [stdout] found struct `actix_web::web::Json>>` [INFO] [stdout] help: try wrapping the expression in `Ok` [INFO] [stdout] | [INFO] [stdout] 24 ~ return Ok(web::Json(ServiceResponse { [INFO] [stdout] 25 | code: CustomError::BusinessFriendExist.into(), [INFO] [stdout] 26 | data: None, [INFO] [stdout] 27 | msg: CustomError::BusinessFriendExist.description(), [INFO] [stdout] 28 ~ })); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/friends.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / web::Json(ServiceResponse { [INFO] [stdout] 32 | | code: CustomError::Success, [INFO] [stdout] 33 | | data: None, [INFO] [stdout] 34 | | msg: "", [INFO] [stdout] 35 | | }) [INFO] [stdout] | |______^ expected `Result<_, Error>`, found `Json>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, actix_web::Error>` [INFO] [stdout] found struct `actix_web::web::Json>>` [INFO] [stdout] help: try wrapping the expression in `Ok` [INFO] [stdout] | [INFO] [stdout] 31 ~ Ok(web::Json(ServiceResponse { [INFO] [stdout] 32 | code: CustomError::Success, [INFO] [stdout] 33 | data: None, [INFO] [stdout] 34 | msg: "", [INFO] [stdout] 35 ~ })) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/friends.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / web::Json(ServiceResponse { [INFO] [stdout] 32 | | code: CustomError::Success, [INFO] [stdout] 33 | | data: None, [INFO] [stdout] 34 | | msg: "", [INFO] [stdout] 35 | | }) [INFO] [stdout] | |______^ expected `Result<_, Error>`, found `Json>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, actix_web::Error>` [INFO] [stdout] found struct `actix_web::web::Json>>` [INFO] [stdout] help: try wrapping the expression in `Ok` [INFO] [stdout] | [INFO] [stdout] 31 ~ Ok(web::Json(ServiceResponse { [INFO] [stdout] 32 | code: CustomError::Success, [INFO] [stdout] 33 | data: None, [INFO] [stdout] 34 | msg: "", [INFO] [stdout] 35 ~ })) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0308, E0573. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0308, E0573. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chat-server` (lib) due to 6 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `chat-server` (lib test) due to 6 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "622b05e8cbf0b0faafad09445efcc31b7d2ae79209f2152040101d94cba7308b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "622b05e8cbf0b0faafad09445efcc31b7d2ae79209f2152040101d94cba7308b", kill_on_drop: false }` [INFO] [stdout] 622b05e8cbf0b0faafad09445efcc31b7d2ae79209f2152040101d94cba7308b