[INFO] fetching crate rustisan 0.0.1... [INFO] testing rustisan-0.0.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate rustisan 0.0.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate rustisan 0.0.1 [INFO] finished tweaking crates.io crate rustisan 0.0.1 [INFO] tweaked toml for crates.io crate rustisan 0.0.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustisan 0.0.1 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 crates.io crate rustisan 0.0.1 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] 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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 029d0f27e3d36d098126c1752280fe977fb446c417dd5eee80526b9d9b90ca78 [INFO] running `Command { std: "docker" "start" "-a" "029d0f27e3d36d098126c1752280fe977fb446c417dd5eee80526b9d9b90ca78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "029d0f27e3d36d098126c1752280fe977fb446c417dd5eee80526b9d9b90ca78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "029d0f27e3d36d098126c1752280fe977fb446c417dd5eee80526b9d9b90ca78", kill_on_drop: false }` [INFO] [stdout] 029d0f27e3d36d098126c1752280fe977fb446c417dd5eee80526b9d9b90ca78 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c629556e45390e5aa85d92a1b997f821ddc03af19df3ece74ed53b7d4e42906b [INFO] running `Command { std: "docker" "start" "-a" "c629556e45390e5aa85d92a1b997f821ddc03af19df3ece74ed53b7d4e42906b", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling clap_builder v4.5.41 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling xattr v1.5.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [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 thiserror-impl v2.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling clap v4.5.41 [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 serde v1.0.219 [INFO] [stderr] Compiling pest_meta v2.8.1 [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 pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.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 tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling handlebars v4.5.0 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rustisan v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: named argument `name` is not used by name [INFO] [stdout] --> src/commands/migrate.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 89 | r#"//! Migration: {} [INFO] [stdout] | -- this formatting argument uses named argument `name` by position [INFO] [stdout] ... [INFO] [stdout] 111 | name = name, [INFO] [stdout] | ^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 89 | r#"//! Migration: {name} [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `migration_class` is not used by name [INFO] [stdout] --> src/commands/migrate.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 90 | //! Created: {} [INFO] [stdout] | -- this formatting argument uses named argument `migration_class` by position [INFO] [stdout] ... [INFO] [stdout] 112 | migration_class = CommandUtils::to_pascal_case(&name), [INFO] [stdout] | ^^^^^^^^^^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 90 | //! Created: {migration_class} [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GeneratorOptions` [INFO] [stdout] --> src/commands/make.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::generators::{TemplateManager, GeneratorOptions}; [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: `std::thread` [INFO] [stdout] --> src/commands/serve.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/seed.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/deploy.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/dev.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CacheCommands`, `ConfigCommands`, `DbCommands`, `DevCommands`, `MakeCommands`, `MigrateCommands`, `PackageCommands`, `QueueCommands`, and `RouteCommands` [INFO] [stdout] --> src/commands/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | DbCommands, MakeCommands, MigrateCommands, RouteCommands, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 26 | CacheCommands, QueueCommands, ConfigCommands, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | PackageCommands, DevCommands [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `commands::*` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use commands::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_name` [INFO] [stdout] --> src/commands/make.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let class_name = CommandUtils::to_pascal_case(&name); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/commands/make.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/commands/make.rs:148:63 [INFO] [stdout] | [INFO] [stdout] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/commands/make.rs:500:38 [INFO] [stdout] | [INFO] [stdout] 500 | async fn make_listener(name: String, event: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/commands/make.rs:512:36 [INFO] [stdout] | [INFO] [stdout] 512 | async fn make_policy(name: String, model: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_vars` [INFO] [stdout] --> src/commands/make.rs:529:9 [INFO] [stdout] | [INFO] [stdout] 529 | let template_vars = serde_json::json!({ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/commands/db.rs:293:35 [INFO] [stdout] | [INFO] [stdout] 293 | async fn create_postgres_database(db_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/commands/db.rs:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | async fn drop_postgres_database(db_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> src/commands/db.rs:307:35 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/commands/db.rs:307:47 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/commands/db.rs:307:59 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `job` [INFO] [stdout] --> src/commands/queue.rs:235:22 [INFO] [stdout] | [INFO] [stdout] 235 | async fn process_job(job: &Job) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `job` [INFO] [stdout] --> src/commands/queue.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/commands/queue.rs:248:40 [INFO] [stdout] | [INFO] [stdout] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | async fn deploy_aws(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:305:21 [INFO] [stdout] | [INFO] [stdout] 305 | async fn deploy_gcp(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:322:23 [INFO] [stdout] | [INFO] [stdout] 322 | async fn deploy_azure(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_command` [INFO] [stdout] --> src/commands/dev.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let server_command = format!("cargo run -- serve --host {} --port {} --reload", host, port); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_dir` [INFO] [stdout] --> src/commands/make.rs:612:23 [INFO] [stdout] | [INFO] [stdout] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `component_name` [INFO] [stdout] --> src/commands/make.rs:612:41 [INFO] [stdout] | [INFO] [stdout] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/commands/package.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version` [INFO] [stdout] --> src/commands/package.rs:192:45 [INFO] [stdout] | [INFO] [stdout] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/commands/package.rs:198:38 [INFO] [stdout] | [INFO] [stdout] 198 | fn remove_dependency_from_cargo_toml(name: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute_command` is never used [INFO] [stdout] --> src/commands/mod.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl CommandUtils { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn execute_command(cmd: &str, args: &[&str]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_server_health` is never used [INFO] [stdout] --> src/commands/serve.rs:195:14 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn check_server_health(host: &str, port: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_server` is never used [INFO] [stdout] --> src/commands/serve.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn wait_for_server(host: &str, port: u16, timeout_seconds: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_server_info` is never used [INFO] [stdout] --> src/commands/serve.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn display_server_info(host: &str, port: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_local_ip` is never used [INFO] [stdout] --> src/commands/serve.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn get_local_ip() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_type`, `payload`, `queue`, and `attempts` are never read [INFO] [stdout] --> src/commands/queue.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 200 | struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 201 | id: String, [INFO] [stdout] 202 | job_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 203 | payload: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 204 | queue: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 205 | attempts: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` 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: field `payload` is never read [INFO] [stdout] --> src/commands/queue.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 209 | struct FailedJob { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 212 | payload: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FailedJob` 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: function `run_unit_tests` is never used [INFO] [stdout] --> src/commands/test.rs:167:14 [INFO] [stdout] | [INFO] [stdout] 167 | pub async fn run_unit_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_integration_tests` is never used [INFO] [stdout] --> src/commands/test.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | pub async fn run_integration_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_benchmark_tests` is never used [INFO] [stdout] --> src/commands/test.rs:199:14 [INFO] [stdout] | [INFO] [stdout] 199 | pub async fn run_benchmark_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `watch_tests` is never used [INFO] [stdout] --> src/commands/test.rs:216:14 [INFO] [stdout] | [INFO] [stdout] 216 | pub async fn watch_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_production` is never used [INFO] [stdout] --> src/commands/build.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn build_production() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_development` is never used [INFO] [stdout] --> src/commands/build.rs:286:14 [INFO] [stdout] | [INFO] [stdout] 286 | pub async fn build_development() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_target` is never used [INFO] [stdout] --> src/commands/build.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | pub async fn build_target(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `port` is never read [INFO] [stdout] --> src/commands/deploy.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct DeploymentConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 71 | port: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeploymentConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_deployment_config` is never used [INFO] [stdout] --> src/commands/deploy.rs:392:14 [INFO] [stdout] | [INFO] [stdout] 392 | pub async fn create_deployment_config(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `description` is never read [INFO] [stdout] --> src/commands/package.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 166 | struct PackageInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PackageInfo` 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: function `search_packages` is never used [INFO] [stdout] --> src/commands/package.rs:320:14 [INFO] [stdout] | [INFO] [stdout] 320 | pub async fn search_packages(query: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_outdated` is never used [INFO] [stdout] --> src/commands/package.rs:339:14 [INFO] [stdout] | [INFO] [stdout] 339 | pub async fn check_outdated() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_all_checks` is never used [INFO] [stdout] --> src/commands/dev.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | pub async fn run_all_checks() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_tests` is never used [INFO] [stdout] --> src/commands/dev.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | async fn run_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_dev_environment` is never used [INFO] [stdout] --> src/commands/dev.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn setup_dev_environment() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dev_config_files` is never used [INFO] [stdout] --> src/commands/dev.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | async fn create_dev_config_files() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `profile_app` is never used [INFO] [stdout] --> src/commands/dev.rs:303:14 [INFO] [stdout] | [INFO] [stdout] 303 | pub async fn profile_app() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `benchmark` is never used [INFO] [stdout] --> src/commands/dev.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | pub async fn benchmark() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Generator` is never used [INFO] [stdout] --> src/generators/mod.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait Generator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneratorOptions` is never constructed [INFO] [stdout] --> src/generators/mod.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct GeneratorOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_template` is never used [INFO] [stdout] --> src/generators/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl TemplateManager { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn has_template(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneratorUtils` is never constructed [INFO] [stdout] --> src/generators/mod.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct GeneratorUtils; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `name_variations`, `check_file_exists`, `ensure_directory`, `write_file`, and `update_module_file` are never used [INFO] [stdout] --> src/generators/mod.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl GeneratorUtils { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 113 | /// Convert name to various cases [INFO] [stdout] 114 | pub fn name_variations(name: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn check_file_exists(path: &Path, force: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn ensure_directory(path: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn write_file(path: &Path, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn update_module_file(module_dir: &Path, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_camel_case` is never used [INFO] [stdout] --> src/generators/mod.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn to_camel_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_kebab_case` is never used [INFO] [stdout] --> src/generators/mod.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn to_kebab_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_title_case` is never used [INFO] [stdout] --> src/generators/mod.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn to_title_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pluralize` is never used [INFO] [stdout] --> src/generators/mod.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn pluralize(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `singularize` is never used [INFO] [stdout] --> src/generators/mod.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn singularize(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileUtils` is never constructed [INFO] [stdout] --> src/utils.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FileUtils; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileUtils { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 15 | /// Check if a file exists [INFO] [stdout] 16 | pub fn exists>(path: P) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn ensure_dir>(path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn copy_file, Q: AsRef>(from: P, to: Q) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write_file>(path: P, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn read_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn find_files_with_extension>(dir: P, extension: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn file_stem>(path: P) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcessUtils` is never constructed [INFO] [stdout] --> src/utils.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct ProcessUtils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `command_exists`, `execute`, and `execute_with_output` are never used [INFO] [stdout] --> src/utils.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ProcessUtils { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 90 | /// Check if a command exists in PATH [INFO] [stdout] 91 | pub fn command_exists(command: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn execute(command: &str, args: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn execute_with_output(command: &str, args: &[&str]) -> Result<(bool, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TextUtils` is never constructed [INFO] [stdout] --> src/utils.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct TextUtils; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `capitalize` is never used [INFO] [stdout] --> src/utils.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl TextUtils { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 125 | /// Capitalize first letter [INFO] [stdout] 126 | pub fn capitalize(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 50s [INFO] running `Command { std: "docker" "inspect" "c629556e45390e5aa85d92a1b997f821ddc03af19df3ece74ed53b7d4e42906b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c629556e45390e5aa85d92a1b997f821ddc03af19df3ece74ed53b7d4e42906b", kill_on_drop: false }` [INFO] [stdout] c629556e45390e5aa85d92a1b997f821ddc03af19df3ece74ed53b7d4e42906b [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38a5162464c5eb0b6b0d1d2e53d975ade67f0398c15bc1b064fde959b40bb948 [INFO] running `Command { std: "docker" "start" "-a" "38a5162464c5eb0b6b0d1d2e53d975ade67f0398c15bc1b064fde959b40bb948", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling assert_cmd v2.0.17 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling xattr v1.5.1 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling rustisan v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: named argument `name` is not used by name [INFO] [stdout] --> src/commands/migrate.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 89 | r#"//! Migration: {} [INFO] [stdout] | -- this formatting argument uses named argument `name` by position [INFO] [stdout] ... [INFO] [stdout] 111 | name = name, [INFO] [stdout] | ^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 89 | r#"//! Migration: {name} [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `migration_class` is not used by name [INFO] [stdout] --> src/commands/migrate.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 90 | //! Created: {} [INFO] [stdout] | -- this formatting argument uses named argument `migration_class` by position [INFO] [stdout] ... [INFO] [stdout] 112 | migration_class = CommandUtils::to_pascal_case(&name), [INFO] [stdout] | ^^^^^^^^^^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 90 | //! Created: {migration_class} [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GeneratorOptions` [INFO] [stdout] --> src/commands/make.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::generators::{TemplateManager, GeneratorOptions}; [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: `std::thread` [INFO] [stdout] --> src/commands/serve.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/seed.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/cache.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/deploy.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/commands/dev.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CacheCommands`, `ConfigCommands`, `DbCommands`, `DevCommands`, `MakeCommands`, `MigrateCommands`, `PackageCommands`, `QueueCommands`, and `RouteCommands` [INFO] [stdout] --> src/commands/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | DbCommands, MakeCommands, MigrateCommands, RouteCommands, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 26 | CacheCommands, QueueCommands, ConfigCommands, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | PackageCommands, DevCommands [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `commands::*` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use commands::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_name` [INFO] [stdout] --> src/commands/make.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let class_name = CommandUtils::to_pascal_case(&name); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/commands/make.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/commands/make.rs:148:63 [INFO] [stdout] | [INFO] [stdout] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/commands/make.rs:500:38 [INFO] [stdout] | [INFO] [stdout] 500 | async fn make_listener(name: String, event: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/commands/make.rs:512:36 [INFO] [stdout] | [INFO] [stdout] 512 | async fn make_policy(name: String, model: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_vars` [INFO] [stdout] --> src/commands/make.rs:529:9 [INFO] [stdout] | [INFO] [stdout] 529 | let template_vars = serde_json::json!({ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/commands/db.rs:293:35 [INFO] [stdout] | [INFO] [stdout] 293 | async fn create_postgres_database(db_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_name` [INFO] [stdout] --> src/commands/db.rs:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | async fn drop_postgres_database(db_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> src/commands/db.rs:307:35 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/commands/db.rs:307:47 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/commands/db.rs:307:59 [INFO] [stdout] | [INFO] [stdout] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `job` [INFO] [stdout] --> src/commands/queue.rs:235:22 [INFO] [stdout] | [INFO] [stdout] 235 | async fn process_job(job: &Job) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `job` [INFO] [stdout] --> src/commands/queue.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/commands/queue.rs:248:40 [INFO] [stdout] | [INFO] [stdout] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | async fn deploy_aws(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:305:21 [INFO] [stdout] | [INFO] [stdout] 305 | async fn deploy_gcp(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/commands/deploy.rs:322:23 [INFO] [stdout] | [INFO] [stdout] 322 | async fn deploy_azure(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_command` [INFO] [stdout] --> src/commands/dev.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let server_command = format!("cargo run -- serve --host {} --port {} --reload", host, port); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_dir` [INFO] [stdout] --> src/commands/make.rs:612:23 [INFO] [stdout] | [INFO] [stdout] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `component_name` [INFO] [stdout] --> src/commands/make.rs:612:41 [INFO] [stdout] | [INFO] [stdout] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/commands/package.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version` [INFO] [stdout] --> src/commands/package.rs:192:45 [INFO] [stdout] | [INFO] [stdout] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/commands/package.rs:198:38 [INFO] [stdout] | [INFO] [stdout] 198 | fn remove_dependency_from_cargo_toml(name: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute_command` is never used [INFO] [stdout] --> src/commands/mod.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl CommandUtils { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn execute_command(cmd: &str, args: &[&str]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_server_health` is never used [INFO] [stdout] --> src/commands/serve.rs:195:14 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn check_server_health(host: &str, port: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_server` is never used [INFO] [stdout] --> src/commands/serve.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn wait_for_server(host: &str, port: u16, timeout_seconds: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_server_info` is never used [INFO] [stdout] --> src/commands/serve.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn display_server_info(host: &str, port: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_local_ip` is never used [INFO] [stdout] --> src/commands/serve.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn get_local_ip() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_type`, `payload`, `queue`, and `attempts` are never read [INFO] [stdout] --> src/commands/queue.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 200 | struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 201 | id: String, [INFO] [stdout] 202 | job_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 203 | payload: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 204 | queue: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 205 | attempts: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` 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: field `payload` is never read [INFO] [stdout] --> src/commands/queue.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 209 | struct FailedJob { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 212 | payload: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FailedJob` 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: function `run_unit_tests` is never used [INFO] [stdout] --> src/commands/test.rs:167:14 [INFO] [stdout] | [INFO] [stdout] 167 | pub async fn run_unit_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_integration_tests` is never used [INFO] [stdout] --> src/commands/test.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | pub async fn run_integration_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_benchmark_tests` is never used [INFO] [stdout] --> src/commands/test.rs:199:14 [INFO] [stdout] | [INFO] [stdout] 199 | pub async fn run_benchmark_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `watch_tests` is never used [INFO] [stdout] --> src/commands/test.rs:216:14 [INFO] [stdout] | [INFO] [stdout] 216 | pub async fn watch_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_production` is never used [INFO] [stdout] --> src/commands/build.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn build_production() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_development` is never used [INFO] [stdout] --> src/commands/build.rs:286:14 [INFO] [stdout] | [INFO] [stdout] 286 | pub async fn build_development() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_target` is never used [INFO] [stdout] --> src/commands/build.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | pub async fn build_target(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `port` is never read [INFO] [stdout] --> src/commands/deploy.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct DeploymentConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 71 | port: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeploymentConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_deployment_config` is never used [INFO] [stdout] --> src/commands/deploy.rs:392:14 [INFO] [stdout] | [INFO] [stdout] 392 | pub async fn create_deployment_config(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `description` is never read [INFO] [stdout] --> src/commands/package.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 166 | struct PackageInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PackageInfo` 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: function `search_packages` is never used [INFO] [stdout] --> src/commands/package.rs:320:14 [INFO] [stdout] | [INFO] [stdout] 320 | pub async fn search_packages(query: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_outdated` is never used [INFO] [stdout] --> src/commands/package.rs:339:14 [INFO] [stdout] | [INFO] [stdout] 339 | pub async fn check_outdated() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_all_checks` is never used [INFO] [stdout] --> src/commands/dev.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | pub async fn run_all_checks() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_tests` is never used [INFO] [stdout] --> src/commands/dev.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 193 | async fn run_tests() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_dev_environment` is never used [INFO] [stdout] --> src/commands/dev.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn setup_dev_environment() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dev_config_files` is never used [INFO] [stdout] --> src/commands/dev.rs:242:10 [INFO] [stdout] | [INFO] [stdout] 242 | async fn create_dev_config_files() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `profile_app` is never used [INFO] [stdout] --> src/commands/dev.rs:303:14 [INFO] [stdout] | [INFO] [stdout] 303 | pub async fn profile_app() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `benchmark` is never used [INFO] [stdout] --> src/commands/dev.rs:343:14 [INFO] [stdout] | [INFO] [stdout] 343 | pub async fn benchmark() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Generator` is never used [INFO] [stdout] --> src/generators/mod.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait Generator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneratorOptions` is never constructed [INFO] [stdout] --> src/generators/mod.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct GeneratorOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_template` is never used [INFO] [stdout] --> src/generators/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl TemplateManager { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn has_template(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneratorUtils` is never constructed [INFO] [stdout] --> src/generators/mod.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct GeneratorUtils; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `name_variations`, `check_file_exists`, `ensure_directory`, `write_file`, and `update_module_file` are never used [INFO] [stdout] --> src/generators/mod.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl GeneratorUtils { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 113 | /// Convert name to various cases [INFO] [stdout] 114 | pub fn name_variations(name: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn check_file_exists(path: &Path, force: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn ensure_directory(path: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn write_file(path: &Path, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn update_module_file(module_dir: &Path, component_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_camel_case` is never used [INFO] [stdout] --> src/generators/mod.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn to_camel_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_kebab_case` is never used [INFO] [stdout] --> src/generators/mod.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn to_kebab_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_title_case` is never used [INFO] [stdout] --> src/generators/mod.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn to_title_case(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pluralize` is never used [INFO] [stdout] --> src/generators/mod.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn pluralize(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `singularize` is never used [INFO] [stdout] --> src/generators/mod.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn singularize(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileUtils` is never constructed [INFO] [stdout] --> src/utils.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct FileUtils; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileUtils { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 15 | /// Check if a file exists [INFO] [stdout] 16 | pub fn exists>(path: P) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn ensure_dir>(path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn copy_file, Q: AsRef>(from: P, to: Q) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write_file>(path: P, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn read_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn find_files_with_extension>(dir: P, extension: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn file_stem>(path: P) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcessUtils` is never constructed [INFO] [stdout] --> src/utils.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct ProcessUtils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `command_exists`, `execute`, and `execute_with_output` are never used [INFO] [stdout] --> src/utils.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ProcessUtils { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 90 | /// Check if a command exists in PATH [INFO] [stdout] 91 | pub fn command_exists(command: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn execute(command: &str, args: &[&str]) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn execute_with_output(command: &str, args: &[&str]) -> Result<(bool, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TextUtils` is never constructed [INFO] [stdout] --> src/utils.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct TextUtils; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `capitalize` is never used [INFO] [stdout] --> src/utils.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl TextUtils { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 125 | /// Capitalize first letter [INFO] [stdout] 126 | pub fn capitalize(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 16.19s [INFO] running `Command { std: "docker" "inspect" "38a5162464c5eb0b6b0d1d2e53d975ade67f0398c15bc1b064fde959b40bb948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38a5162464c5eb0b6b0d1d2e53d975ade67f0398c15bc1b064fde959b40bb948", kill_on_drop: false }` [INFO] [stdout] 38a5162464c5eb0b6b0d1d2e53d975ade67f0398c15bc1b064fde959b40bb948 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 29fb6eeb906580dec4643e03014f02dc278a9863129dccc80f20bdee0c66b9bd [INFO] running `Command { std: "docker" "start" "-a" "29fb6eeb906580dec4643e03014f02dc278a9863129dccc80f20bdee0c66b9bd", kill_on_drop: false }` [INFO] [stderr] warning: named argument `name` is not used by name [INFO] [stderr] --> src/commands/migrate.rs:111:9 [INFO] [stderr] | [INFO] [stderr] 89 | r#"//! Migration: {} [INFO] [stderr] | -- this formatting argument uses named argument `name` by position [INFO] [stderr] ... [INFO] [stderr] 111 | name = name, [INFO] [stderr] | ^^^^ this named argument is referred to by position in formatting string [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stderr] help: use the named argument by name to avoid ambiguity [INFO] [stderr] | [INFO] [stderr] 89 | r#"//! Migration: {name} [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: named argument `migration_class` is not used by name [INFO] [stderr] --> src/commands/migrate.rs:112:9 [INFO] [stderr] | [INFO] [stderr] 90 | //! Created: {} [INFO] [stderr] | -- this formatting argument uses named argument `migration_class` by position [INFO] [stderr] ... [INFO] [stderr] 112 | migration_class = CommandUtils::to_pascal_case(&name), [INFO] [stderr] | ^^^^^^^^^^^^^^^ this named argument is referred to by position in formatting string [INFO] [stderr] | [INFO] [stderr] help: use the named argument by name to avoid ambiguity [INFO] [stderr] | [INFO] [stderr] 90 | //! Created: {migration_class} [INFO] [stderr] | +++++++++++++++ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GeneratorOptions` [INFO] [stderr] --> src/commands/make.rs:10:42 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::generators::{TemplateManager, GeneratorOptions}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::thread` [INFO] [stderr] --> src/commands/serve.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::thread; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/commands/seed.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/commands/cache.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/commands/deploy.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/commands/dev.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CacheCommands`, `ConfigCommands`, `DbCommands`, `DevCommands`, `MakeCommands`, `MigrateCommands`, `PackageCommands`, `QueueCommands`, and `RouteCommands` [INFO] [stderr] --> src/commands/mod.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | DbCommands, MakeCommands, MigrateCommands, RouteCommands, [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] 26 | CacheCommands, QueueCommands, ConfigCommands, [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] 27 | PackageCommands, DevCommands [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/utils.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `commands::*` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use commands::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `class_name` [INFO] [stderr] --> src/commands/make.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | let class_name = CommandUtils::to_pascal_case(&name); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_name` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `create` [INFO] [stderr] --> src/commands/make.rs:148:39 [INFO] [stderr] | [INFO] [stderr] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `table` [INFO] [stderr] --> src/commands/make.rs:148:63 [INFO] [stderr] | [INFO] [stderr] 148 | async fn make_migration(name: String, create: Option, table: Option) -> Result<()> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `event` [INFO] [stderr] --> src/commands/make.rs:500:38 [INFO] [stderr] | [INFO] [stderr] 500 | async fn make_listener(name: String, event: Option) -> Result<()> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `model` [INFO] [stderr] --> src/commands/make.rs:512:36 [INFO] [stderr] | [INFO] [stderr] 512 | async fn make_policy(name: String, model: Option) -> Result<()> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `template_vars` [INFO] [stderr] --> src/commands/make.rs:529:9 [INFO] [stderr] | [INFO] [stderr] 529 | let template_vars = serde_json::json!({ [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_vars` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db_name` [INFO] [stderr] --> src/commands/db.rs:293:35 [INFO] [stderr] | [INFO] [stderr] 293 | async fn create_postgres_database(db_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db_name` [INFO] [stderr] --> src/commands/db.rs:300:33 [INFO] [stderr] | [INFO] [stderr] 300 | async fn drop_postgres_database(db_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `host` [INFO] [stderr] --> src/commands/db.rs:307:35 [INFO] [stderr] | [INFO] [stderr] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `port` [INFO] [stderr] --> src/commands/db.rs:307:47 [INFO] [stderr] | [INFO] [stderr] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `database` [INFO] [stderr] --> src/commands/db.rs:307:59 [INFO] [stderr] | [INFO] [stderr] 307 | async fn test_postgres_connection(host: &str, port: &str, database: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `job` [INFO] [stderr] --> src/commands/queue.rs:235:22 [INFO] [stderr] | [INFO] [stderr] 235 | async fn process_job(job: &Job) -> Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `job` [INFO] [stderr] --> src/commands/queue.rs:248:29 [INFO] [stderr] | [INFO] [stderr] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_job` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error` [INFO] [stderr] --> src/commands/queue.rs:248:40 [INFO] [stderr] | [INFO] [stderr] 248 | async fn mark_job_as_failed(job: &Job, error: &str) -> Result<()> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/commands/deploy.rs:288:21 [INFO] [stderr] | [INFO] [stderr] 288 | async fn deploy_aws(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/commands/deploy.rs:305:21 [INFO] [stderr] | [INFO] [stderr] 305 | async fn deploy_gcp(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/commands/deploy.rs:322:23 [INFO] [stderr] | [INFO] [stderr] 322 | async fn deploy_azure(config: &DeploymentConfig, dry_run: bool) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `server_command` [INFO] [stderr] --> src/commands/dev.rs:41:13 [INFO] [stderr] | [INFO] [stderr] 41 | let server_command = format!("cargo run -- serve --host {} --port {} --reload", host, port); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_command` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module_dir` [INFO] [stderr] --> src/commands/make.rs:612:23 [INFO] [stderr] | [INFO] [stderr] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_dir` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `component_name` [INFO] [stderr] --> src/commands/make.rs:612:41 [INFO] [stderr] | [INFO] [stderr] 612 | fn update_module_file(module_dir: &str, component_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/commands/package.rs:192:33 [INFO] [stderr] | [INFO] [stderr] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `version` [INFO] [stderr] --> src/commands/package.rs:192:45 [INFO] [stderr] | [INFO] [stderr] 192 | fn add_dependency_to_cargo_toml(name: &str, version: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/commands/package.rs:198:38 [INFO] [stderr] | [INFO] [stderr] 198 | fn remove_dependency_from_cargo_toml(name: &str) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: associated function `execute_command` is never used [INFO] [stderr] --> src/commands/mod.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl CommandUtils { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn execute_command(cmd: &str, args: &[&str]) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `check_server_health` is never used [INFO] [stderr] --> src/commands/serve.rs:195:14 [INFO] [stderr] | [INFO] [stderr] 195 | pub async fn check_server_health(host: &str, port: u16) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wait_for_server` is never used [INFO] [stderr] --> src/commands/serve.rs:205:14 [INFO] [stderr] | [INFO] [stderr] 205 | pub async fn wait_for_server(host: &str, port: u16, timeout_seconds: u64) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `display_server_info` is never used [INFO] [stderr] --> src/commands/serve.rs:220:8 [INFO] [stderr] | [INFO] [stderr] 220 | pub fn display_server_info(host: &str, port: u16) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_local_ip` is never used [INFO] [stderr] --> src/commands/serve.rs:238:4 [INFO] [stderr] | [INFO] [stderr] 238 | fn get_local_ip() -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `job_type`, `payload`, `queue`, and `attempts` are never read [INFO] [stderr] --> src/commands/queue.rs:202:5 [INFO] [stderr] | [INFO] [stderr] 200 | struct Job { [INFO] [stderr] | --- fields in this struct [INFO] [stderr] 201 | id: String, [INFO] [stderr] 202 | job_type: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 203 | payload: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 204 | queue: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 205 | attempts: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `payload` is never read [INFO] [stderr] --> src/commands/queue.rs:212:5 [INFO] [stderr] | [INFO] [stderr] 209 | struct FailedJob { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 212 | payload: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FailedJob` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `run_unit_tests` is never used [INFO] [stderr] --> src/commands/test.rs:167:14 [INFO] [stderr] | [INFO] [stderr] 167 | pub async fn run_unit_tests() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_integration_tests` is never used [INFO] [stderr] --> src/commands/test.rs:183:14 [INFO] [stderr] | [INFO] [stderr] 183 | pub async fn run_integration_tests() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_benchmark_tests` is never used [INFO] [stderr] --> src/commands/test.rs:199:14 [INFO] [stderr] | [INFO] [stderr] 199 | pub async fn run_benchmark_tests() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `watch_tests` is never used [INFO] [stderr] --> src/commands/test.rs:216:14 [INFO] [stderr] | [INFO] [stderr] 216 | pub async fn watch_tests() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_production` is never used [INFO] [stderr] --> src/commands/build.rs:281:14 [INFO] [stderr] | [INFO] [stderr] 281 | pub async fn build_production() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_development` is never used [INFO] [stderr] --> src/commands/build.rs:286:14 [INFO] [stderr] | [INFO] [stderr] 286 | pub async fn build_development() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_target` is never used [INFO] [stderr] --> src/commands/build.rs:291:14 [INFO] [stderr] | [INFO] [stderr] 291 | pub async fn build_target(target: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `port` is never read [INFO] [stderr] --> src/commands/deploy.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 68 | struct DeploymentConfig { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 71 | port: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DeploymentConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `create_deployment_config` is never used [INFO] [stderr] --> src/commands/deploy.rs:392:14 [INFO] [stderr] | [INFO] [stderr] 392 | pub async fn create_deployment_config(target: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `description` is never read [INFO] [stderr] --> src/commands/package.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 166 | struct PackageInfo { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 170 | description: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PackageInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `search_packages` is never used [INFO] [stderr] --> src/commands/package.rs:320:14 [INFO] [stderr] | [INFO] [stderr] 320 | pub async fn search_packages(query: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `check_outdated` is never used [INFO] [stderr] --> src/commands/package.rs:339:14 [INFO] [stderr] | [INFO] [stderr] 339 | pub async fn check_outdated() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_all_checks` is never used [INFO] [stderr] --> src/commands/dev.rs:173:14 [INFO] [stderr] | [INFO] [stderr] 173 | pub async fn run_all_checks() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_tests` is never used [INFO] [stderr] --> src/commands/dev.rs:193:10 [INFO] [stderr] | [INFO] [stderr] 193 | async fn run_tests() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `setup_dev_environment` is never used [INFO] [stderr] --> src/commands/dev.rs:209:14 [INFO] [stderr] | [INFO] [stderr] 209 | pub async fn setup_dev_environment() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_dev_config_files` is never used [INFO] [stderr] --> src/commands/dev.rs:242:10 [INFO] [stderr] | [INFO] [stderr] 242 | async fn create_dev_config_files() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `profile_app` is never used [INFO] [stderr] --> src/commands/dev.rs:303:14 [INFO] [stderr] | [INFO] [stderr] 303 | pub async fn profile_app() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `benchmark` is never used [INFO] [stderr] --> src/commands/dev.rs:343:14 [INFO] [stderr] | [INFO] [stderr] 343 | pub async fn benchmark() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Generator` is never used [INFO] [stderr] --> src/generators/mod.rs:30:11 [INFO] [stderr] | [INFO] [stderr] 30 | pub trait Generator { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GeneratorOptions` is never constructed [INFO] [stderr] --> src/generators/mod.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct GeneratorOptions { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `has_template` is never used [INFO] [stderr] --> src/generators/mod.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 74 | impl TemplateManager { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 98 | pub fn has_template(&self, name: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GeneratorUtils` is never constructed [INFO] [stderr] --> src/generators/mod.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 110 | pub struct GeneratorUtils; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `name_variations`, `check_file_exists`, `ensure_directory`, `write_file`, and `update_module_file` are never used [INFO] [stderr] --> src/generators/mod.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 112 | impl GeneratorUtils { [INFO] [stderr] | ------------------- associated functions in this implementation [INFO] [stderr] 113 | /// Convert name to various cases [INFO] [stderr] 114 | pub fn name_variations(name: &str) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 130 | pub fn check_file_exists(path: &Path, force: bool) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 141 | pub fn ensure_directory(path: &Path) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 149 | pub fn write_file(path: &Path, content: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 156 | pub fn update_module_file(module_dir: &Path, component_name: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `to_camel_case` is never used [INFO] [stderr] --> src/generators/mod.rs:174:4 [INFO] [stderr] | [INFO] [stderr] 174 | fn to_camel_case(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `to_kebab_case` is never used [INFO] [stderr] --> src/generators/mod.rs:184:4 [INFO] [stderr] | [INFO] [stderr] 184 | fn to_kebab_case(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `to_title_case` is never used [INFO] [stderr] --> src/generators/mod.rs:189:4 [INFO] [stderr] | [INFO] [stderr] 189 | fn to_title_case(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pluralize` is never used [INFO] [stderr] --> src/generators/mod.rs:204:4 [INFO] [stderr] | [INFO] [stderr] 204 | fn pluralize(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `singularize` is never used [INFO] [stderr] --> src/generators/mod.rs:221:4 [INFO] [stderr] | [INFO] [stderr] 221 | fn singularize(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FileUtils` is never constructed [INFO] [stderr] --> src/utils.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct FileUtils; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated functions are never used [INFO] [stderr] --> src/utils.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl FileUtils { [INFO] [stderr] | -------------- associated functions in this implementation [INFO] [stderr] 15 | /// Check if a file exists [INFO] [stderr] 16 | pub fn exists>(path: P) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn ensure_dir>(path: P) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn copy_file, Q: AsRef>(from: P, to: Q) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn write_file>(path: P, content: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | pub fn read_file>(path: P) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn find_files_with_extension>(dir: P, extension: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | pub fn file_stem>(path: P) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProcessUtils` is never constructed [INFO] [stderr] --> src/utils.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 87 | pub struct ProcessUtils; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `command_exists`, `execute`, and `execute_with_output` are never used [INFO] [stderr] --> src/utils.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 89 | impl ProcessUtils { [INFO] [stderr] | ----------------- associated functions in this implementation [INFO] [stderr] 90 | /// Check if a command exists in PATH [INFO] [stderr] 91 | pub fn command_exists(command: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn execute(command: &str, args: &[&str]) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 109 | pub fn execute_with_output(command: &str, args: &[&str]) -> Result<(bool, String, String)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TextUtils` is never constructed [INFO] [stderr] --> src/utils.rs:122:12 [INFO] [stderr] | [INFO] [stderr] 122 | pub struct TextUtils; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `capitalize` is never used [INFO] [stderr] --> src/utils.rs:126:12 [INFO] [stderr] | [INFO] [stderr] 124 | impl TextUtils { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 125 | /// Capitalize first letter [INFO] [stderr] 126 | pub fn capitalize(s: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustisan` (bin "rustisan" test) generated 75 warnings (run `cargo fix --bin "rustisan" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustisan-3e4b0c143837134d) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test commands::config::tests::test_format_value ... ok [INFO] [stdout] test commands::config::tests::test_parse_config_value ... ok [INFO] [stdout] test commands::config::tests::test_is_sensitive_key ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "29fb6eeb906580dec4643e03014f02dc278a9863129dccc80f20bdee0c66b9bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29fb6eeb906580dec4643e03014f02dc278a9863129dccc80f20bdee0c66b9bd", kill_on_drop: false }` [INFO] [stdout] 29fb6eeb906580dec4643e03014f02dc278a9863129dccc80f20bdee0c66b9bd