[INFO] cloning repository https://github.com/qiuzhanghua/rust-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qiuzhanghua/rust-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiuzhanghua%2Frust-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiuzhanghua%2Frust-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bfc6e0b17117656c3c8650b1e2c5d2857dbd55c [INFO] testing qiuzhanghua/rust-app against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiuzhanghua%2Frust-app" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qiuzhanghua/rust-app on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qiuzhanghua/rust-app [INFO] finished tweaking git repo https://github.com/qiuzhanghua/rust-app [INFO] tweaked toml for git repo https://github.com/qiuzhanghua/rust-app written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/qiuzhanghua/rust-app already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded openssl v0.10.27 [INFO] [stderr] Downloaded rust_decimal v1.2.0 [INFO] [stderr] Downloaded actix-session v0.3.0 [INFO] [stderr] Downloaded log4rs v0.10.0 [INFO] [stderr] Downloaded json v0.12.1 [INFO] [stderr] Downloaded tokio-postgres v0.5.2 [INFO] [stderr] Downloaded postgres v0.17.1 [INFO] [stderr] Downloaded actix-web-middleware-requestid v2.0.0 [INFO] [stderr] Downloaded redis-async v0.6.1 [INFO] [stderr] Downloaded actix-redis v0.8.0 [INFO] [stderr] Downloaded viperus v0.1.10 [INFO] [stderr] Downloaded actix-web-static-files v0.3.0 [INFO] [stderr] Downloaded java-properties v1.2.0 [INFO] running `Command { std: "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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da9a11f62a23a956dcb033b4498d72b193178f89c1c6c2a033e403d1e8000df5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "da9a11f62a23a956dcb033b4498d72b193178f89c1c6c2a033e403d1e8000df5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da9a11f62a23a956dcb033b4498d72b193178f89c1c6c2a033e403d1e8000df5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da9a11f62a23a956dcb033b4498d72b193178f89c1c6c2a033e403d1e8000df5", kill_on_drop: false }` [INFO] [stdout] da9a11f62a23a956dcb033b4498d72b193178f89c1c6c2a033e403d1e8000df5 [INFO] running `Command { std: "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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b24ce48155e28904ea35c63f5fd6fc1c86018f901a35e618dc62f2238677e95 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8b24ce48155e28904ea35c63f5fd6fc1c86018f901a35e618dc62f2238677e95", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling smallvec v1.2.0 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling futures-io v0.3.1 [INFO] [stderr] Compiling pin-project-lite v0.1.4 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling regex-syntax v0.6.14 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling copyless v0.1.4 [INFO] [stderr] Compiling untrusted v0.7.0 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling path-slash v0.1.1 [INFO] [stderr] Compiling openssl v0.10.27 [INFO] [stderr] Compiling siphasher v0.3.1 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling io-enum v0.2.2 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling rustversion v1.0.2 [INFO] [stderr] Compiling instant v0.1.2 [INFO] [stderr] Compiling mysql v17.0.0 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling unchecked-index v0.2.2 [INFO] [stderr] Compiling futures-timer v2.0.2 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling json v0.12.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling indexmap v1.3.1 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling ring v0.16.10 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling openssl-sys v0.9.54 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling miniz_oxide v0.3.5 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling pest v2.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling http v0.2.0 [INFO] [stderr] Compiling bytestring v0.1.4 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling aho-corasick v0.7.7 [INFO] [stderr] Compiling twoway v0.2.1 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling lexical-core v0.6.2 [INFO] [stderr] Compiling lexical v4.0.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling pest_meta v2.1.2 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling generic-array v0.13.2 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling parking_lot_core v0.7.0 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling socket2 v0.3.11 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling filetime v0.2.8 [INFO] [stderr] Compiling thread-id v3.3.0 [INFO] [stderr] Compiling async-task v1.3.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling backtrace v0.3.43 [INFO] [stderr] Compiling parking_lot v0.10.0 [INFO] [stderr] Compiling flate2 v1.0.13 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling java-properties v1.2.0 [INFO] [stderr] Compiling pem v0.7.0 [INFO] [stderr] Compiling chrono v0.4.10 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling inotify v0.7.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha2 v0.8.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.3 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling simple_asn1 v0.4.0 [INFO] [stderr] Compiling backoff v0.1.6 [INFO] [stderr] Compiling postgres-protocol v0.5.0 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling postgres-types v0.1.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling derive_utils v0.9.1 [INFO] [stderr] Compiling pest_generator v2.1.1 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling derive_more v0.99.2 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling actix-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.22 [INFO] [stderr] Compiling enum-as-inner v0.3.0 [INFO] [stderr] Compiling actix-web-codegen v0.2.0 [INFO] [stderr] Compiling v_escape_derive v0.5.6 [INFO] [stderr] Compiling actix_derive v0.5.0 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling failure v0.1.6 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Compiling time-macros-impl v0.1.0 [INFO] [stderr] Compiling v_escape v0.7.4 [INFO] [stderr] Compiling v_htmlescape v0.4.5 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling time v0.2.6 [INFO] [stderr] Compiling pin-project v0.4.8 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling futures-executor v0.3.1 [INFO] [stderr] Compiling actix-service v1.0.5 [INFO] [stderr] Compiling futures v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.46 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling serde_yaml v0.8.11 [INFO] [stderr] Compiling bigdecimal v0.1.0 [INFO] [stderr] Compiling rust_decimal v1.2.0 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling hashbrown v0.5.0 [INFO] [stderr] Compiling serde-value v0.6.0 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling actix-threadpool v0.3.1 [INFO] [stderr] Compiling actix-router v0.2.4 [INFO] [stderr] Compiling kv-log-macro v1.0.4 [INFO] [stderr] Compiling r2d2 v0.8.8 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling diesel v1.4.3 [INFO] [stderr] Compiling mysql_common v0.19.2 [INFO] [stderr] Compiling handlebars v2.0.4 [INFO] [stderr] Compiling jsonwebtoken v7.0.1 [INFO] [stderr] Compiling log4rs v0.10.0 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling async-std v1.5.0 [INFO] [stderr] Compiling notify v4.0.15 [INFO] [stderr] Compiling viperus v0.1.10 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling actix-rt v1.0.0 [INFO] [stderr] Compiling trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling tokio-postgres v0.5.2 [INFO] [stderr] Compiling redis-async v0.6.1 [INFO] [stderr] Compiling redis v0.15.1 [INFO] [stderr] Compiling actix-utils v1.0.6 [INFO] [stderr] Compiling actix-server v1.0.1 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-testing v1.0.0 [INFO] [stderr] Compiling postgres v0.17.1 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling actix v0.9.0 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling actix-session v0.3.0 [INFO] [stderr] Compiling actix-identity v0.2.1 [INFO] [stderr] Compiling actix-web-middleware-requestid v2.0.0 [INFO] [stderr] Compiling actix-multipart v0.2.0 [INFO] [stderr] Compiling actix-files v0.2.1 [INFO] [stderr] Compiling actix-redis v0.8.0 [INFO] [stderr] Compiling actix-web-static-files v0.3.0 [INFO] [stderr] Compiling rust-app v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Cell`, `RefCell` [INFO] [stdout] --> src/main.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use std::cell::{Cell, RefCell}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::auth::jwt::MemToken` [INFO] [stdout] --> src/auth/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::auth::jwt::MemToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut auth_service = Arc::new(Mutex::new(AccountService::new())); [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/auth/mod.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | let mut accounts = self.accounts.clone(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `establish_connection` [INFO] [stdout] --> src/db/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn establish_connection() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_OK` [INFO] [stdout] --> src/auth/jwt.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const MESSAGE_OK: &str = "ok"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_FETCH_DATA` [INFO] [stdout] --> src/auth/jwt.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const MESSAGE_CAN_NOT_FETCH_DATA: &str = "Can not fetch data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_INSERT_DATA` [INFO] [stdout] --> src/auth/jwt.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub const MESSAGE_CAN_NOT_INSERT_DATA: &str = "Can not insert data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_UPDATE_DATA` [INFO] [stdout] --> src/auth/jwt.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub const MESSAGE_CAN_NOT_UPDATE_DATA: &str = "Can not update data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_DELETE_DATA` [INFO] [stdout] --> src/auth/jwt.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub const MESSAGE_CAN_NOT_DELETE_DATA: &str = "Can not delete data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_SIGNUP_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub const MESSAGE_SIGNUP_SUCCESS: &str = "Signup successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGIN_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub const MESSAGE_LOGIN_SUCCESS: &str = "Login successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGIN_FAILED` [INFO] [stdout] --> src/auth/jwt.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub const MESSAGE_LOGIN_FAILED: &str = "Wrong username or password, please try again"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGOUT_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub const MESSAGE_LOGOUT_SUCCESS: &str = "Logout successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_PROCESS_TOKEN_ERROR` [INFO] [stdout] --> src/auth/jwt.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const MESSAGE_PROCESS_TOKEN_ERROR: &str = "Error while processing token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_INTERNAL_SERVER_ERROR` [INFO] [stdout] --> src/auth/jwt.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub const MESSAGE_INTERNAL_SERVER_ERROR: &str = "Internal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_TOKEN_MISSING` [INFO] [stdout] --> src/auth/jwt.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub const MESSAGE_TOKEN_MISSING: &str = "Token is missing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EMPTY` [INFO] [stdout] --> src/auth/jwt.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub const EMPTY: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `KEY` [INFO] [stdout] --> src/auth/jwt.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub static KEY: [u8; 16] = [23, 54, 78, 30, 91, 56, 02, 43, 63, 31, 87, 48, 55, 11, 99, 130]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/auth/handlers.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | service.logout(authen_header); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 42s [INFO] running `Command { std: "docker" "inspect" "8b24ce48155e28904ea35c63f5fd6fc1c86018f901a35e618dc62f2238677e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b24ce48155e28904ea35c63f5fd6fc1c86018f901a35e618dc62f2238677e95", kill_on_drop: false }` [INFO] [stdout] 8b24ce48155e28904ea35c63f5fd6fc1c86018f901a35e618dc62f2238677e95 [INFO] running `Command { std: "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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d7f2f4a9a2084c5e8507b10bf4aacd2b0bc86114e7549800bbe6f84c34306c6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4d7f2f4a9a2084c5e8507b10bf4aacd2b0bc86114e7549800bbe6f84c34306c6", kill_on_drop: false }` [INFO] [stderr] Compiling rust-app v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Cell`, `RefCell` [INFO] [stdout] --> src/main.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use std::cell::{Cell, RefCell}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::auth::jwt::MemToken` [INFO] [stdout] --> src/auth/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::auth::jwt::MemToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut auth_service = Arc::new(Mutex::new(AccountService::new())); [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/auth/mod.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | let mut accounts = self.accounts.clone(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_OK` [INFO] [stdout] --> src/auth/jwt.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub const MESSAGE_OK: &str = "ok"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_FETCH_DATA` [INFO] [stdout] --> src/auth/jwt.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const MESSAGE_CAN_NOT_FETCH_DATA: &str = "Can not fetch data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_INSERT_DATA` [INFO] [stdout] --> src/auth/jwt.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub const MESSAGE_CAN_NOT_INSERT_DATA: &str = "Can not insert data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_UPDATE_DATA` [INFO] [stdout] --> src/auth/jwt.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub const MESSAGE_CAN_NOT_UPDATE_DATA: &str = "Can not update data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_CAN_NOT_DELETE_DATA` [INFO] [stdout] --> src/auth/jwt.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub const MESSAGE_CAN_NOT_DELETE_DATA: &str = "Can not delete data"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_SIGNUP_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub const MESSAGE_SIGNUP_SUCCESS: &str = "Signup successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGIN_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub const MESSAGE_LOGIN_SUCCESS: &str = "Login successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGIN_FAILED` [INFO] [stdout] --> src/auth/jwt.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub const MESSAGE_LOGIN_FAILED: &str = "Wrong username or password, please try again"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_LOGOUT_SUCCESS` [INFO] [stdout] --> src/auth/jwt.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub const MESSAGE_LOGOUT_SUCCESS: &str = "Logout successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_PROCESS_TOKEN_ERROR` [INFO] [stdout] --> src/auth/jwt.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub const MESSAGE_PROCESS_TOKEN_ERROR: &str = "Error while processing token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_INTERNAL_SERVER_ERROR` [INFO] [stdout] --> src/auth/jwt.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub const MESSAGE_INTERNAL_SERVER_ERROR: &str = "Internal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MESSAGE_TOKEN_MISSING` [INFO] [stdout] --> src/auth/jwt.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub const MESSAGE_TOKEN_MISSING: &str = "Token is missing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EMPTY` [INFO] [stdout] --> src/auth/jwt.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub const EMPTY: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `KEY` [INFO] [stdout] --> src/auth/jwt.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub static KEY: [u8; 16] = [23, 54, 78, 30, 91, 56, 02, 43, 63, 31, 87, 48, 55, 11, 99, 130]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/auth/handlers.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | service.logout(authen_header); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 15.31s [INFO] running `Command { std: "docker" "inspect" "4d7f2f4a9a2084c5e8507b10bf4aacd2b0bc86114e7549800bbe6f84c34306c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d7f2f4a9a2084c5e8507b10bf4aacd2b0bc86114e7549800bbe6f84c34306c6", kill_on_drop: false }` [INFO] [stdout] 4d7f2f4a9a2084c5e8507b10bf4aacd2b0bc86114e7549800bbe6f84c34306c6 [INFO] running `Command { std: "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=warn" "-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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7c3056f86457703277bb95f29ff72b4ebf49e06b21faccd40edeadc7384ac126 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7c3056f86457703277bb95f29ff72b4ebf49e06b21faccd40edeadc7384ac126", 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] warning: unused imports: `Cell`, `RefCell` [INFO] [stderr] --> src/main.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | use std::cell::{Cell, RefCell}; [INFO] [stderr] | ^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::auth::jwt::MemToken` [INFO] [stderr] --> src/auth/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::auth::jwt::MemToken; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | let mut auth_service = Arc::new(Mutex::new(AccountService::new())); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/auth/mod.rs:121:25 [INFO] [stderr] | [INFO] [stderr] 121 | let mut accounts = self.accounts.clone(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_OK` [INFO] [stderr] --> src/auth/jwt.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub const MESSAGE_OK: &str = "ok"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_CAN_NOT_FETCH_DATA` [INFO] [stderr] --> src/auth/jwt.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | pub const MESSAGE_CAN_NOT_FETCH_DATA: &str = "Can not fetch data"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_CAN_NOT_INSERT_DATA` [INFO] [stderr] --> src/auth/jwt.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | pub const MESSAGE_CAN_NOT_INSERT_DATA: &str = "Can not insert data"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_CAN_NOT_UPDATE_DATA` [INFO] [stderr] --> src/auth/jwt.rs:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | pub const MESSAGE_CAN_NOT_UPDATE_DATA: &str = "Can not update data"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_CAN_NOT_DELETE_DATA` [INFO] [stderr] --> src/auth/jwt.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | pub const MESSAGE_CAN_NOT_DELETE_DATA: &str = "Can not delete data"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_SIGNUP_SUCCESS` [INFO] [stderr] --> src/auth/jwt.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | pub const MESSAGE_SIGNUP_SUCCESS: &str = "Signup successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_LOGIN_SUCCESS` [INFO] [stderr] --> src/auth/jwt.rs:26:1 [INFO] [stderr] | [INFO] [stderr] 26 | pub const MESSAGE_LOGIN_SUCCESS: &str = "Login successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_LOGIN_FAILED` [INFO] [stderr] --> src/auth/jwt.rs:27:1 [INFO] [stderr] | [INFO] [stderr] 27 | pub const MESSAGE_LOGIN_FAILED: &str = "Wrong username or password, please try again"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_LOGOUT_SUCCESS` [INFO] [stderr] --> src/auth/jwt.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | pub const MESSAGE_LOGOUT_SUCCESS: &str = "Logout successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_PROCESS_TOKEN_ERROR` [INFO] [stderr] --> src/auth/jwt.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | pub const MESSAGE_PROCESS_TOKEN_ERROR: &str = "Error while processing token"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_INTERNAL_SERVER_ERROR` [INFO] [stderr] --> src/auth/jwt.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | pub const MESSAGE_INTERNAL_SERVER_ERROR: &str = "Internal Server Error"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MESSAGE_TOKEN_MISSING` [INFO] [stderr] --> src/auth/jwt.rs:34:1 [INFO] [stderr] | [INFO] [stderr] 34 | pub const MESSAGE_TOKEN_MISSING: &str = "Token is missing"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `EMPTY` [INFO] [stderr] --> src/auth/jwt.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | pub const EMPTY: &str = ""; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `KEY` [INFO] [stderr] --> src/auth/jwt.rs:46:1 [INFO] [stderr] | [INFO] [stderr] 46 | pub static KEY: [u8; 16] = [23, 54, 78, 30, 91, 56, 02, 43, 63, 31, 87, 48, 55, 11, 99, 130]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/auth/handlers.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | service.logout(authen_header); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 19 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.45s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/rust_app-22eedc89c062690b [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test handlers::tests::test_index ... ok [INFO] [stdout] test db::tests::test_connection ... FAILED [INFO] [stdout] test db::tests::test_create_and_delete_user ... FAILED [INFO] [stdout] test db::tests::test_get_user ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- db::tests::test_connection stdout ---- [INFO] [stdout] thread 'db::tests::test_connection' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `false`, [INFO] [stdout] right: `true`', src/db/mod.rs:79:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x557be8bc2925 - backtrace::backtrace::libunwind::trace::h5e2646fa3eddf2ea [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stdout] 1: 0x557be8bc2925 - backtrace::backtrace::trace_unsynchronized::hb95dd7f77ce47877 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stdout] 2: 0x557be8bc2925 - std::sys_common::backtrace::_print_fmt::h5e71b67af43fd70d [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stdout] 3: 0x557be8bc2925 - ::fmt::hdb4a83d2b61107e5 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] 4: 0x557be8becd1c - core::fmt::write::ha20e7262fa3e8a7a [INFO] [stdout] at src/libcore/fmt/mod.rs:1076 [INFO] [stdout] 5: 0x557be867ed35 - std::io::Write::write_fmt::hd8ff364c7845d2d0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/io/mod.rs:1537 [INFO] [stdout] 6: 0x557be8bba741 - std::io::impls::>::write_fmt::h1c057ef6e8762996 [INFO] [stdout] at src/libstd/io/impls.rs:176 [INFO] [stdout] 7: 0x557be8bc5090 - std::sys_common::backtrace::_print::h9c07314cc66ba539 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stdout] 8: 0x557be8bc5090 - std::sys_common::backtrace::print::hd1fd65f49a2d8544 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stdout] 9: 0x557be8bc5090 - std::panicking::default_hook::{{closure}}::h222da46485ab36fc [INFO] [stdout] at src/libstd/panicking.rs:198 [INFO] [stdout] 10: 0x557be8bc4d8a - std::panicking::default_hook::hc5868949d129ed00 [INFO] [stdout] at src/libstd/panicking.rs:214 [INFO] [stdout] 11: 0x557be8bc56d3 - std::panicking::rust_panic_with_hook::h26a6ab8b0993c0c8 [INFO] [stdout] at src/libstd/panicking.rs:526 [INFO] [stdout] 12: 0x557be8bc52cb - rust_begin_unwind [INFO] [stdout] at src/libstd/panicking.rs:437 [INFO] [stdout] 13: 0x557be8bc523b - std::panicking::begin_panic_fmt::h2ff295231415d4a6 [INFO] [stdout] at src/libstd/panicking.rs:391 [INFO] [stdout] 14: 0x557be863dc4a - rust_app::db::tests::test_connection::hc2fe0dac3fcb9984 [INFO] [stdout] at src/db/mod.rs:79 [INFO] [stdout] 15: 0x557be863da5a - rust_app::db::tests::test_connection::{{closure}}::h7b4f24e8400c3a08 [INFO] [stdout] at src/db/mod.rs:78 [INFO] [stdout] 16: 0x557be8638b6e - core::ops::function::FnOnce::call_once::h8ab9bcdfd315b472 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 17: 0x557be86a62ac - as core::ops::function::FnOnce>::call_once::h42148c33ed88c979 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 18: 0x557be86a62ac - as core::ops::function::FnOnce<()>>::call_once::h759dc0b09d774665 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 19: 0x557be86a62ac - std::panicking::try::do_call::h676ad1fc9e9badea [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 20: 0x557be86a62ac - std::panicking::try::hee36a8727a3050b0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 21: 0x557be86a62ac - std::panic::catch_unwind::hd5d426ebd89b2542 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 22: 0x557be86a62ac - test::run_test_in_process::h8dacdba4dc4cbaa5 [INFO] [stdout] at src/libtest/lib.rs:541 [INFO] [stdout] 23: 0x557be86a62ac - test::run_test::run_test_inner::{{closure}}::hf93754afad6be40f [INFO] [stdout] at src/libtest/lib.rs:450 [INFO] [stdout] 24: 0x557be867e226 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2c69fab544a90730 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sys_common/backtrace.rs:130 [INFO] [stdout] 25: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hcf302fafa60d80f2 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:475 [INFO] [stdout] 26: 0x557be86832b5 - as core::ops::function::FnOnce<()>>::call_once::h39ede710608e817e [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 27: 0x557be86832b5 - std::panicking::try::do_call::hec0b4d2faa46fbf7 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 28: 0x557be86832b5 - std::panicking::try::h0144ba3f2539803d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 29: 0x557be86832b5 - std::panic::catch_unwind::ha03e59eb589f857b [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 30: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::hdeba34620a4a7a44 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:474 [INFO] [stdout] 31: 0x557be86832b5 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h552693dbb801eadd [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 32: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h61c24496ae624ac5 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 33: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h89548957afa14049 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 34: 0x557be8bcb9ea - std::sys::unix::thread::Thread::new::thread_start::h73903fbbff5b990e [INFO] [stdout] at src/libstd/sys/unix/thread.rs:87 [INFO] [stdout] 35: 0x7f4ffa16f609 - start_thread [INFO] [stdout] 36: 0x7f4ff9f08103 - __clone [INFO] [stdout] 37: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- db::tests::test_create_and_delete_user stdout ---- [INFO] [stdout] thread 'db::tests::test_create_and_delete_user' panicked at 'Failed to create pool.: Error(Some("MySQL connection URLs must be in the form `mysql://[[user]:[password]@]host[:port][/database]`"))', src/db/mod.rs:19:42 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x557be8bc2925 - backtrace::backtrace::libunwind::trace::h5e2646fa3eddf2ea [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stdout] 1: 0x557be8bc2925 - backtrace::backtrace::trace_unsynchronized::hb95dd7f77ce47877 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stdout] 2: 0x557be8bc2925 - std::sys_common::backtrace::_print_fmt::h5e71b67af43fd70d [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stdout] 3: 0x557be8bc2925 - ::fmt::hdb4a83d2b61107e5 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] 4: 0x557be8becd1c - core::fmt::write::ha20e7262fa3e8a7a [INFO] [stdout] at src/libcore/fmt/mod.rs:1076 [INFO] [stdout] 5: 0x557be867ed35 - std::io::Write::write_fmt::hd8ff364c7845d2d0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/io/mod.rs:1537 [INFO] [stdout] 6: 0x557be8bba741 - std::io::impls::>::write_fmt::h1c057ef6e8762996 [INFO] [stdout] at src/libstd/io/impls.rs:176 [INFO] [stdout] 7: 0x557be8bc5090 - std::sys_common::backtrace::_print::h9c07314cc66ba539 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stdout] 8: 0x557be8bc5090 - std::sys_common::backtrace::print::hd1fd65f49a2d8544 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stdout] 9: 0x557be8bc5090 - std::panicking::default_hook::{{closure}}::h222da46485ab36fc [INFO] [stdout] at src/libstd/panicking.rs:198 [INFO] [stdout] 10: 0x557be8bc4d8a - std::panicking::default_hook::hc5868949d129ed00 [INFO] [stdout] at src/libstd/panicking.rs:214 [INFO] [stdout] 11: 0x557be8bc56d3 - std::panicking::rust_panic_with_hook::h26a6ab8b0993c0c8 [INFO] [stdout] at src/libstd/panicking.rs:526 [INFO] [stdout] 12: 0x557be8bc52cb - rust_begin_unwind [INFO] [stdout] at src/libstd/panicking.rs:437 [INFO] [stdout] 13: 0x557be8beb401 - core::panicking::panic_fmt::h17139c2000299725 [INFO] [stdout] at src/libcore/panicking.rs:85 [INFO] [stdout] 14: 0x557be8beb223 - core::option::expect_none_failed::h972f96abb4ec8952 [INFO] [stdout] at src/libcore/option.rs:1269 [INFO] [stdout] 15: 0x557be86450f0 - core::result::Result::expect::h2202e393a3afa0e8 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/result.rs:963 [INFO] [stdout] 16: 0x557be8638dcb - ::deref::__static_ref_initialize::h9c53614bc17bc9a8 [INFO] [stdout] at src/db/mod.rs:19 [INFO] [stdout] 17: 0x557be8638dcb - core::ops::function::FnOnce::call_once::hcfad7a63c23cacb7 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 18: 0x557be86664b6 - lazy_static::lazy::Lazy::get::{{closure}}::hf4f6a85398f6f530 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:31 [INFO] [stdout] 19: 0x557be8661682 - std::sync::once::Once::call_once::{{closure}}::hca36e92fe0fdd495 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sync/once.rs:264 [INFO] [stdout] 20: 0x557be8bc211a - std::sync::once::Once::call_inner::h166ab676aee3f529 [INFO] [stdout] at src/libstd/sync/once.rs:416 [INFO] [stdout] 21: 0x557be8661421 - std::sync::once::Once::call_once::h47d9bdd948f2b69d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sync/once.rs:264 [INFO] [stdout] 22: 0x557be866f485 - lazy_static::lazy::Lazy::get::hbbbb6c03425d55a5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:30 [INFO] [stdout] 23: 0x557be866f485 - ::deref::__stability::heed2b1695783be64 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs:142 [INFO] [stdout] 24: 0x557be866f485 - ::deref::h935aa6a4e120d528 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs:144 [INFO] [stdout] 25: 0x557be866f083 - rust_app::db::get_connection::h384952069d3b463d [INFO] [stdout] at src/db/mod.rs:30 [INFO] [stdout] 26: 0x557be866f178 - rust_app::db::create_user::hd6bc54ff8b3cf894 [INFO] [stdout] at src/db/mod.rs:38 [INFO] [stdout] 27: 0x557be863dcde - rust_app::db::tests::test_create_and_delete_user::had09dcb549b6ffd8 [INFO] [stdout] at src/db/mod.rs:84 [INFO] [stdout] 28: 0x557be863dc7a - rust_app::db::tests::test_create_and_delete_user::{{closure}}::h979633cf4b727ad4 [INFO] [stdout] at src/db/mod.rs:83 [INFO] [stdout] 29: 0x557be863899e - core::ops::function::FnOnce::call_once::h15d4bc6618468ebc [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 30: 0x557be86a62ac - as core::ops::function::FnOnce>::call_once::h42148c33ed88c979 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 31: 0x557be86a62ac - as core::ops::function::FnOnce<()>>::call_once::h759dc0b09d774665 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 32: 0x557be86a62ac - std::panicking::try::do_call::h676ad1fc9e9badea [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 33: 0x557be86a62ac - std::panicking::try::hee36a8727a3050b0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 34: 0x557be86a62ac - std::panic::catch_unwind::hd5d426ebd89b2542 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 35: 0x557be86a62ac - test::run_test_in_process::h8dacdba4dc4cbaa5 [INFO] [stdout] at src/libtest/lib.rs:541 [INFO] [stdout] 36: 0x557be86a62ac - test::run_test::run_test_inner::{{closure}}::hf93754afad6be40f [INFO] [stdout] at src/libtest/lib.rs:450 [INFO] [stdout] 37: 0x557be867e226 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2c69fab544a90730 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sys_common/backtrace.rs:130 [INFO] [stdout] 38: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hcf302fafa60d80f2 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:475 [INFO] [stdout] 39: 0x557be86832b5 - as core::ops::function::FnOnce<()>>::call_once::h39ede710608e817e [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 40: 0x557be86832b5 - std::panicking::try::do_call::hec0b4d2faa46fbf7 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 41: 0x557be86832b5 - std::panicking::try::h0144ba3f2539803d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 42: 0x557be86832b5 - std::panic::catch_unwind::ha03e59eb589f857b [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 43: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::hdeba34620a4a7a44 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:474 [INFO] [stdout] 44: 0x557be86832b5 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h552693dbb801eadd [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 45: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h61c24496ae624ac5 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 46: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h89548957afa14049 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 47: 0x557be8bcb9ea - std::sys::unix::thread::Thread::new::thread_start::h73903fbbff5b990e [INFO] [stdout] at src/libstd/sys/unix/thread.rs:87 [INFO] [stdout] 48: 0x7f4ffa16f609 - start_thread [INFO] [stdout] 49: 0x7f4ff9f08103 - __clone [INFO] [stdout] 50: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- db::tests::test_get_user stdout ---- [INFO] [stdout] thread 'db::tests::test_get_user' panicked at 'Once instance has previously been poisoned', src/libstd/sync/once.rs:395:21 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x557be8bc2925 - backtrace::backtrace::libunwind::trace::h5e2646fa3eddf2ea [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stdout] 1: 0x557be8bc2925 - backtrace::backtrace::trace_unsynchronized::hb95dd7f77ce47877 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stdout] 2: 0x557be8bc2925 - std::sys_common::backtrace::_print_fmt::h5e71b67af43fd70d [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stdout] 3: 0x557be8bc2925 - ::fmt::hdb4a83d2b61107e5 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] 4: 0x557be8becd1c - core::fmt::write::ha20e7262fa3e8a7a [INFO] [stdout] at src/libcore/fmt/mod.rs:1076 [INFO] [stdout] 5: 0x557be867ed35 - std::io::Write::write_fmt::hd8ff364c7845d2d0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/io/mod.rs:1537 [INFO] [stdout] 6: 0x557be8bba741 - std::io::impls::>::write_fmt::h1c057ef6e8762996 [INFO] [stdout] at src/libstd/io/impls.rs:176 [INFO] [stdout] 7: 0x557be8bc5090 - std::sys_common::backtrace::_print::h9c07314cc66ba539 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stdout] 8: 0x557be8bc5090 - std::sys_common::backtrace::print::hd1fd65f49a2d8544 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stdout] 9: 0x557be8bc5090 - std::panicking::default_hook::{{closure}}::h222da46485ab36fc [INFO] [stdout] at src/libstd/panicking.rs:198 [INFO] [stdout] 10: 0x557be8bc4d8a - std::panicking::default_hook::hc5868949d129ed00 [INFO] [stdout] at src/libstd/panicking.rs:214 [INFO] [stdout] 11: 0x557be8bc56d3 - std::panicking::rust_panic_with_hook::h26a6ab8b0993c0c8 [INFO] [stdout] at src/libstd/panicking.rs:526 [INFO] [stdout] 12: 0x557be8bc551e - std::panicking::begin_panic::hcf57c5e6af9b0319 [INFO] [stdout] at src/libstd/panicking.rs:456 [INFO] [stdout] 13: 0x557be8bc2188 - std::sync::once::Once::call_inner::h166ab676aee3f529 [INFO] [stdout] at src/libstd/sync/once.rs:395 [INFO] [stdout] 14: 0x557be8661421 - std::sync::once::Once::call_once::h47d9bdd948f2b69d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sync/once.rs:264 [INFO] [stdout] 15: 0x557be866f485 - lazy_static::lazy::Lazy::get::hbbbb6c03425d55a5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:30 [INFO] [stdout] 16: 0x557be866f485 - ::deref::__stability::heed2b1695783be64 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs:142 [INFO] [stdout] 17: 0x557be866f485 - ::deref::h935aa6a4e120d528 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs:144 [INFO] [stdout] 18: 0x557be866f083 - rust_app::db::get_connection::h384952069d3b463d [INFO] [stdout] at src/db/mod.rs:30 [INFO] [stdout] 19: 0x557be866f30c - rust_app::db::get_user::h937b07a6332f4e49 [INFO] [stdout] at src/db/mod.rs:61 [INFO] [stdout] 20: 0x557be863e436 - rust_app::db::tests::test_get_user::hca275c50f157d38e [INFO] [stdout] at src/db/mod.rs:95 [INFO] [stdout] 21: 0x557be863e3fa - rust_app::db::tests::test_get_user::{{closure}}::hbd5384f0d10bddad [INFO] [stdout] at src/db/mod.rs:94 [INFO] [stdout] 22: 0x557be8638cae - core::ops::function::FnOnce::call_once::hbb54323ef8d8a22b [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 23: 0x557be86a62ac - as core::ops::function::FnOnce>::call_once::h42148c33ed88c979 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 24: 0x557be86a62ac - as core::ops::function::FnOnce<()>>::call_once::h759dc0b09d774665 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 25: 0x557be86a62ac - std::panicking::try::do_call::h676ad1fc9e9badea [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 26: 0x557be86a62ac - std::panicking::try::hee36a8727a3050b0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 27: 0x557be86a62ac - std::panic::catch_unwind::hd5d426ebd89b2542 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 28: 0x557be86a62ac - test::run_test_in_process::h8dacdba4dc4cbaa5 [INFO] [stdout] at src/libtest/lib.rs:541 [INFO] [stdout] 29: 0x557be86a62ac - test::run_test::run_test_inner::{{closure}}::hf93754afad6be40f [INFO] [stdout] at src/libtest/lib.rs:450 [INFO] [stdout] 30: 0x557be867e226 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2c69fab544a90730 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sys_common/backtrace.rs:130 [INFO] [stdout] 31: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hcf302fafa60d80f2 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:475 [INFO] [stdout] 32: 0x557be86832b5 - as core::ops::function::FnOnce<()>>::call_once::h39ede710608e817e [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 33: 0x557be86832b5 - std::panicking::try::do_call::hec0b4d2faa46fbf7 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 34: 0x557be86832b5 - std::panicking::try::h0144ba3f2539803d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 35: 0x557be86832b5 - std::panic::catch_unwind::ha03e59eb589f857b [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 36: 0x557be86832b5 - std::thread::Builder::spawn_unchecked::{{closure}}::hdeba34620a4a7a44 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:474 [INFO] [stdout] 37: 0x557be86832b5 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h552693dbb801eadd [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 38: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h61c24496ae624ac5 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 39: 0x557be8bcb9ea - as core::ops::function::FnOnce>::call_once::h89548957afa14049 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 40: 0x557be8bcb9ea - std::sys::unix::thread::Thread::new::thread_start::h73903fbbff5b990e [INFO] [stdout] at src/libstd/sys/unix/thread.rs:87 [INFO] [stdout] 41: 0x7f4ffa16f609 - start_thread [INFO] [stdout] 42: 0x7f4ff9f08103 - __clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] db::tests::test_connection [INFO] [stdout] db::tests::test_create_and_delete_user [INFO] [stdout] db::tests::test_get_user [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin rust-app' [INFO] running `Command { std: "docker" "inspect" "7c3056f86457703277bb95f29ff72b4ebf49e06b21faccd40edeadc7384ac126", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c3056f86457703277bb95f29ff72b4ebf49e06b21faccd40edeadc7384ac126", kill_on_drop: false }` [INFO] [stdout] 7c3056f86457703277bb95f29ff72b4ebf49e06b21faccd40edeadc7384ac126