[INFO] cloning repository https://github.com/nicktretyakov/PHPRustAPI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nicktretyakov/PHPRustAPI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicktretyakov%2FPHPRustAPI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicktretyakov%2FPHPRustAPI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d12c9a8779f830a644136a06425d875573691eff [INFO] building nicktretyakov/PHPRustAPI against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicktretyakov%2FPHPRustAPI" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nicktretyakov/PHPRustAPI [INFO] finished tweaking git repo https://github.com/nicktretyakov/PHPRustAPI [INFO] tweaked toml for git repo https://github.com/nicktretyakov/PHPRustAPI written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nicktretyakov/PHPRustAPI on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nicktretyakov/PHPRustAPI 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.97 [INFO] [stderr] Downloaded rustversion v1.0.22 [INFO] [stderr] Downloaded pin-project-internal v1.1.10 [INFO] [stderr] Downloaded tracing-actix-web v0.7.19 [INFO] [stderr] Downloaded tracing-attributes v0.1.30 [INFO] [stderr] Downloaded humantime v2.2.0 [INFO] [stderr] Downloaded slab v0.4.11 [INFO] [stderr] Downloaded hermit-abi v0.5.2 [INFO] [stderr] Downloaded is-terminal v0.4.16 [INFO] [stderr] Downloaded pin-project v1.1.10 [INFO] [stderr] Downloaded anyhow v1.0.99 [INFO] [stderr] Downloaded jsonwebtoken v8.3.0 [INFO] [stderr] Downloaded socket2 v0.6.0 [INFO] [stderr] Downloaded flate2 v1.1.2 [INFO] [stderr] Downloaded rand v0.9.2 [INFO] [stderr] Downloaded hashbrown v0.15.5 [INFO] [stderr] Downloaded tokio-util v0.7.16 [INFO] [stderr] Downloaded h2 v0.3.27 [INFO] [stderr] Downloaded actix-http v3.11.0 [INFO] [stderr] Downloaded brotli-decompressor v5.0.0 [INFO] [stderr] Downloaded serde_json v1.0.142 [INFO] [stderr] Downloaded actix-web v4.11.0 [INFO] [stderr] Downloaded cc v1.2.32 [INFO] [stderr] Downloaded zerovec v0.11.4 [INFO] [stderr] Downloaded io-uring v0.7.9 [INFO] [stderr] Downloaded crc32fast v1.5.0 [INFO] [stderr] Downloaded signal-hook-registry v1.4.6 [INFO] [stderr] Downloaded actix-server v2.6.0 [INFO] [stderr] Downloaded thiserror v2.0.14 [INFO] [stderr] Downloaded jobserver v0.1.33 [INFO] [stderr] Downloaded rustc-demangle v0.1.26 [INFO] [stderr] Downloaded redox_syscall v0.5.17 [INFO] [stderr] Downloaded thiserror-impl v2.0.14 [INFO] [stderr] Downloaded mutually_exclusive_features v0.1.0 [INFO] [stderr] Downloaded thread_local v1.1.9 [INFO] [stderr] Downloaded brotli v8.0.1 [INFO] [stderr] Downloaded libc v0.2.175 [INFO] [stderr] Downloaded tokio v1.47.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57572113d866542df332e889f5f76a113de4386a4999209b63659e78cd3145e9 [INFO] running `Command { std: "docker" "start" "-a" "57572113d866542df332e889f5f76a113de4386a4999209b63659e78cd3145e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57572113d866542df332e889f5f76a113de4386a4999209b63659e78cd3145e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57572113d866542df332e889f5f76a113de4386a4999209b63659e78cd3145e9", kill_on_drop: false }` [INFO] [stdout] 57572113d866542df332e889f5f76a113de4386a4999209b63659e78cd3145e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 141899667de8c8a210dbf8eb18ebf6ac040eb8385a8034fab741c2c2fc27f117 [INFO] running `Command { std: "docker" "start" "-a" "141899667de8c8a210dbf8eb18ebf6ac040eb8385a8034fab741c2c2fc27f117", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling mutually_exclusive_features v0.1.0 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling derive_more v2.0.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_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling chrono v0.4.41 [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 jsonwebtoken v8.3.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling tracing-actix-web v0.7.19 [INFO] [stderr] Compiling device-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/models/request.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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: `Deserialize` [INFO] [stdout] --> src/models/response.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/services/ml_service.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/services/ml_service.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/services/device_service.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpdateDeviceRequest` [INFO] [stdout] --> src/handlers/device_handlers.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | ProcessDataRequest, PredictRequest, PredictionResponse, UpdateDeviceRequest [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/middleware/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/auth_handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/middleware/auth.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{HttpRequest, dev::ServiceRequest, HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceData` is never constructed [INFO] [stdout] --> src/models/device.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct DeviceData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceMetrics` is never constructed [INFO] [stdout] --> src/models/device.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct DeviceMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `device_id` is never read [INFO] [stdout] --> src/models/request.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct InitializeDeviceRequest { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 6 | pub device_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InitializeDeviceRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateDeviceRequest` is never constructed [INFO] [stdout] --> src/models/request.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UpdateDeviceRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `model_type` is never read [INFO] [stdout] --> src/models/request.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PredictRequest { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub model_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PredictRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `database_url`, `log_level`, and `max_connections` are never read [INFO] [stdout] --> src/config/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub database_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub log_level: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | pub max_connections: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `batch_predict` and `save_model` are never used [INFO] [stdout] --> src/services/ml_service.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl MLModel { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn batch_predict(&self, inputs: &[Vec]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn save_model>(&self, _path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `batch_process` is never used [INFO] [stdout] --> src/services/ml_service.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 107 | impl MLService { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub async fn batch_process(&self, data_batch: &[Vec]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `extract_role` is never used [INFO] [stdout] --> src/services/auth_service.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl AuthService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn extract_role(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_token_from_service_request` is never used [INFO] [stdout] --> src/middleware/auth.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn extract_token_from_service_request(req: &ServiceRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "141899667de8c8a210dbf8eb18ebf6ac040eb8385a8034fab741c2c2fc27f117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "141899667de8c8a210dbf8eb18ebf6ac040eb8385a8034fab741c2c2fc27f117", kill_on_drop: false }` [INFO] [stdout] 141899667de8c8a210dbf8eb18ebf6ac040eb8385a8034fab741c2c2fc27f117 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ce91032fb78e12888234d44ed90edfa95b4bb5f82b13c1ece4456d8ff8f4eb3 [INFO] running `Command { std: "docker" "start" "-a" "4ce91032fb78e12888234d44ed90edfa95b4bb5f82b13c1ece4456d8ff8f4eb3", kill_on_drop: false }` [INFO] [stderr] Compiling device-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/models/request.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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: `Deserialize` [INFO] [stdout] --> src/models/response.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/services/ml_service.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/services/ml_service.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/services/device_service.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpdateDeviceRequest` [INFO] [stdout] --> src/handlers/device_handlers.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | ProcessDataRequest, PredictRequest, PredictionResponse, UpdateDeviceRequest [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/middleware/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers/auth_handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/middleware/auth.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{HttpRequest, dev::ServiceRequest, HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceData` is never constructed [INFO] [stdout] --> src/models/device.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct DeviceData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceMetrics` is never constructed [INFO] [stdout] --> src/models/device.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct DeviceMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `device_id` is never read [INFO] [stdout] --> src/models/request.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct InitializeDeviceRequest { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 6 | pub device_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InitializeDeviceRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateDeviceRequest` is never constructed [INFO] [stdout] --> src/models/request.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UpdateDeviceRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `model_type` is never read [INFO] [stdout] --> src/models/request.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PredictRequest { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub model_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PredictRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `database_url`, `log_level`, and `max_connections` are never read [INFO] [stdout] --> src/config/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub database_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub log_level: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | pub max_connections: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `batch_predict` and `save_model` are never used [INFO] [stdout] --> src/services/ml_service.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl MLModel { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn batch_predict(&self, inputs: &[Vec]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn save_model>(&self, _path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `batch_process` is never used [INFO] [stdout] --> src/services/ml_service.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 107 | impl MLService { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub async fn batch_process(&self, data_batch: &[Vec]) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `extract_role` is never used [INFO] [stdout] --> src/services/auth_service.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl AuthService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn extract_role(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_token_from_service_request` is never used [INFO] [stdout] --> src/middleware/auth.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn extract_token_from_service_request(req: &ServiceRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.89s [INFO] running `Command { std: "docker" "inspect" "4ce91032fb78e12888234d44ed90edfa95b4bb5f82b13c1ece4456d8ff8f4eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ce91032fb78e12888234d44ed90edfa95b4bb5f82b13c1ece4456d8ff8f4eb3", kill_on_drop: false }` [INFO] [stdout] 4ce91032fb78e12888234d44ed90edfa95b4bb5f82b13c1ece4456d8ff8f4eb3