[INFO] fetching crate study-rust-example 0.1.0...
[INFO] checking study-rust-example-0.1.0 against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3
[INFO] extracting crate study-rust-example 0.1.0 into /workspace/builds/worker-2-tc2/source
[INFO] started tweaking crates.io crate study-rust-example 0.1.0
[INFO] finished tweaking crates.io crate study-rust-example 0.1.0
[INFO] tweaked toml for crates.io crate study-rust-example 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate study-rust-example 0.1.0 on toolchain b1f2594eac607c1f051534800237eeedb5590a49
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate study-rust-example 0.1.0 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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c479e887d34080f5dfa59c5ecc8819a6d81ed1c1648012b55849cdf0e14c4363
[INFO] running `Command { std: "docker" "start" "-a" "c479e887d34080f5dfa59c5ecc8819a6d81ed1c1648012b55849cdf0e14c4363", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c479e887d34080f5dfa59c5ecc8819a6d81ed1c1648012b55849cdf0e14c4363", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c479e887d34080f5dfa59c5ecc8819a6d81ed1c1648012b55849cdf0e14c4363", kill_on_drop: false }`
[INFO] [stdout] c479e887d34080f5dfa59c5ecc8819a6d81ed1c1648012b55849cdf0e14c4363
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f19f624bb12b87becb2d86e33e2cda50318fd99a81856a4efa0d6ea45736c929
[INFO] running `Command { std: "docker" "start" "-a" "f19f624bb12b87becb2d86e33e2cda50318fd99a81856a4efa0d6ea45736c929", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling prettyplease v0.2.14
[INFO] [stderr]    Compiling rustix v0.38.11
[INFO] [stderr]    Compiling memchr v2.6.3
[INFO] [stderr]    Compiling clang-sys v1.6.1
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling syn v2.0.31
[INFO] [stderr]    Compiling linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling bitflags v2.4.0
[INFO] [stderr]    Compiling regex-syntax v0.7.5
[INFO] [stderr]    Compiling libloading v0.7.4
[INFO] [stderr]    Compiling home v0.5.5
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling bindgen v0.66.1
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling shlex v1.2.0
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking threadpool v1.8.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling blst v0.3.11
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling regex-automata v0.3.8
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling regex v1.9.5
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling serde_derive v1.0.188
[INFO] [stderr]     Checking zeroize v1.6.0
[INFO] [stderr]     Checking serde v1.0.188
[INFO] [stderr]    Compiling c-kzg v0.1.0
[INFO] [stderr]     Checking study-rust-example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/basic_concept/basic_concept.rs:154:20
[INFO] [stdout]     |
[INFO] [stdout] 154 |         for num in (0..a1.len()) {
[INFO] [stdout]     |                    ^           ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 154 -         for num in (0..a1.len()) {
[INFO] [stdout] 154 +         for num in 0..a1.len()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hash_map`
[INFO] [stdout]  --> src/common_collection/hash_map_study.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::{hash_map, HashMap};
[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 imports: `Write` and `self`
[INFO] [stdout]  --> src/package_crate_module/package_crate_module.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::*`
[INFO] [stdout]  --> src/package_crate_module/package_crate_module.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/basic_concept/basic_concept.rs:154:20
[INFO] [stdout]     |
[INFO] [stdout] 154 |         for num in (0..a1.len()) {
[INFO] [stdout]     |                    ^           ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 154 -         for num in (0..a1.len()) {
[INFO] [stdout] 154 +         for num in 0..a1.len()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hash_map`
[INFO] [stdout]  --> src/common_collection/hash_map_study.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::{hash_map, HashMap};
[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 imports: `Write` and `self`
[INFO] [stdout]  --> src/package_crate_module/package_crate_module.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::*`
[INFO] [stdout]  --> src/package_crate_module/package_crate_module.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max64_int`
[INFO] [stdout]   --> src/basic_concept/basic_concept.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let max64_int = 2 ^ 64 - 1;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max64_int`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/basic_concept/basic_concept.rs:59:26
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let mut x: u16 = 10000;
[INFO] [stdout]    |                          ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max64_int`
[INFO] [stdout]   --> src/basic_concept/basic_concept.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let max64_int = 2 ^ 64 - 1;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max64_int`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/basic_concept/basic_concept.rs:59:26
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let mut x: u16 = 10000;
[INFO] [stdout]    |                          ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `values`
[INFO] [stdout]   --> src/common_collection/vector_study.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let values: [i32; 3] = [12, 23, 43];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `vec1` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:72:30
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut vec1: Vec<i32> = Vec::new();
[INFO] [stdout]    |                              ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `some_number`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |         let some_number = Some(5);
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `some_char`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:79:13
[INFO] [stdout]    |
[INFO] [stdout] 79 |         let some_char = Some('S');
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `number`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |         let number: i32 = 32;
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str`
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:119:23
[INFO] [stdout]     |
[INFO] [stdout] 119 |             Coin::ETH(str) => 100_0000_0000_0000_0000,
[INFO] [stdout]     |                       ^^^ help: if this is intentional, prefix it with an underscore: `_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str`
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:120:24
[INFO] [stdout]     |
[INFO] [stdout] 120 |             Coin::USDT(str) => 100_0000,
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `values`
[INFO] [stdout]   --> src/common_collection/vector_study.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let values: [i32; 3] = [12, 23, 43];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `vec1` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:72:30
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut vec1: Vec<i32> = Vec::new();
[INFO] [stdout]    |                              ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `some_number`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |         let some_number = Some(5);
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `some_char`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:79:13
[INFO] [stdout]    |
[INFO] [stdout] 79 |         let some_char = Some('S');
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `number`
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |         let number: i32 = 32;
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str`
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:119:23
[INFO] [stdout]     |
[INFO] [stdout] 119 |             Coin::ETH(str) => 100_0000_0000_0000_0000,
[INFO] [stdout]     |                       ^^^ help: if this is intentional, prefix it with an underscore: `_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str`
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:120:24
[INFO] [stdout]     |
[INFO] [stdout] 120 |             Coin::USDT(str) => 100_0000,
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num1`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let num1: &i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num2`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let num2: &'a i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num3`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let num3: &'a mut i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let s: &'static str = "test 'static";
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/iterator_closure/closure_study.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let s = example_closures(String::from("closures."));
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num1`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let num1: &i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num2`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let num2: &'a i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num3`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let num3: &'a mut i32;
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_num3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let s: &'static str = "test 'static";
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> src/iterator_closure/closure_study.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let s = example_closures(String::from("closures."));
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut s1 = String::from("hello");
[INFO] [stdout]    |             ----^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:55:17
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let mut s4 = s3;
[INFO] [stdout]    |                 ----^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut str = String::from("move_function_study hello");
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |         let mut int1 = 188;
[INFO] [stdout]    |             ----^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str_ref`
[INFO] [stdout]    --> src/ownership/ownership.rs:121:19
[INFO] [stdout]     |
[INFO] [stdout] 121 |     fn modify_str(str_ref: &String) {
[INFO] [stdout]     |                   ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_ref`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/ownership/ownership.rs:223:13
[INFO] [stdout]     |
[INFO] [stdout] 223 |         let string_literal = "hello string literal";
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ownership/ownership.rs:233:13
[INFO] [stdout]     |
[INFO] [stdout] 233 |         let mut source_str = String::from("slice hello");
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let color = Color(32, 34, 43);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let point = Point(23, -23);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `decimal` is never read
[INFO] [stdout]   --> src/common_collection/hash_map_study.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct CoinProerty {
[INFO] [stdout]    |        ----------- field in this struct
[INFO] [stdout] 11 |     decimal: u32,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CoinProerty` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     Int(i32),
[INFO] [stdout]    |     --- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 55 -     Int(i32),
[INFO] [stdout] 55 +     Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:56:11
[INFO] [stdout]    |
[INFO] [stdout] 56 |     Float(f64),
[INFO] [stdout]    |     ----- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 56 -     Float(f64),
[INFO] [stdout] 56 +     Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:57:10
[INFO] [stdout]    |
[INFO] [stdout] 57 |     Text(String),
[INFO] [stdout]    |     ---- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 57 -     Text(String),
[INFO] [stdout] 57 +     Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `V6` is never constructed
[INFO] [stdout]  --> src/enum_pattern_match/enum_pattern_match.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     enum IpAddrType {
[INFO] [stdout]   |          ---------- variant in this enum
[INFO] [stdout] 4 |         V4,
[INFO] [stdout] 5 |         V6,
[INFO] [stdout]   |         ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddrType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `ip_addr_type` and `address` are never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  9 |     struct IpAddr {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 10 |         ip_addr_type: IpAddrType,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 11 |         address: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 |         V4(String),
[INFO] [stdout]    |         -- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 16 -         V4(String),
[INFO] [stdout] 16 +         V4(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `V6` is never constructed
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     enum IpAddrEnum {
[INFO] [stdout]    |          ---------- variant in this enum
[INFO] [stdout] 16 |         V4(String),
[INFO] [stdout] 17 |         V6(String),
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 21 |     enum Message {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:49:15
[INFO] [stdout]    |
[INFO] [stdout] 49 |         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout]    |         ----- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Msg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 49 -         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout] 49 +         Write(()),                 // 包括一个单个的字符串
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     enum Msg {
[INFO] [stdout]    |          --- variants in this enum
[INFO] [stdout] 47 |         Quit,                          // 没有数据关联
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 48 |         Move { x: i32, y: i32 },       // 像struct做的，有命名的字段
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 49 |         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout] 50 |         ChangeColor(i32, i64, String), // 包括几个类型的数据
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Msg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `ETH` and `USDT` are never constructed
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |     enum Coin {
[INFO] [stdout]     |          ---- variants in this enum
[INFO] [stdout] 109 |         BTC(String),
[INFO] [stdout] 110 |         ETH(String),
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 111 |         USDT(String),
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Coin` 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 `call_panic_self` is never used
[INFO] [stdout]  --> src/error_handle/panic_unrecoverable.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn call_panic_self() {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cause_lib_panic` is never used
[INFO] [stdout]  --> src/error_handle/panic_unrecoverable.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn cause_lib_panic() {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Score` is never constructed
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct Score<'a> {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_score` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | impl<'a> Score<'a> {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] 39 |     // [规则3]：因为参数之一是 &self ，所以返回类型获取 &self 的生命周期
[INFO] [stdout] 40 |     fn get_score(&self) -> &i32 {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `first_world` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:46:4
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn first_world(str: &str) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]  --> src/generic_traits_lifetime/traits_study.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct Pair<T> {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut s1 = String::from("hello");
[INFO] [stdout]    |             ----^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/generic_traits_lifetime/traits_study.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl<T> Pair<T> {
[INFO] [stdout]   | --------------- associated function in this implementation
[INFO] [stdout] 8 |     fn new(x: T, y: T) -> Self {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:55:17
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let mut s4 = s3;
[INFO] [stdout]    |                 ----^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cmp_display` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/traits_study.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Display + PartialOrd> Pair<T> {
[INFO] [stdout]    | ------------------------------------- method in this implementation
[INFO] [stdout] 13 |     fn cmp_display(&self) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tweet` is never constructed
[INFO] [stdout]   --> src/generic_traits_lifetime/traits_study.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Tweet {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `example_closures_study` is never used
[INFO] [stdout]   --> src/iterator_closure/closure_study.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | fn example_closures_study() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `height` is never read
[INFO] [stdout]    --> src/iterator_closure/closure_study.rs:116:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | struct Rectangle {
[INFO] [stdout]     |        --------- field in this struct
[INFO] [stdout] 115 |     width: u32,
[INFO] [stdout] 116 |     height: u32,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Shoe` is never constructed
[INFO] [stdout]   --> src/iterator_closure/iterator_process_study.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | struct Shoe {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shoe_in_size` is never used
[INFO] [stdout]   --> src/iterator_closure/iterator_process_study.rs:53:4
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn shoe_in_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `modify_str` is never used
[INFO] [stdout]    --> src/ownership/ownership.rs:121:8
[INFO] [stdout]     |
[INFO] [stdout] 121 |     fn modify_str(str_ref: &String) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `user_id`, `age`, and `active` are never read
[INFO] [stdout]  --> src/struct_related/define_init_struct.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |     user_id: String,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     user_name: String,
[INFO] [stdout] 5 |     age: u8,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 6 |     active: bool,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut str = String::from("move_function_study hello");
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0`, `1`, and `2` are never read
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Color(i32, i32, i32);
[INFO] [stdout]    |        ----- ^^^  ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct Point(i32, i32);
[INFO] [stdout]    |        ----- ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ownership/ownership.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 73 |         let mut int1 = 188;
[INFO] [stdout]    |             ----^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `coinMap` should have a snake case name
[INFO] [stdout]   --> src/common_collection/hash_map_study.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let mut coinMap: HashMap<CoinEnum, CoinProerty> = HashMap::new();
[INFO] [stdout]    |             ^^^^^^^ help: convert the identifier to snake case: `coin_map`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str_ref`
[INFO] [stdout]    --> src/ownership/ownership.rs:121:19
[INFO] [stdout]     |
[INFO] [stdout] 121 |     fn modify_str(str_ref: &String) {
[INFO] [stdout]     |                   ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_ref`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/ownership/ownership.rs:223:13
[INFO] [stdout]     |
[INFO] [stdout] 223 |         let string_literal = "hello string literal";
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ownership/ownership.rs:233:13
[INFO] [stdout]     |
[INFO] [stdout] 233 |         let mut source_str = String::from("slice hello");
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let color = Color(32, 34, 43);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let point = Point(23, -23);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `decimal` is never read
[INFO] [stdout]   --> src/common_collection/hash_map_study.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct CoinProerty {
[INFO] [stdout]    |        ----------- field in this struct
[INFO] [stdout] 11 |     decimal: u32,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CoinProerty` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     Int(i32),
[INFO] [stdout]    |     --- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 55 -     Int(i32),
[INFO] [stdout] 55 +     Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:56:11
[INFO] [stdout]    |
[INFO] [stdout] 56 |     Float(f64),
[INFO] [stdout]    |     ----- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 56 -     Float(f64),
[INFO] [stdout] 56 +     Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/common_collection/vector_study.rs:57:10
[INFO] [stdout]    |
[INFO] [stdout] 57 |     Text(String),
[INFO] [stdout]    |     ---- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 57 -     Text(String),
[INFO] [stdout] 57 +     Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `V6` is never constructed
[INFO] [stdout]  --> src/enum_pattern_match/enum_pattern_match.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     enum IpAddrType {
[INFO] [stdout]   |          ---------- variant in this enum
[INFO] [stdout] 4 |         V4,
[INFO] [stdout] 5 |         V6,
[INFO] [stdout]   |         ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddrType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `ip_addr_type` and `address` are never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  9 |     struct IpAddr {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 10 |         ip_addr_type: IpAddrType,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 11 |         address: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 |         V4(String),
[INFO] [stdout]    |         -- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 16 -         V4(String),
[INFO] [stdout] 16 +         V4(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `V6` is never constructed
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     enum IpAddrEnum {
[INFO] [stdout]    |          ---------- variant in this enum
[INFO] [stdout] 16 |         V4(String),
[INFO] [stdout] 17 |         V6(String),
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 21 |     enum Message {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:49:15
[INFO] [stdout]    |
[INFO] [stdout] 49 |         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout]    |         ----- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Msg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 49 -         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout] 49 +         Write(()),                 // 包括一个单个的字符串
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed
[INFO] [stdout]   --> src/enum_pattern_match/enum_pattern_match.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     enum Msg {
[INFO] [stdout]    |          --- variants in this enum
[INFO] [stdout] 47 |         Quit,                          // 没有数据关联
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 48 |         Move { x: i32, y: i32 },       // 像struct做的，有命名的字段
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 49 |         Write(String),                 // 包括一个单个的字符串
[INFO] [stdout] 50 |         ChangeColor(i32, i64, String), // 包括几个类型的数据
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Msg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `ETH` and `USDT` are never constructed
[INFO] [stdout]    --> src/enum_pattern_match/enum_pattern_match.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |     enum Coin {
[INFO] [stdout]     |          ---- variants in this enum
[INFO] [stdout] 109 |         BTC(String),
[INFO] [stdout] 110 |         ETH(String),
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 111 |         USDT(String),
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Coin` 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 `call_panic_self` is never used
[INFO] [stdout]  --> src/error_handle/panic_unrecoverable.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn call_panic_self() {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cause_lib_panic` is never used
[INFO] [stdout]  --> src/error_handle/panic_unrecoverable.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn cause_lib_panic() {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Score` is never constructed
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct Score<'a> {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_score` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | impl<'a> Score<'a> {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] 39 |     // [规则3]：因为参数之一是 &self ，所以返回类型获取 &self 的生命周期
[INFO] [stdout] 40 |     fn get_score(&self) -> &i32 {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `first_world` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/lifetime_study.rs:46:4
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn first_world(str: &str) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]  --> src/generic_traits_lifetime/traits_study.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct Pair<T> {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/generic_traits_lifetime/traits_study.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl<T> Pair<T> {
[INFO] [stdout]   | --------------- associated function in this implementation
[INFO] [stdout] 8 |     fn new(x: T, y: T) -> Self {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cmp_display` is never used
[INFO] [stdout]   --> src/generic_traits_lifetime/traits_study.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Display + PartialOrd> Pair<T> {
[INFO] [stdout]    | ------------------------------------- method in this implementation
[INFO] [stdout] 13 |     fn cmp_display(&self) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tweet` is never constructed
[INFO] [stdout]   --> src/generic_traits_lifetime/traits_study.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Tweet {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `example_closures_study` is never used
[INFO] [stdout]   --> src/iterator_closure/closure_study.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | fn example_closures_study() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `height` is never read
[INFO] [stdout]    --> src/iterator_closure/closure_study.rs:116:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | struct Rectangle {
[INFO] [stdout]     |        --------- field in this struct
[INFO] [stdout] 115 |     width: u32,
[INFO] [stdout] 116 |     height: u32,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Rectangle` 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 `modify_str` is never used
[INFO] [stdout]    --> src/ownership/ownership.rs:121:8
[INFO] [stdout]     |
[INFO] [stdout] 121 |     fn modify_str(str_ref: &String) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `user_id`, `age`, and `active` are never read
[INFO] [stdout]  --> src/struct_related/define_init_struct.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |     user_id: String,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     user_name: String,
[INFO] [stdout] 5 |     age: u8,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 6 |     active: bool,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0`, `1`, and `2` are never read
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct Color(i32, i32, i32);
[INFO] [stdout]    |        ----- ^^^  ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/struct_related/define_init_struct.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 | struct Point(i32, i32);
[INFO] [stdout]    |        ----- ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `coinMap` should have a snake case name
[INFO] [stdout]   --> src/common_collection/hash_map_study.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let mut coinMap: HashMap<CoinEnum, CoinProerty> = HashMap::new();
[INFO] [stdout]    |             ^^^^^^^ help: convert the identifier to snake case: `coin_map`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]   --> src/bin/socket_server.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 |         Ok((socket, addr)) => println!("Got a client: {addr:?}"),
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `guess_game` is never used
[INFO] [stdout]  --> src/main.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn guess_game() {
[INFO] [stdout]   |    ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `socket`
[INFO] [stdout]   --> src/bin/socket_server.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 |         Ok((socket, addr)) => println!("Got a client: {addr:?}"),
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_socket`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `guess_game` is never used
[INFO] [stdout]  --> src/main.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn guess_game() {
[INFO] [stdout]   |    ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.71s
[INFO] running `Command { std: "docker" "inspect" "f19f624bb12b87becb2d86e33e2cda50318fd99a81856a4efa0d6ea45736c929", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f19f624bb12b87becb2d86e33e2cda50318fd99a81856a4efa0d6ea45736c929", kill_on_drop: false }`
[INFO] [stdout] f19f624bb12b87becb2d86e33e2cda50318fd99a81856a4efa0d6ea45736c929
