[INFO] cloning repository https://github.com/Grubba27/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Grubba27/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrubba27%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrubba27%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9861ed564acbc5d5b54a7063c22d2ca36c291890 [INFO] checking Grubba27/hello-rust/9861ed564acbc5d5b54a7063c22d2ca36c291890 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrubba27%2Fhello-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Grubba27/hello-rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Grubba27/hello-rust [INFO] finished tweaking git repo https://github.com/Grubba27/hello-rust [INFO] tweaked toml for git repo https://github.com/Grubba27/hello-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Grubba27/hello-rust 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cac6f5804e386d29de2f96b329ab231ccb10ee8b58d8bd327381a05cf458cad [INFO] running `Command { std: "docker" "start" "-a" "9cac6f5804e386d29de2f96b329ab231ccb10ee8b58d8bd327381a05cf458cad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cac6f5804e386d29de2f96b329ab231ccb10ee8b58d8bd327381a05cf458cad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cac6f5804e386d29de2f96b329ab231ccb10ee8b58d8bd327381a05cf458cad", kill_on_drop: false }` [INFO] [stdout] 9cac6f5804e386d29de2f96b329ab231ccb10ee8b58d8bd327381a05cf458cad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b93cc8b1d4846b0d308445d47afe54408e6bb1a9e0c2e0691c7192c5b87a47b2 [INFO] running `Command { std: "docker" "start" "-a" "b93cc8b1d4846b0d308445d47afe54408e6bb1a9e0c2e0691c7192c5b87a47b2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking hello-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tests/patterns/creational.rs (1 fix) [INFO] [stderr] Fixed src/patterns/creational/factory_method.rs (1 fix) [INFO] [stderr] Fixed src/tests/mod.rs (1 fix) [INFO] [stdout] warning: unused variable: `person_type` [INFO] [stdout] --> src/fp/mod.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ten_percent` is never used [INFO] [stdout] --> src/core.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_ten_percent(value_of_account: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/tests/core_test.rs (1 fix) [INFO] [stderr] Fixed src/tests/fp_test.rs (1 fix) [INFO] [stderr] Fixed src/tests/tax_test.rs (1 fix) [INFO] [stderr] Fixed src/tests/problems_test.rs (3 fixes) [INFO] [stderr] Fixed src/tests/patterns/creational.rs (1 fix) [INFO] [stdout] warning: unused import: `crate::patterns::creational` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::patterns::creational; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person_type` [INFO] [stdout] --> src/fp/mod.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ten_percent` is never used [INFO] [stdout] --> src/core.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_ten_percent(value_of_account: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delivery_tax` is never used [INFO] [stdout] --> src/core.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn delivery_tax(money: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `blocked_in_source_tax` is never used [INFO] [stdout] --> src/tax/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn blocked_in_source_tax(val: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn big_hard_fn() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `other_big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn other_big_hard_fn() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `http_request` is never used [INFO] [stdout] --> src/fp/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn http_request() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `very_big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn very_big_hard_fn(function_calulate: f32, other_fn: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_hard_takes_arguments_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_salary_imposts_plus_transactions` is never used [INFO] [stdout] --> src/fp/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn calculate_salary_imposts_plus_transactions(salary: f64, person_type: &str, cost_per_transactions: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_small_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn calculate_small_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_medium_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn calculate_medium_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_big_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn calculate_big_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curry_function` is never used [INFO] [stdout] --> src/fp/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn curry_function(n: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `biggest_sum` is never used [INFO] [stdout] --> src/problems/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn biggest_sum(nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nested_values` is never used [INFO] [stdout] --> src/problems/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_nested_values(strs: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_digits` is never used [INFO] [stdout] --> src/problems/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn find_digits(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unique` is never constructed [INFO] [stdout] --> src/patterns/creational/singleton.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Unique { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unique` 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 `get_singleton` is never used [INFO] [stdout] --> src/patterns/creational/singleton.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_singleton() -> &'static Mutex { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_singleton` is never used [INFO] [stdout] --> src/patterns/creational/singleton.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn set_singleton(value: &str, singleton_instance: &Mutex) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vehicle` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VehicleTypes` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum VehicleTypes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Car` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Car {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Boat` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Boat {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Plane {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShapeFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ShapeFactory; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_vehicle` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl ShapeFactory { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 43 | pub fn new_vehicle(v: &VehicleTypes) -> Box { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComplexObject` is never constructed [INFO] [stdout] --> src/patterns/creational/builder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ComplexObject { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl ComplexObject { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 8 | fn create() -> ComplexObject { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Builder` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait Builder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsableBuilder` is never constructed [INFO] [stdout] --> src/patterns/creational/builder.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct UsableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl UsableBuilder { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 25 | fn create() -> UsableBuilder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_case_one_part` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn use_case_one_part() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_case_many_parts` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn use_case_many_parts() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.78s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking hello-rust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `crate::patterns::creational` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::patterns::creational; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person_type` [INFO] [stdout] --> src/fp/mod.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ten_percent` is never used [INFO] [stdout] --> src/core.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_ten_percent(value_of_account: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delivery_tax` is never used [INFO] [stdout] --> src/core.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn delivery_tax(money: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `blocked_in_source_tax` is never used [INFO] [stdout] --> src/tax/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn blocked_in_source_tax(val: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn big_hard_fn() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `other_big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn other_big_hard_fn() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `http_request` is never used [INFO] [stdout] --> src/fp/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn http_request() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `very_big_hard_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn very_big_hard_fn(function_calulate: f32, other_fn: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_hard_takes_arguments_fn` is never used [INFO] [stdout] --> src/fp/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_salary_imposts_plus_transactions` is never used [INFO] [stdout] --> src/fp/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn calculate_salary_imposts_plus_transactions(salary: f64, person_type: &str, cost_per_transactions: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_small_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn calculate_small_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_medium_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn calculate_medium_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_big_salary` is never used [INFO] [stdout] --> src/fp/mod.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn calculate_big_salary() -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `curry_function` is never used [INFO] [stdout] --> src/fp/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn curry_function(n: i32) -> impl Fn(i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `biggest_sum` is never used [INFO] [stdout] --> src/problems/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn biggest_sum(nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nested_values` is never used [INFO] [stdout] --> src/problems/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_nested_values(strs: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_digits` is never used [INFO] [stdout] --> src/problems/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn find_digits(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unique` is never constructed [INFO] [stdout] --> src/patterns/creational/singleton.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Unique { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unique` 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 `get_singleton` is never used [INFO] [stdout] --> src/patterns/creational/singleton.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_singleton() -> &'static Mutex { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_singleton` is never used [INFO] [stdout] --> src/patterns/creational/singleton.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn set_singleton(value: &str, singleton_instance: &Mutex) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vehicle` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VehicleTypes` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum VehicleTypes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Car` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Car {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Boat` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Boat {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Plane {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShapeFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory_method.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ShapeFactory; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_vehicle` is never used [INFO] [stdout] --> src/patterns/creational/factory_method.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl ShapeFactory { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 43 | pub fn new_vehicle(v: &VehicleTypes) -> Box { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComplexObject` is never constructed [INFO] [stdout] --> src/patterns/creational/builder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ComplexObject { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl ComplexObject { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 8 | fn create() -> ComplexObject { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Builder` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait Builder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsableBuilder` is never constructed [INFO] [stdout] --> src/patterns/creational/builder.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct UsableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl UsableBuilder { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 25 | fn create() -> UsableBuilder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_case_one_part` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn use_case_one_part() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_case_many_parts` is never used [INFO] [stdout] --> src/patterns/creational/builder.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn use_case_many_parts() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let result = delivery_tax(1); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | let result = delivery_tax(80); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let result = delivery_tax(85); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let result = delivery_tax(249); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | let result = delivery_tax(250); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delivery_tax` in this scope [INFO] [stdout] --> src/tests/core_test.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | let result = delivery_tax(300); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::core::core::delivery_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blocked_in_source_tax` in this scope [INFO] [stdout] --> src/tests/tax_test.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let result = blocked_in_source_tax(999.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::tax::tax::blocked_in_source_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blocked_in_source_tax` in this scope [INFO] [stdout] --> src/tests/tax_test.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | let result = blocked_in_source_tax(1.1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::tax::tax::blocked_in_source_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blocked_in_source_tax` in this scope [INFO] [stdout] --> src/tests/tax_test.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let result = blocked_in_source_tax(1000.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::tax::tax::blocked_in_source_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blocked_in_source_tax` in this scope [INFO] [stdout] --> src/tests/tax_test.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let result = blocked_in_source_tax(2100.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::tax::tax::blocked_in_source_tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_small_salary` in this scope [INFO] [stdout] --> src/tests/fp_test.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let result = calculate_small_salary(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::fp::calculate_small_salary; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_medium_salary` in this scope [INFO] [stdout] --> src/tests/fp_test.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | let result = calculate_medium_salary(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::fp::calculate_medium_salary; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_big_salary` in this scope [INFO] [stdout] --> src/tests/fp_test.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let result = calculate_big_salary(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::fp::calculate_big_salary; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `curry_function` in this scope [INFO] [stdout] --> src/tests/fp_test.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let sum_fn = curry_function(10); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::fp::curry_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `biggest_sum` in this scope [INFO] [stdout] --> src/tests/problems_test.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | let result = biggest_sum(big_vec); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::problems::problems::biggest_sum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nested_values` in this scope [INFO] [stdout] --> src/tests/problems_test.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | let result = get_nested_values(str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::problems::problems::get_nested_values; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_nested_values` in this scope [INFO] [stdout] --> src/tests/problems_test.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | let result = get_nested_values(str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::problems::problems::get_nested_values; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_digits` in this scope [INFO] [stdout] --> src/tests/problems_test.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | let result = find_digits(vec![12, 345, 2, 6, 7896]); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use crate::problems::problems::find_digits; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `singleton` [INFO] [stdout] --> src/tests/patterns/creational.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let singleton = singleton::get_singleton(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `singleton` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::singleton; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `singleton` [INFO] [stdout] --> src/tests/patterns/creational.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | let singleton1 = singleton::get_singleton(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `singleton` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::singleton; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `singleton` [INFO] [stdout] --> src/tests/patterns/creational.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | singleton::set_singleton("other", singleton1); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `singleton` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::singleton; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `singleton` [INFO] [stdout] --> src/tests/patterns/creational.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | let updated_singleton = singleton::get_singleton(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `singleton` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::singleton; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `factory_method` [INFO] [stdout] --> src/tests/patterns/creational.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | let car: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Car); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `factory_method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::factory_method::ShapeFactory; [INFO] [stdout] | [INFO] [stdout] help: if you import `ShapeFactory`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 30 - let car: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Car); [INFO] [stdout] 30 + let car: Box = ShapeFactory::new_vehicle(&VehicleTypes::Car); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `factory_method` [INFO] [stdout] --> src/tests/patterns/creational.rs:37:38 [INFO] [stdout] | [INFO] [stdout] 37 | let boat: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Boat); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `factory_method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::factory_method::ShapeFactory; [INFO] [stdout] | [INFO] [stdout] help: if you import `ShapeFactory`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 37 - let boat: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Boat); [INFO] [stdout] 37 + let boat: Box = ShapeFactory::new_vehicle(&VehicleTypes::Boat); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `factory_method` [INFO] [stdout] --> src/tests/patterns/creational.rs:44:39 [INFO] [stdout] | [INFO] [stdout] 44 | let plane: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Plane); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `factory_method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::creational::factory_method::ShapeFactory; [INFO] [stdout] | [INFO] [stdout] help: if you import `ShapeFactory`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 44 - let plane: Box = factory_method::ShapeFactory::new_vehicle(&VehicleTypes::Plane); [INFO] [stdout] 44 + let plane: Box = ShapeFactory::new_vehicle(&VehicleTypes::Plane); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/core_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/tax_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/fp_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/problems_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/patterns/creational.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person_type` [INFO] [stdout] --> src/fp/mod.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn big_hard_takes_arguments_fn(person_type: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_person_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (bin "hello-rust" test) due to 26 previous errors; 6 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b93cc8b1d4846b0d308445d47afe54408e6bb1a9e0c2e0691c7192c5b87a47b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b93cc8b1d4846b0d308445d47afe54408e6bb1a9e0c2e0691c7192c5b87a47b2", kill_on_drop: false }` [INFO] [stdout] b93cc8b1d4846b0d308445d47afe54408e6bb1a9e0c2e0691c7192c5b87a47b2