[INFO] updating cached repository https://github.com/warriorsfly/mimosa [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/warriorsfly/mimosa [INFO] [stderr] - [deleted] (none) -> for-session [INFO] [stderr] - [deleted] (none) -> with-redis [INFO] [stderr] 67ac94a..694d796 master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 694d796d9d847b6f6c37353e9f9e709600f46763 [INFO] checking warriorsfly/mimosa against master#3dbade652ed8ebac70f903e01f51cd92c4e4302c for pr-69741 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwarriorsfly%2Fmimosa" "/workspace/builds/worker-5/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/warriorsfly/mimosa on toolchain 3dbade652ed8ebac70f903e01f51cd92c4e4302c [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/warriorsfly/mimosa [INFO] finished tweaking git repo https://github.com/warriorsfly/mimosa [INFO] tweaked toml for git repo https://github.com/warriorsfly/mimosa written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/warriorsfly/mimosa already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 710ad61fcad43c0657e6205d89826b92d35abf8ed53b21604965bbb30bdcd63a [INFO] running `"docker" "start" "-a" "710ad61fcad43c0657e6205d89826b92d35abf8ed53b21604965bbb30bdcd63a"` [INFO] [stderr] Compiling ring v0.16.11 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Compiling libsqlite3-sys v0.16.0 [INFO] [stderr] Checking listenfd v0.3.3 [INFO] [stderr] Checking blake2-rfc v0.2.18 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking scheduled-thread-pool v0.2.3 [INFO] [stderr] Checking num-bigint v0.2.6 [INFO] [stderr] Checking pem v0.7.0 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking backoff v0.1.6 [INFO] [stderr] Checking tokio v0.2.13 [INFO] [stderr] Checking r2d2 v0.8.8 [INFO] [stderr] Checking argon2rs v0.2.5 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking webpki v0.21.2 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking rustls v0.16.0 [INFO] [stderr] Checking webpki-roots v0.17.0 [INFO] [stderr] Checking actix-codec v0.2.0 [INFO] [stderr] Checking tokio-rustls v0.12.2 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling derive_more v0.99.3 [INFO] [stderr] Compiling actix-macros v0.1.1 [INFO] [stderr] Compiling failure_derive v0.1.7 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.24 [INFO] [stderr] Compiling actix-web-codegen v0.2.1 [INFO] [stderr] Compiling v_escape_derive v0.5.6 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix_derive v0.5.0 [INFO] [stderr] Checking failure v0.1.7 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Checking v_escape v0.7.4 [INFO] [stderr] Checking v_htmlescape v0.4.5 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking pin-project v0.4.8 [INFO] [stderr] Checking actix-threadpool v0.3.1 [INFO] [stderr] Checking serde v1.0.104 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking actix-service v1.0.5 [INFO] [stderr] Checking h2 v0.2.2 [INFO] [stderr] Checking redis-async v0.6.2 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking actix-rt v1.0.0 [INFO] [stderr] Checking trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Checking actix-utils v1.0.6 [INFO] [stderr] Checking actix-tls v1.0.0 [INFO] [stderr] Checking actix-server v1.0.2 [INFO] [stderr] Checking trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Checking actix-testing v1.0.0 [INFO] [stderr] Checking actix-connect v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking actix-router v0.2.4 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking envy v0.4.1 [INFO] [stderr] Checking validator v0.10.0 [INFO] [stderr] Checking actix-http v1.0.1 [INFO] [stderr] Checking diesel v1.4.3 [INFO] [stderr] Checking simple_asn1 v0.4.0 [INFO] [stderr] Checking jsonwebtoken v7.1.0 [INFO] [stderr] Compiling validator_derive v0.10.0 [INFO] [stderr] Checking awc v1.0.1 [INFO] [stderr] Checking actix v0.9.0 [INFO] [stderr] Checking actix-web v2.0.0 [INFO] [stderr] Checking actix-http-test v1.0.0 [INFO] [stderr] Checking actix-session v0.3.0 [INFO] [stderr] Checking actix-cors v0.2.0 [INFO] [stderr] Checking actix-files v0.2.1 [INFO] [stderr] Checking actix-identity v0.2.1 [INFO] [stderr] Checking actix-redis v0.8.1 [INFO] [stderr] Checking r2d2-diesel v1.0.0 [INFO] [stderr] Checking mimosa v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused imports: `PrivateClaim`, `create_jwt`, `hash` [INFO] [stderr] --> src/handlers/auth.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::auth::{create_jwt, hash, PrivateClaim}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::database::PoolType` [INFO] [stderr] --> src/handlers/auth.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::database::PoolType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::errors::ServiceError` [INFO] [stderr] --> src/handlers/auth.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::errors::ServiceError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::handlers::user::UserBaseResponse` [INFO] [stderr] --> src/handlers/auth.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::handlers::user::UserBaseResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::validate::validate` [INFO] [stderr] --> src/handlers/auth.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::validate::validate; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_identity::Identity` [INFO] [stderr] --> src/handlers/auth.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use actix_identity::Identity; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Data`, `HttpResponse`, `Json`, `block`, `client::Client` [INFO] [stderr] --> src/handlers/auth.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | client::Client, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 10 | web::{block, Data, HttpResponse, Json}, [INFO] [stderr] | ^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `HttpRequest`, `HttpResponse`, `Responder` [INFO] [stderr] --> src/models/account/base.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{Error, HttpRequest, HttpResponse, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Ready`, `ready` [INFO] [stderr] --> src/models/account/base.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use futures::future::{ready, Ready}; [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude::*` [INFO] [stderr] --> src/models/account/extra.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude::*` [INFO] [stderr] --> src/models/account/location.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/models/account/location.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PrivateClaim`, `create_jwt`, `hash` [INFO] [stderr] --> src/handlers/auth.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::auth::{create_jwt, hash, PrivateClaim}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::database::PoolType` [INFO] [stderr] --> src/handlers/auth.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::database::PoolType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::errors::ServiceError` [INFO] [stderr] --> src/handlers/auth.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::errors::ServiceError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::handlers::user::UserBaseResponse` [INFO] [stderr] --> src/handlers/auth.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::handlers::user::UserBaseResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::validate::validate` [INFO] [stderr] --> src/handlers/auth.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::validate::validate; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_identity::Identity` [INFO] [stderr] --> src/handlers/auth.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use actix_identity::Identity; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Data`, `HttpResponse`, `Json`, `block`, `client::Client` [INFO] [stderr] --> src/handlers/auth.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | client::Client, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 10 | web::{block, Data, HttpResponse, Json}, [INFO] [stderr] | ^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `HttpRequest`, `HttpResponse`, `Responder` [INFO] [stderr] --> src/models/account/base.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{Error, HttpRequest, HttpResponse, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Ready`, `ready` [INFO] [stderr] --> src/models/account/base.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use futures::future::{ready, Ready}; [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude::*` [INFO] [stderr] --> src/models/account/extra.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude::*` [INFO] [stderr] --> src/models/account/location.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/models/account/location.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude` [INFO] [stderr] --> src/models/account/base.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude` [INFO] [stderr] --> src/models/account/base.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new` [INFO] [stderr] --> src/auth.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(uid: Uuid, phone: String) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_jwt` [INFO] [stderr] --> src/auth.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn create_jwt(private_claim: PrivateClaim) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `hash` [INFO] [stderr] --> src/auth.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn hash(password: &str) -> String { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `PoolType` [INFO] [stderr] --> src/database.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | pub type PoolType = SqlitePool; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `respond_ok` [INFO] [stderr] --> src/helpers.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn respond_ok() -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_by_id` [INFO] [stderr] --> src/models/account/auth.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn find_by_id(pool: &PoolType, user_id: Uuid) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_by_auth` [INFO] [stderr] --> src/models/account/auth.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn find_by_auth( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `validate` [INFO] [stderr] --> src/validate.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn validate(params: &Json) -> Result<(), ServiceError> [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `collect_errors` [INFO] [stderr] --> src/validate.rs:17:4 [INFO] [stderr] | [INFO] [stderr] 17 | fn collect_errors(error: ValidationErrors) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `PoolType` [INFO] [stderr] --> src/database.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | pub type PoolType = SqlitePool; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_by_id` [INFO] [stderr] --> src/models/account/auth.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn find_by_id(pool: &PoolType, user_id: Uuid) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_by_auth` [INFO] [stderr] --> src/models/account/auth.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn find_by_auth( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `validate` [INFO] [stderr] --> src/validate.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn validate(params: &Json) -> Result<(), ServiceError> [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 18s [INFO] running `"docker" "inspect" "710ad61fcad43c0657e6205d89826b92d35abf8ed53b21604965bbb30bdcd63a"` [INFO] running `"docker" "rm" "-f" "710ad61fcad43c0657e6205d89826b92d35abf8ed53b21604965bbb30bdcd63a"` [INFO] [stdout] 710ad61fcad43c0657e6205d89826b92d35abf8ed53b21604965bbb30bdcd63a