[INFO] cloning repository https://github.com/gasandjalilov/location-service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gasandjalilov/location-service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgasandjalilov%2Flocation-service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgasandjalilov%2Flocation-service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c81c7fcacf4b6c33409a3e147541f9ae42ccb934 [INFO] testing gasandjalilov/location-service against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgasandjalilov%2Flocation-service" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gasandjalilov/location-service [INFO] finished tweaking git repo https://github.com/gasandjalilov/location-service [INFO] tweaked toml for git repo https://github.com/gasandjalilov/location-service written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gasandjalilov/location-service on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gasandjalilov/location-service 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mongodm v0.10.0 [INFO] [stderr] Downloaded derive-where v1.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0106efa47e4487997dd9a41bc4a1151427953696f8a0c2abcfc0654567643fdf [INFO] running `Command { std: "docker" "start" "-a" "0106efa47e4487997dd9a41bc4a1151427953696f8a0c2abcfc0654567643fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0106efa47e4487997dd9a41bc4a1151427953696f8a0c2abcfc0654567643fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0106efa47e4487997dd9a41bc4a1151427953696f8a0c2abcfc0654567643fdf", kill_on_drop: false }` [INFO] [stdout] 0106efa47e4487997dd9a41bc4a1151427953696f8a0c2abcfc0654567643fdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bf01da25e03e4f57d4f96951a225cb65e2c9714ef18775410657f6eb64b68db [INFO] running `Command { std: "docker" "start" "-a" "1bf01da25e03e4f57d4f96951a225cb65e2c9714ef18775410657f6eb64b68db", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling cc v1.2.23 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling derive-where v1.4.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.3 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling bson v2.14.0 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling mongodb v3.2.3 [INFO] [stderr] Compiling mongodm v0.10.0 [INFO] [stderr] Compiling location-service v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::exceptions::api_error::ApiError` [INFO] [stdout] --> src/controllers/location.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::exceptions::api_error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Json` [INFO] [stdout] --> src/exceptions/api_error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::Json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/exceptions/api_error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntoResponse` and `Response` [INFO] [stdout] --> src/exceptions/api_error.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::response::{IntoResponse, Response}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodm::mongo::error::Error` [INFO] [stdout] --> src/exceptions/api_error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodm::mongo::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error as MongoError` [INFO] [stdout] --> src/repositories/location_repository.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodm::mongo::{Database, error::Error as MongoError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `password` are never read [INFO] [stdout] --> src/config/configs.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub username: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/config/database.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MNGDatabase { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | pub client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `error` is never used [INFO] [stdout] --> src/dtos/wrapper.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ApiResponse { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn error(error: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "1bf01da25e03e4f57d4f96951a225cb65e2c9714ef18775410657f6eb64b68db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bf01da25e03e4f57d4f96951a225cb65e2c9714ef18775410657f6eb64b68db", kill_on_drop: false }` [INFO] [stdout] 1bf01da25e03e4f57d4f96951a225cb65e2c9714ef18775410657f6eb64b68db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0cd309a76b071a6c03d5575e3413eb7e85bfc1475605cb1bfc613d2a8e08b1b [INFO] running `Command { std: "docker" "start" "-a" "d0cd309a76b071a6c03d5575e3413eb7e85bfc1475605cb1bfc613d2a8e08b1b", kill_on_drop: false }` [INFO] [stderr] Compiling location-service v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::exceptions::api_error::ApiError` [INFO] [stdout] --> src/controllers/location.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::exceptions::api_error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Json` [INFO] [stdout] --> src/exceptions/api_error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::Json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/exceptions/api_error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntoResponse` and `Response` [INFO] [stdout] --> src/exceptions/api_error.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::response::{IntoResponse, Response}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodm::mongo::error::Error` [INFO] [stdout] --> src/exceptions/api_error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodm::mongo::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error as MongoError` [INFO] [stdout] --> src/repositories/location_repository.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodm::mongo::{Database, error::Error as MongoError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `password` are never read [INFO] [stdout] --> src/config/configs.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub username: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client` is never read [INFO] [stdout] --> src/config/database.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MNGDatabase { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | pub client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `error` is never used [INFO] [stdout] --> src/dtos/wrapper.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ApiResponse { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn error(error: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.17s [INFO] running `Command { std: "docker" "inspect" "d0cd309a76b071a6c03d5575e3413eb7e85bfc1475605cb1bfc613d2a8e08b1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0cd309a76b071a6c03d5575e3413eb7e85bfc1475605cb1bfc613d2a8e08b1b", kill_on_drop: false }` [INFO] [stdout] d0cd309a76b071a6c03d5575e3413eb7e85bfc1475605cb1bfc613d2a8e08b1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 23bfe9731088a6e357e837a8397f86e3b333c38e31a840f1e28da34be92b3fdb [INFO] running `Command { std: "docker" "start" "-a" "23bfe9731088a6e357e837a8397f86e3b333c38e31a840f1e28da34be92b3fdb", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::exceptions::api_error::ApiError` [INFO] [stderr] --> src/controllers/location.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::exceptions::api_error::ApiError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `axum::Json` [INFO] [stderr] --> src/exceptions/api_error.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use axum::Json; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `axum::http::StatusCode` [INFO] [stderr] --> src/exceptions/api_error.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use axum::http::StatusCode; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `IntoResponse` and `Response` [INFO] [stderr] --> src/exceptions/api_error.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use axum::response::{IntoResponse, Response}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mongodm::mongo::error::Error` [INFO] [stderr] --> src/exceptions/api_error.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use mongodm::mongo::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `error::Error as MongoError` [INFO] [stderr] --> src/repositories/location_repository.rs:6:32 [INFO] [stderr] | [INFO] [stderr] 6 | use mongodm::mongo::{Database, error::Error as MongoError}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `username` and `password` are never read [INFO] [stderr] --> src/config/configs.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct DatabaseConfig { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 8 | pub username: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 9 | pub password: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `client` is never read [INFO] [stderr] --> src/config/database.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct MNGDatabase { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 6 | pub client: Client, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `error` is never used [INFO] [stderr] --> src/dtos/wrapper.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl ApiResponse { [INFO] [stderr] | --------------------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn error(error: String) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `location-service` (bin "location-service" test) generated 9 warnings (run `cargo fix --bin "location-service" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/location_service-2f374dc14f0a958d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "23bfe9731088a6e357e837a8397f86e3b333c38e31a840f1e28da34be92b3fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23bfe9731088a6e357e837a8397f86e3b333c38e31a840f1e28da34be92b3fdb", kill_on_drop: false }` [INFO] [stdout] 23bfe9731088a6e357e837a8397f86e3b333c38e31a840f1e28da34be92b3fdb