[INFO] cloning repository https://github.com/apple037/rust-on-k8s [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/apple037/rust-on-k8s" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple037%2Frust-on-k8s", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple037%2Frust-on-k8s'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0826dc850a6c99df534a9a3aac5cc0ce8ffe59d6 [INFO] building apple037/rust-on-k8s against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple037%2Frust-on-k8s" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/apple037/rust-on-k8s on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/apple037/rust-on-k8s [INFO] finished tweaking git repo https://github.com/apple037/rust-on-k8s [INFO] tweaked toml for git repo https://github.com/apple037/rust-on-k8s written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/apple037/rust-on-k8s 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e475f1423868efba25b9b21f5a8e41ce5a70c5d9e12964408b71af6829b05f46 [INFO] running `Command { std: "docker" "start" "-a" "e475f1423868efba25b9b21f5a8e41ce5a70c5d9e12964408b71af6829b05f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e475f1423868efba25b9b21f5a8e41ce5a70c5d9e12964408b71af6829b05f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e475f1423868efba25b9b21f5a8e41ce5a70c5d9e12964408b71af6829b05f46", kill_on_drop: false }` [INFO] [stdout] e475f1423868efba25b9b21f5a8e41ce5a70c5d9e12964408b71af6829b05f46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7094437954fc8067bce19bcf25e84594142a910bf1fdb793eccf37ba061d574f [INFO] running `Command { std: "docker" "start" "-a" "7094437954fc8067bce19bcf25e84594142a910bf1fdb793eccf37ba061d574f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.80 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling rustversion v1.0.15 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling syn v2.0.59 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling winnow v0.6.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling base64 v0.22.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling postgres-protocol v0.6.6 [INFO] [stderr] Compiling postgres-types v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling axum-macros v0.4.1 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling redis v0.25.3 [INFO] [stderr] Compiling hyper v1.3.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling sha256 v1.5.0 [INFO] [stderr] Compiling serde_spanned v0.6.5 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling toml_edit v0.22.9 [INFO] [stderr] Compiling tokio-postgres v0.7.10 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling toml v0.8.12 [INFO] [stderr] Compiling rust-on-k8s v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `extract::Query` and `response::IntoResponse` [INFO] [stdout] --> src/handlers/user_handler.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{extract::Query, http::StatusCode, response::IntoResponse, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonwebtoken::errors::Error` [INFO] [stdout] --> src/handlers/user_handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `to_string` [INFO] [stdout] --> src/handlers/user_handler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value, to_string}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DbConnection` and `execute_delete_query` [INFO] [stdout] --> src/handlers/user_handler.rs:8:135 [INFO] [stdout] | [INFO] [stdout] 8 | ...nsert_user, fetch_insert_id, execute_update_user, execute_delete_query, DbConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user_handler::*` [INFO] [stdout] --> src/handlers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use user_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `Connection`, `ToSql`, and `Type` [INFO] [stdout] --> src/db_connection.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio_postgres::{Config, Connection, NoTls, Error, Row, types::{ToSql, Type}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/db_connection.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/models/user_models.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_string` and `to_json_string` are never used [INFO] [stdout] --> src/models/user_models.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl UserLoginResponse { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn to_json_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user_models.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl CommonResponse { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 149 | pub fn new(message: String, code: String, data: Value) -> CommonResponse { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_query` is never used [INFO] [stdout] --> src/db_connection.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn execute_query(connection: &DbConnection, query: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_delete_query` is never used [INFO] [stdout] --> src/db_connection.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn execute_delete_query(connection: &DbConnection, user_id: &i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revoke_token` is never used [INFO] [stdout] --> src/services/jwt_service.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn revoke_token(_token: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_sha256` is never used [INFO] [stdout] --> src/utils/sha256_util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hash_sha256(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `set_nx` are never used [INFO] [stdout] --> src/redis_instance.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl RedisInstance { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set(&mut self, key: &str, value: &str) -> RedisResult<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_nx(&mut self, key: &str, value: &str) -> RedisResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "7094437954fc8067bce19bcf25e84594142a910bf1fdb793eccf37ba061d574f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7094437954fc8067bce19bcf25e84594142a910bf1fdb793eccf37ba061d574f", kill_on_drop: false }` [INFO] [stdout] 7094437954fc8067bce19bcf25e84594142a910bf1fdb793eccf37ba061d574f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd5f443aaf69fa86628392db0dbc43a41f13b91c8a012b816b8d6fcacb665a78 [INFO] running `Command { std: "docker" "start" "-a" "cd5f443aaf69fa86628392db0dbc43a41f13b91c8a012b816b8d6fcacb665a78", kill_on_drop: false }` [INFO] [stderr] Compiling rust-on-k8s v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `extract::Query` and `response::IntoResponse` [INFO] [stdout] --> src/handlers/user_handler.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::{extract::Query, http::StatusCode, response::IntoResponse, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonwebtoken::errors::Error` [INFO] [stdout] --> src/handlers/user_handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `to_string` [INFO] [stdout] --> src/handlers/user_handler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value, to_string}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DbConnection` and `execute_delete_query` [INFO] [stdout] --> src/handlers/user_handler.rs:8:135 [INFO] [stdout] | [INFO] [stdout] 8 | ...nsert_user, fetch_insert_id, execute_update_user, execute_delete_query, DbConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user_handler::*` [INFO] [stdout] --> src/handlers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use user_handler::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `Connection`, `ToSql`, and `Type` [INFO] [stdout] --> src/db_connection.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio_postgres::{Config, Connection, NoTls, Error, Row, types::{ToSql, Type}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/db_connection.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/user_handler.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/models/user_models.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_string` and `to_json_string` are never used [INFO] [stdout] --> src/models/user_models.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl UserLoginResponse { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn to_json_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user_models.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl CommonResponse { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 149 | pub fn new(message: String, code: String, data: Value) -> CommonResponse { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revoke_token` is never used [INFO] [stdout] --> src/services/jwt_service.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn revoke_token(_token: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_sha256` is never used [INFO] [stdout] --> src/utils/sha256_util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hash_sha256(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `set_nx` are never used [INFO] [stdout] --> src/redis_instance.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl RedisInstance { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set(&mut self, key: &str, value: &str) -> RedisResult<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_nx(&mut self, key: &str, value: &str) -> RedisResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.55s [INFO] running `Command { std: "docker" "inspect" "cd5f443aaf69fa86628392db0dbc43a41f13b91c8a012b816b8d6fcacb665a78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd5f443aaf69fa86628392db0dbc43a41f13b91c8a012b816b8d6fcacb665a78", kill_on_drop: false }` [INFO] [stdout] cd5f443aaf69fa86628392db0dbc43a41f13b91c8a012b816b8d6fcacb665a78