[INFO] cloning repository https://github.com/dikaheni89/rust-backend-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dikaheni89/rust-backend-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdikaheni89%2Frust-backend-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdikaheni89%2Frust-backend-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d8d059b23d558a5f01a7562e312251f7fef95ae9 [INFO] testing dikaheni89/rust-backend-starter against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdikaheni89%2Frust-backend-starter" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dikaheni89/rust-backend-starter [INFO] finished tweaking git repo https://github.com/dikaheni89/rust-backend-starter [INFO] tweaked toml for git repo https://github.com/dikaheni89/rust-backend-starter written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dikaheni89/rust-backend-starter on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dikaheni89/rust-backend-starter 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04a82afe75225e3d9cecc6dc13ec4bf66c280913e73882771d4913ace1922740 [INFO] running `Command { std: "docker" "start" "-a" "04a82afe75225e3d9cecc6dc13ec4bf66c280913e73882771d4913ace1922740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04a82afe75225e3d9cecc6dc13ec4bf66c280913e73882771d4913ace1922740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04a82afe75225e3d9cecc6dc13ec4bf66c280913e73882771d4913ace1922740", kill_on_drop: false }` [INFO] [stdout] 04a82afe75225e3d9cecc6dc13ec4bf66c280913e73882771d4913ace1922740 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2de373cc1273768924facc8f72e42708279cd1fbcc0601a35fb30e055e48f43f [INFO] running `Command { std: "docker" "start" "-a" "2de373cc1273768924facc8f72e42708279cd1fbcc0601a35fb30e055e48f43f", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [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 actix-http v3.11.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling rust-backend-starter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Buffer(Vec); [INFO] [stdout] | ------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_cli` is never used [INFO] [stdout] --> src/application/cli/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run_cli() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_web_interface` is never used [INFO] [stdout] --> src/application/web/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run_web_interface() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_user` is never used [INFO] [stdout] --> src/business/services/user_service.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl UserService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn create_user(name: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserUseCase` is never constructed [INFO] [stdout] --> src/business/usecase/create_user.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CreateUserUseCase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute` is never used [INFO] [stdout] --> src/business/usecase/create_user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl CreateUserUseCase { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 7 | pub fn execute(name: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/infrastructure/concurrency/thread_pool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ThreadPool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/infrastructure/concurrency/thread_pool.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn execute(&self, job: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_async` is never used [INFO] [stdout] --> src/infrastructure/concurrency/async_rt.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn spawn_async(fut: F) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel_mpsc` is never used [INFO] [stdout] --> src/infrastructure/concurrency/channel.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn channel_mpsc() -> (mpsc::Sender, mpsc::Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel_oneshot` is never used [INFO] [stdout] --> src/infrastructure/concurrency/channel.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn channel_oneshot() -> (oneshot::Sender, oneshot::Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Cache` is never used [INFO] [stdout] --> src/infrastructure/memory/cache.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Cache = Arc>>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_cache` is never used [INFO] [stdout] --> src/infrastructure/memory/cache.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new_cache() -> Cache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ObjectPool` is never constructed [INFO] [stdout] --> src/infrastructure/memory/pool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ObjectPool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/memory/pool.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ObjectPool { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Buffer` is never constructed [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Buffer(Vec); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Buffer { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 6 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/infrastructure/io/file_io.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn write_file(path: &str, content: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/infrastructure/io/file_io.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn read_file(path: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_tcp` is never used [INFO] [stdout] --> src/infrastructure/io/net_io.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn connect_tcp(_addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_stream` is never used [INFO] [stdout] --> src/infrastructure/io/stream.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn process_stream(input: I, mut f: F) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_diesel` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/diesel.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_diesel() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_sqlx` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/sqlx.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_sqlx() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_seaorm` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/seaorm.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_seaorm() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_query` is never used [INFO] [stdout] --> src/infrastructure/storage/query.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn build_query(_table: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/infrastructure/storage/migrate.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn run_migrations() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pool` is never used [INFO] [stdout] --> src/infrastructure/storage/conn_pool.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn get_pool() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store_blob` is never used [INFO] [stdout] --> src/infrastructure/storage/blob.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn store_blob(_data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_config` is never used [INFO] [stdout] --> src/infrastructure/storage/config.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn load_config() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/core/error.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metrics` is never constructed [INFO] [stdout] --> src/core/metrics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Metrics; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `inc_request_count` and `record_latency` are never used [INFO] [stdout] --> src/core/metrics.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Metrics { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 6 | pub fn inc_request_count() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn record_latency(_latency_ms: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email` is never used [INFO] [stdout] --> src/core/validation.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn validate_email(email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExternalDb` is never constructed [INFO] [stdout] --> src/external/ext_db.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ExternalDb; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect` and `query` are never used [INFO] [stdout] --> src/external/ext_db.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ExternalDb { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 6 | pub fn connect(_url: &str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn query(&self, _q: &str) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExternalApi` is never constructed [INFO] [stdout] --> src/external/ext_api.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ExternalApi; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `call_api` is never used [INFO] [stdout] --> src/external/ext_api.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl ExternalApi { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 6 | pub async fn call_api(_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_external_file` is never used [INFO] [stdout] --> src/external/file_sys.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_external_file(path: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_external_file` is never used [INFO] [stdout] --> src/external/file_sys.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn write_external_file(path: &str, content: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ping_host` is never used [INFO] [stdout] --> src/external/network.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ping_host(host: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 51s [INFO] running `Command { std: "docker" "inspect" "2de373cc1273768924facc8f72e42708279cd1fbcc0601a35fb30e055e48f43f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2de373cc1273768924facc8f72e42708279cd1fbcc0601a35fb30e055e48f43f", kill_on_drop: false }` [INFO] [stdout] 2de373cc1273768924facc8f72e42708279cd1fbcc0601a35fb30e055e48f43f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7bcf5df38ab760a1e8b2ca7a631e4eb7c4cfd0cd78d0ab4e01c325ac4814acb7 [INFO] running `Command { std: "docker" "start" "-a" "7bcf5df38ab760a1e8b2ca7a631e4eb7c4cfd0cd78d0ab4e01c325ac4814acb7", kill_on_drop: false }` [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Buffer(Vec); [INFO] [stdout] | ------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-backend-starter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `run_cli` is never used [INFO] [stdout] --> src/application/cli/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run_cli() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_web_interface` is never used [INFO] [stdout] --> src/application/web/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run_web_interface() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_user` is never used [INFO] [stdout] --> src/business/services/user_service.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl UserService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn create_user(name: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserUseCase` is never constructed [INFO] [stdout] --> src/business/usecase/create_user.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CreateUserUseCase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute` is never used [INFO] [stdout] --> src/business/usecase/create_user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl CreateUserUseCase { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 7 | pub fn execute(name: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/infrastructure/concurrency/thread_pool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ThreadPool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/infrastructure/concurrency/thread_pool.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn execute(&self, job: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_async` is never used [INFO] [stdout] --> src/infrastructure/concurrency/async_rt.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn spawn_async(fut: F) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel_mpsc` is never used [INFO] [stdout] --> src/infrastructure/concurrency/channel.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn channel_mpsc() -> (mpsc::Sender, mpsc::Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel_oneshot` is never used [INFO] [stdout] --> src/infrastructure/concurrency/channel.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn channel_oneshot() -> (oneshot::Sender, oneshot::Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Cache` is never used [INFO] [stdout] --> src/infrastructure/memory/cache.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Cache = Arc>>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_cache` is never used [INFO] [stdout] --> src/infrastructure/memory/cache.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new_cache() -> Cache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ObjectPool` is never constructed [INFO] [stdout] --> src/infrastructure/memory/pool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ObjectPool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/memory/pool.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ObjectPool { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Buffer` is never constructed [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Buffer(Vec); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Buffer { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 6 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_file` is never used [INFO] [stdout] --> src/infrastructure/io/file_io.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn write_file(path: &str, content: &[u8]) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/infrastructure/io/file_io.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn read_file(path: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_tcp` is never used [INFO] [stdout] --> src/infrastructure/io/net_io.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn connect_tcp(_addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_stream` is never used [INFO] [stdout] --> src/infrastructure/io/stream.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn process_stream(input: I, mut f: F) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_diesel` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/diesel.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_diesel() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_sqlx` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/sqlx.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_sqlx() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_seaorm` is never used [INFO] [stdout] --> src/infrastructure/storage/orm/seaorm.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn connect_seaorm() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_query` is never used [INFO] [stdout] --> src/infrastructure/storage/query.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn build_query(_table: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_migrations` is never used [INFO] [stdout] --> src/infrastructure/storage/migrate.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn run_migrations() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pool` is never used [INFO] [stdout] --> src/infrastructure/storage/conn_pool.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn get_pool() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store_blob` is never used [INFO] [stdout] --> src/infrastructure/storage/blob.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn store_blob(_data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_config` is never used [INFO] [stdout] --> src/infrastructure/storage/config.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn load_config() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/core/error.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metrics` is never constructed [INFO] [stdout] --> src/core/metrics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Metrics; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `inc_request_count` and `record_latency` are never used [INFO] [stdout] --> src/core/metrics.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Metrics { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 6 | pub fn inc_request_count() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn record_latency(_latency_ms: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email` is never used [INFO] [stdout] --> src/core/validation.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn validate_email(email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExternalDb` is never constructed [INFO] [stdout] --> src/external/ext_db.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ExternalDb; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect` and `query` are never used [INFO] [stdout] --> src/external/ext_db.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ExternalDb { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 6 | pub fn connect(_url: &str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn query(&self, _q: &str) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExternalApi` is never constructed [INFO] [stdout] --> src/external/ext_api.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ExternalApi; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `call_api` is never used [INFO] [stdout] --> src/external/ext_api.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 5 | impl ExternalApi { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 6 | pub async fn call_api(_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_external_file` is never used [INFO] [stdout] --> src/external/file_sys.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_external_file(path: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_external_file` is never used [INFO] [stdout] --> src/external/file_sys.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn write_external_file(path: &str, content: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ping_host` is never used [INFO] [stdout] --> src/external/network.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ping_host(host: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/infrastructure/memory/buffer.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Buffer(Vec); [INFO] [stdout] | ------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "7bcf5df38ab760a1e8b2ca7a631e4eb7c4cfd0cd78d0ab4e01c325ac4814acb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bcf5df38ab760a1e8b2ca7a631e4eb7c4cfd0cd78d0ab4e01c325ac4814acb7", kill_on_drop: false }` [INFO] [stdout] 7bcf5df38ab760a1e8b2ca7a631e4eb7c4cfd0cd78d0ab4e01c325ac4814acb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c0cb39473f4cb78d59274f74e77b7acfd1a6b11b336f94eb83ac2ac64849cb03 [INFO] running `Command { std: "docker" "start" "-a" "c0cb39473f4cb78d59274f74e77b7acfd1a6b11b336f94eb83ac2ac64849cb03", kill_on_drop: false }` [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/infrastructure/memory/buffer.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Buffer(Vec); [INFO] [stderr] | ------ ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-backend-starter` (lib) generated 1 warning [INFO] [stderr] warning: `rust-backend-starter` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] warning: function `run_cli` is never used [INFO] [stderr] --> src/application/cli/mod.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn run_cli() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `run_web_interface` is never used [INFO] [stderr] --> src/application/web/mod.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn run_web_interface() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `create_user` is never used [INFO] [stderr] --> src/business/services/user_service.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl UserService { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 12 | pub fn create_user(name: String, email: String) -> User { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CreateUserUseCase` is never constructed [INFO] [stderr] --> src/business/usecase/create_user.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct CreateUserUseCase; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `execute` is never used [INFO] [stderr] --> src/business/usecase/create_user.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 6 | impl CreateUserUseCase { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 7 | pub fn execute(name: String, email: String) -> User { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ThreadPool` is never constructed [INFO] [stderr] --> src/infrastructure/concurrency/thread_pool.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct ThreadPool; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `execute` are never used [INFO] [stderr] --> src/infrastructure/concurrency/thread_pool.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ThreadPool { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 6 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 9 | pub fn execute(&self, job: F) [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `spawn_async` is never used [INFO] [stderr] --> src/infrastructure/concurrency/async_rt.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn spawn_async(fut: F) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `channel_mpsc` is never used [INFO] [stderr] --> src/infrastructure/concurrency/channel.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn channel_mpsc() -> (mpsc::Sender, mpsc::Receiver) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `channel_oneshot` is never used [INFO] [stderr] --> src/infrastructure/concurrency/channel.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn channel_oneshot() -> (oneshot::Sender, oneshot::Receiver) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `Cache` is never used [INFO] [stderr] --> src/infrastructure/memory/cache.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | pub type Cache = Arc>>; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `new_cache` is never used [INFO] [stderr] --> src/infrastructure/memory/cache.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn new_cache() -> Cache { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ObjectPool` is never constructed [INFO] [stderr] --> src/infrastructure/memory/pool.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct ObjectPool; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/infrastructure/memory/pool.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ObjectPool { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 6 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Buffer` is never constructed [INFO] [stderr] --> src/infrastructure/memory/buffer.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Buffer(Vec); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/infrastructure/memory/buffer.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl Buffer { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 6 | pub fn new(size: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_file` is never used [INFO] [stderr] --> src/infrastructure/io/file_io.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn write_file(path: &str, content: &[u8]) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_file` is never used [INFO] [stderr] --> src/infrastructure/io/file_io.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn read_file(path: &str) -> io::Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `connect_tcp` is never used [INFO] [stderr] --> src/infrastructure/io/net_io.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn connect_tcp(_addr: &str) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `process_stream` is never used [INFO] [stderr] --> src/infrastructure/io/stream.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn process_stream(input: I, mut f: F) [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `connect_diesel` is never used [INFO] [stderr] --> src/infrastructure/storage/orm/diesel.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn connect_diesel() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `connect_sqlx` is never used [INFO] [stderr] --> src/infrastructure/storage/orm/sqlx.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn connect_sqlx() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `connect_seaorm` is never used [INFO] [stderr] --> src/infrastructure/storage/orm/seaorm.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn connect_seaorm() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_query` is never used [INFO] [stderr] --> src/infrastructure/storage/query.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn build_query(_table: &str) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_migrations` is never used [INFO] [stderr] --> src/infrastructure/storage/migrate.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn run_migrations() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_pool` is never used [INFO] [stderr] --> src/infrastructure/storage/conn_pool.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn get_pool() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `store_blob` is never used [INFO] [stderr] --> src/infrastructure/storage/blob.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn store_blob(_data: &[u8]) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_config` is never used [INFO] [stderr] --> src/infrastructure/storage/config.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn load_config() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `AppError` is never used [INFO] [stderr] --> src/core/error.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum AppError { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Metrics` is never constructed [INFO] [stderr] --> src/core/metrics.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Metrics; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `inc_request_count` and `record_latency` are never used [INFO] [stderr] --> src/core/metrics.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl Metrics { [INFO] [stderr] | ------------ associated functions in this implementation [INFO] [stderr] 6 | pub fn inc_request_count() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | pub fn record_latency(_latency_ms: u64) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `validate_email` is never used [INFO] [stderr] --> src/core/validation.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn validate_email(email: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ExternalDb` is never constructed [INFO] [stderr] --> src/external/ext_db.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct ExternalDb; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `connect` and `query` are never used [INFO] [stderr] --> src/external/ext_db.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl ExternalDb { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 6 | pub fn connect(_url: &str) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 12 | pub fn query(&self, _q: &str) -> String { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ExternalApi` is never constructed [INFO] [stderr] --> src/external/ext_api.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct ExternalApi; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `call_api` is never used [INFO] [stderr] --> src/external/ext_api.rs:6:18 [INFO] [stderr] | [INFO] [stderr] 5 | impl ExternalApi { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 6 | pub async fn call_api(_url: &str) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_external_file` is never used [INFO] [stderr] --> src/external/file_sys.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn read_external_file(path: &str) -> std::io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `write_external_file` is never used [INFO] [stderr] --> src/external/file_sys.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn write_external_file(path: &str, content: &str) -> std::io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ping_host` is never used [INFO] [stderr] --> src/external/network.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn ping_host(host: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-backend-starter` (bin "rust-backend-starter" test) generated 39 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_backend_starter-fd8b9bc8f22f0b30) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_backend_starter-e27cf838d307e006) [INFO] [stderr] Doc-tests rust_backend_starter [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] [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" "c0cb39473f4cb78d59274f74e77b7acfd1a6b11b336f94eb83ac2ac64849cb03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0cb39473f4cb78d59274f74e77b7acfd1a6b11b336f94eb83ac2ac64849cb03", kill_on_drop: false }` [INFO] [stdout] c0cb39473f4cb78d59274f74e77b7acfd1a6b11b336f94eb83ac2ac64849cb03