[INFO] cloning repository https://github.com/digvijaybind/training-rust-master [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/digvijaybind/training-rust-master" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdigvijaybind%2Ftraining-rust-master", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdigvijaybind%2Ftraining-rust-master'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4944759e81f064beba8182f47e099e34c795b98c [INFO] building digvijaybind/training-rust-master against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdigvijaybind%2Ftraining-rust-master" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/digvijaybind/training-rust-master on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/digvijaybind/training-rust-master [INFO] finished tweaking git repo https://github.com/digvijaybind/training-rust-master [INFO] tweaked toml for git repo https://github.com/digvijaybind/training-rust-master written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/digvijaybind/training-rust-master 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e272d592ec19b0a963ffe5fa6615d16153ff46b9d0d42920c77d101e0101b52 [INFO] running `Command { std: "docker" "start" "-a" "5e272d592ec19b0a963ffe5fa6615d16153ff46b9d0d42920c77d101e0101b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e272d592ec19b0a963ffe5fa6615d16153ff46b9d0d42920c77d101e0101b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e272d592ec19b0a963ffe5fa6615d16153ff46b9d0d42920c77d101e0101b52", kill_on_drop: false }` [INFO] [stdout] 5e272d592ec19b0a963ffe5fa6615d16153ff46b9d0d42920c77d101e0101b52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 619f1ac5bd2c7ceff66893ef9bc68e4eef70f1b2ed9d98f9f7ef2fdca86f71dd [INFO] running `Command { std: "docker" "start" "-a" "619f1ac5bd2c7ceff66893ef9bc68e4eef70f1b2ed9d98f9f7ef2fdca86f71dd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling training-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/strings.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tuples::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tuples::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/conditions.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let result = match some_int { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let some_data: i8 = -128; // -128 to 127 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let some_data: u8 = 10; // 0 to 255 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let some_data: i128 = 10; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_isize` [INFO] [stdout] --> src/primitive.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let some_isize: isize = 10; // depends on whether the computer is 32 or 64 bits [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_usize` [INFO] [stdout] --> src/primitive.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let some_usize: usize = 10; // depends on whether the computer is 32 or 64 bits [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let some_data: f32 = 10.; // Search the Float to undertand - Incomplete yet [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/primitive.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let some_char: char = 'a'; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str` [INFO] [stdout] --> src/strings.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let string_from_str: String = example_str.to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str2` [INFO] [stdout] --> src/strings.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let string_from_str2: String = "Some hardcoded string".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_hardcoded` [INFO] [stdout] --> src/strings.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let string_from_hardcoded: String = String::from("Some hardcoded string"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_hardcoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str_var` [INFO] [stdout] --> src/strings.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let string_from_str_var = String::from(example_str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_from_string` [INFO] [stdout] --> src/strings.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let str_from_string: &str = &example_string; // deref symbol [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_from_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_string_literals` [INFO] [stdout] --> src/strings.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let combine_string_literals = ["test", "test1"].concat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_string_literals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_with_format_macro` [INFO] [stdout] --> src/strings.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let combine_with_format_macro = format!("{} {}", "test", "test1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_with_format_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combined` [INFO] [stdout] --> src/strings.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let combined = a + &b + &mut_string; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_other_color` [INFO] [stdout] --> src/tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let some_other_color: (u8, u8, u8, u8) = (0, 100, 150, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_other_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_tuple` [INFO] [stdout] --> src/tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let empty_tuple = (); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lite_record2` [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let lite_record2 = LiteRecord { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lite_record2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `states` and `records` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct LiteRecord { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | // rust not support inheritance it support composion [INFO] [stdout] 13 | states: i128, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | records: Records, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditions` is never used [INFO] [stdout] --> src/conditions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn conditions() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_string_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn some_string_procedure(param: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_str_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn some_str_procedure(param_a: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn some_procedure(param_a: f32, param_b: i8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/fun_and_pro.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn some_function(param_a: f32, param_b: i128) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `primitve` is never used [INFO] [stdout] --> src/primitive.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn primitve() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strings` is never used [INFO] [stdout] --> src/strings.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn strings() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/structs_traits_impl.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Records { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 17 | pub call_count: i64, [INFO] [stdout] 18 | pub data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Records` 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 `tuples` is never used [INFO] [stdout] --> src/tuples.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_some_rgb` is never used [INFO] [stdout] --> src/tuples.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_some_rgb() -> (u8, u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.09s [INFO] running `Command { std: "docker" "inspect" "619f1ac5bd2c7ceff66893ef9bc68e4eef70f1b2ed9d98f9f7ef2fdca86f71dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619f1ac5bd2c7ceff66893ef9bc68e4eef70f1b2ed9d98f9f7ef2fdca86f71dd", kill_on_drop: false }` [INFO] [stdout] 619f1ac5bd2c7ceff66893ef9bc68e4eef70f1b2ed9d98f9f7ef2fdca86f71dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9eb34720b81096b8d9bc941598fe6aa175c0c11ee4cb7aad4f82994fb2dd63b5 [INFO] running `Command { std: "docker" "start" "-a" "9eb34720b81096b8d9bc941598fe6aa175c0c11ee4cb7aad4f82994fb2dd63b5", kill_on_drop: false }` [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling pretty_assertions v1.2.0 [INFO] [stderr] Compiling training-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/strings.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tuples::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tuples::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/conditions.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let result = match some_int { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let some_data: i8 = -128; // -128 to 127 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let some_data: u8 = 10; // 0 to 255 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let some_data: i128 = 10; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_isize` [INFO] [stdout] --> src/primitive.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let some_isize: isize = 10; // depends on whether the computer is 32 or 64 bits [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_usize` [INFO] [stdout] --> src/primitive.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let some_usize: usize = 10; // depends on whether the computer is 32 or 64 bits [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_data` [INFO] [stdout] --> src/primitive.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let some_data: f32 = 10.; // Search the Float to undertand - Incomplete yet [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/primitive.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let some_char: char = 'a'; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str` [INFO] [stdout] --> src/strings.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let string_from_str: String = example_str.to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str2` [INFO] [stdout] --> src/strings.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let string_from_str2: String = "Some hardcoded string".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_hardcoded` [INFO] [stdout] --> src/strings.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let string_from_hardcoded: String = String::from("Some hardcoded string"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_hardcoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_from_str_var` [INFO] [stdout] --> src/strings.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let string_from_str_var = String::from(example_str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_from_str_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_from_string` [INFO] [stdout] --> src/strings.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let str_from_string: &str = &example_string; // deref symbol [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_from_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_string_literals` [INFO] [stdout] --> src/strings.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let combine_string_literals = ["test", "test1"].concat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_string_literals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine_with_format_macro` [INFO] [stdout] --> src/strings.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let combine_with_format_macro = format!("{} {}", "test", "test1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine_with_format_macro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combined` [INFO] [stdout] --> src/strings.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let combined = a + &b + &mut_string; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combined` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_other_color` [INFO] [stdout] --> src/tuples.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let some_other_color: (u8, u8, u8, u8) = (0, 100, 150, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_other_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_tuple` [INFO] [stdout] --> src/tuples.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let empty_tuple = (); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lite_record2` [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let lite_record2 = LiteRecord { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lite_record2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `states` and `records` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct LiteRecord { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | // rust not support inheritance it support composion [INFO] [stdout] 13 | states: i128, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | records: Records, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditions` is never used [INFO] [stdout] --> src/conditions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn conditions() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_string_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn some_string_procedure(param: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_str_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn some_str_procedure(param_a: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_procedure` is never used [INFO] [stdout] --> src/fun_and_pro.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn some_procedure(param_a: f32, param_b: i8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/fun_and_pro.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn some_function(param_a: f32, param_b: i128) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `primitve` is never used [INFO] [stdout] --> src/primitive.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn primitve() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strings` is never used [INFO] [stdout] --> src/strings.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn strings() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/structs_traits_impl.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Records { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 17 | pub call_count: i64, [INFO] [stdout] 18 | pub data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Records` 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 `tuples` is never used [INFO] [stdout] --> src/tuples.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_some_rgb` is never used [INFO] [stdout] --> src/tuples.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_some_rgb() -> (u8, u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "9eb34720b81096b8d9bc941598fe6aa175c0c11ee4cb7aad4f82994fb2dd63b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9eb34720b81096b8d9bc941598fe6aa175c0c11ee4cb7aad4f82994fb2dd63b5", kill_on_drop: false }` [INFO] [stdout] 9eb34720b81096b8d9bc941598fe6aa175c0c11ee4cb7aad4f82994fb2dd63b5