[INFO] cloning repository https://github.com/kyssion/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyssion/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8140f82dc954b4717605b2c11a81508ed355b93c [INFO] checking kyssion/rust_study against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyssion%2Frust_study" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyssion/rust_study on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kyssion/rust_study [INFO] finished tweaking git repo https://github.com/kyssion/rust_study [INFO] tweaked toml for git repo https://github.com/kyssion/rust_study written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/kyssion/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b5ffd6225f20763c3b69dbf75affc9d5aad392682d163459b058cbe7d0e6ad83 [INFO] running `Command { std: "docker" "start" "-a" "b5ffd6225f20763c3b69dbf75affc9d5aad392682d163459b058cbe7d0e6ad83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5ffd6225f20763c3b69dbf75affc9d5aad392682d163459b058cbe7d0e6ad83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5ffd6225f20763c3b69dbf75affc9d5aad392682d163459b058cbe7d0e6ad83", kill_on_drop: false }` [INFO] [stdout] b5ffd6225f20763c3b69dbf75affc9d5aad392682d163459b058cbe7d0e6ad83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ede597306c18b523625bf2ea6c8382e0e62f14956db72f523092df70add90db [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5ede597306c18b523625bf2ea6c8382e0e62f14956db72f523092df70add90db", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rust_study v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `test_match` [INFO] [stdout] --> src/main.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::rust0004_enum_and_match::{test_match, Coin}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | let i = if(i>3){ [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::Sum` [INFO] [stdout] --> src/rust0000_official_example.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp::Ordering, iter::Sum}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NO_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | NO_MESSAGE(), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `NoMessage` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | INT_MESSAGE(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IntMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STR_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | STR_MESSAGE(String,String,String), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `StrMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FLOAT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | FLOAT_MESSAGE(f32,f64), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FloatMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STRUCT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | STRUCT_MESSAGE(TestStruct), //todo 结构体元组 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StructMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DEFAULT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | DEFAULT_MESSAGE{item_int:i32} //直接定义对象 [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DefaultMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test_match` [INFO] [stdout] --> src/main.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::rust0004_enum_and_match::{test_match, Coin}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | let i = if(i>3){ [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::Sum` [INFO] [stdout] --> src/rust0000_official_example.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp::Ordering, iter::Sum}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NO_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | NO_MESSAGE(), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `NoMessage` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | INT_MESSAGE(i32,i32), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `IntMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STR_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | STR_MESSAGE(String,String,String), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `StrMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FLOAT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | FLOAT_MESSAGE(f32,f64), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FloatMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STRUCT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | STRUCT_MESSAGE(TestStruct), //todo 结构体元组 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StructMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DEFAULT_MESSAGE` should have an upper camel case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | DEFAULT_MESSAGE{item_int:i32} //直接定义对象 [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DefaultMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Penny` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Coin::Penny` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Nickel` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `Coin::Nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Dime` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `Coin::Dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 77 | Coin::Quarter(one,tow)=>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 81 | _ =>{ //todo 使用通配符_ 可以匹配其他未知情况 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let value1 = 10; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_value1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let value1 = "sdfsdf"; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_value1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value2` is assigned to, but never used [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut value2 = 10; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value2` is never read [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | value2 = 11; // 可以进行修改 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let i: i8; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let i: i16; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let i: i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let i: i64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let i: i128; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let i: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let f:f32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let f:f64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let b:bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let b : bool = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let c : char = '总'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | let (a,b,_) = y; // rust 这里和golang的处理方法类似使用_ 来丢弃不用的值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | let (a,b,_) = y; // rust 这里和golang的处理方法类似使用_ 来丢弃不用的值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let c = y.1;// 元组可以使用的后缀+ 数字来确定标记位置 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let a = [1,2,3,4,5,6]; // 数组初始化 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let b : [i32; 10]; // 初始化声明数组 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let str = "&str"; // 这个是字符串字面量,不能进行修改 [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/rust0001_var_and_control_flow.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let str = String::from("String"); //堆分配字符串 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let i = 123;// 赋值语句是语句不是表达式 所以不能想其他语言一样使用 a=b=12 这种方法赋值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let i = if(i>3){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let item = loop{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn func_test(i : i32)-> String{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let a = if number<5{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let item = loop{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let a = while number<5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0000_official_example.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn notify(item: impl Summary){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/rust0002_ownership.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut str = "str item"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/rust0002_ownership.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let j = i; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/rust0002_ownership.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let v = j.clone();//使用clone 可以获取一个string字符串的clone [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rust0002_ownership.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let s = test_fn(s);// 此时S已经没有任何作用域的信息 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/rust0002_ownership.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let z = &i; // 获取这个值的引用 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/rust0002_ownership.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let j = &mut i; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `itemStr` [INFO] [stdout] --> src/rust0002_ownership.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let itemStr = &str[0..1]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_itemStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/rust0003_struct_1.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut user = User{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0003_struct_1.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let i = item_y.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Penny` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Coin::Penny` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area` [INFO] [stdout] --> src/rust0003_struct_1.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let area = area(&rect1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let area = area(&rect1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Nickel` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `Coin::Nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/rust0003_struct_2.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let p =Rectangle::square(12); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Dime` is named the same as one of the variants of the type `Coin` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `Coin::Dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 77 | Coin::Quarter(one,tow)=>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rust0004_enum_and_match.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ----- matches any value [INFO] [stdout] ... [INFO] [stdout] 81 | _ =>{ //todo 使用通配符_ 可以匹配其他未知情况 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let value1 = 10; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_value1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let value1 = "sdfsdf"; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_value1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value2` is assigned to, but never used [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut value2 = 10; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value2` is never read [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | value2 = 11; // 可以进行修改 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let i: i8; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let i: i16; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let i: i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let i: i64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let i: i128; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let i: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let f:f32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let f:f64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let b:bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let b : bool = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let c : char = '总'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | let (a,b,_) = y; // rust 这里和golang的处理方法类似使用_ 来丢弃不用的值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | let (a,b,_) = y; // rust 这里和golang的处理方法类似使用_ 来丢弃不用的值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let c = y.1;// 元组可以使用的后缀+ 数字来确定标记位置 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let a = [1,2,3,4,5,6]; // 数组初始化 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let b : [i32; 10]; // 初始化声明数组 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let str = "&str"; // 这个是字符串字面量,不能进行修改 [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/rust0001_var_and_control_flow.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let str = String::from("String"); //堆分配字符串 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let i = 123;// 赋值语句是语句不是表达式 所以不能想其他语言一样使用 a=b=12 这种方法赋值 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let i = if(i>3){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let item = loop{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn func_test(i : i32)-> String{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let a = if number<5{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let item = loop{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let a = while number<5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/rust0000_official_example.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn notify(item: impl Summary){} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/rust0002_ownership.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut str = "str item"; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/rust0002_ownership.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let j = i; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/rust0002_ownership.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let v = j.clone();//使用clone 可以获取一个string字符串的clone [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rust0002_ownership.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let s = test_fn(s);// 此时S已经没有任何作用域的信息 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/rust0002_ownership.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let z = &i; // 获取这个值的引用 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/rust0002_ownership.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let j = &mut i; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `itemStr` [INFO] [stdout] --> src/rust0002_ownership.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let itemStr = &str[0..1]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_itemStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/rust0003_struct_1.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut user = User{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust0003_struct_1.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let i = item_y.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area` [INFO] [stdout] --> src/rust0003_struct_1.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let area = area(&rect1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let area = area(&rect1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/rust0003_struct_2.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let p =Rectangle::square(12); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tow` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let tow = Some("sdfsdf"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sss` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let sss = one.expect("ddd"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_type` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tow` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let tow = Some("sdfsdf"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Penny` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Penny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sss` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let sss = one.expect("ddd"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nickel` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_type` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Penny` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Penny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Dime` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nickel` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Dime` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rust0002_ownership.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut str = "str item"; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rust0002_ownership.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut j = &mut i; [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/rust0002_ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut p = &mut i; [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/rust0002_ownership.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut str = String::from("test string"); [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/rust0002_ownership.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut str = "str item"; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rust0002_ownership.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut j = &mut i; [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/rust0002_ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut p = &mut i; [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/rust0002_ownership.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut str = String::from("test string"); [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/rust0003_struct_1.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut user_temp = test_02(String::from("kyssion@kys.net"),String::from("jetty")); [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/rust0003_struct_1.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut user = User{ [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/rust0003_struct_1.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut item_y = YStruct(12, String::from("test"), 1.2); [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/rust0003_struct_1.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut user_temp = test_02(String::from("kyssion@kys.net"),String::from("jetty")); [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/rust0004_enum_and_match.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut one = Some(12); [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/rust0003_struct_1.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut user = User{ [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/rust0003_struct_1.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut item_y = YStruct(12, String::from("test"), 1.2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_LENGTH` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const MAX_LENGTH: i32 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `data_type` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn data_type() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `statement_and_expression` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn statement_and_expression(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `func_test` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn func_test(i : i32)-> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_test` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn process_test(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0000_official_example.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify` [INFO] [stdout] --> src/rust0000_official_example.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn notify(item: impl Summary){} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership_main` [INFO] [stdout] --> src/rust0002_ownership.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn ownership_main(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_main` [INFO] [stdout] --> src/rust0002_ownership.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn test_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test3_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test3_fn(s:&String) -> &str{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_fn(s:String)-> String{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test2_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn test2_fn(s: &String)->usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `User` [INFO] [stdout] --> src/rust0003_struct_1.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct User{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `YStruct` [INFO] [stdout] --> src/rust0003_struct_1.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct YStruct(i32, String, f64); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `YStructEmpty` [INFO] [stdout] --> src/rust0003_struct_1.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct YStructEmpty(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_01` [INFO] [stdout] --> src/rust0003_struct_1.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn test_01(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_02` [INFO] [stdout] --> src/rust0003_struct_1.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn test_02(email : String,user_name:String)-> User{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_1.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn area(rectangle: &Rectangle)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/rust0003_struct_1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn area(&self)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_with` [INFO] [stdout] --> src/rust0003_struct_2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn add_with(&mut self,i:u32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/rust0003_struct_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn can_hold(&self,other : &Rectangle)->bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/rust0003_struct_2.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn square(size: u32)->Rectangle{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn area(rectangle: &Rectangle)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/rust0003_struct_2.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `IpAddrKind` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum IpAddrKind{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TestStruct` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct TestStruct{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `TestEnum` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum TestEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test2` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn test2(test :TestEnum){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn test1(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `route` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | Quarter(i32,f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn test_match (item : Coin) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match_3` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn test_match_3(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_to_wait_list` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn add_to_wait_list(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `seat_at_table` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_order` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn take_order() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `server_order` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | fn server_order() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eat_at_restaurant` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemStr` should have a snake case name [INFO] [stdout] --> src/rust0002_ownership.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let itemStr = &str[0..1]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `item_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `itemStr` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | itemStr:String [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `item_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Penny` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `penny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nickel` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rust0004_enum_and_match.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut one = Some(12); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dime` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_LENGTH` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const MAX_LENGTH: i32 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `data_type` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn data_type() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `statement_and_expression` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn statement_and_expression(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `func_test` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn func_test(i : i32)-> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_test` [INFO] [stdout] --> src/rust0001_var_and_control_flow.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn process_test(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0000_official_example.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `notify` [INFO] [stdout] --> src/rust0000_official_example.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn notify(item: impl Summary){} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership_main` [INFO] [stdout] --> src/rust0002_ownership.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn ownership_main(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_main` [INFO] [stdout] --> src/rust0002_ownership.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn test_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test3_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test3_fn(s:&String) -> &str{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn test_fn(s:String)-> String{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test2_fn` [INFO] [stdout] --> src/rust0002_ownership.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn test2_fn(s: &String)->usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `User` [INFO] [stdout] --> src/rust0003_struct_1.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct User{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `YStruct` [INFO] [stdout] --> src/rust0003_struct_1.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct YStruct(i32, String, f64); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `YStructEmpty` [INFO] [stdout] --> src/rust0003_struct_1.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct YStructEmpty(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_01` [INFO] [stdout] --> src/rust0003_struct_1.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn test_01(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_02` [INFO] [stdout] --> src/rust0003_struct_1.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn test_02(email : String,user_name:String)-> User{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_1.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn area(rectangle: &Rectangle)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/rust0003_struct_1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn area(&self)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_with` [INFO] [stdout] --> src/rust0003_struct_2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn add_with(&mut self,i:u32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/rust0003_struct_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn can_hold(&self,other : &Rectangle)->bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/rust0003_struct_2.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn square(size: u32)->Rectangle{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/rust0003_struct_2.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn area(rectangle: &Rectangle)->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/rust0003_struct_2.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `IpAddrKind` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum IpAddrKind{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TestStruct` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct TestStruct{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `TestEnum` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum TestEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test2` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn test2(test :TestEnum){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test1` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn test1(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `route` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | Quarter(i32,f64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn test_match (item : Coin) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_match_3` [INFO] [stdout] --> src/rust0004_enum_and_match.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn test_match_3(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_to_wait_list` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn add_to_wait_list(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `seat_at_table` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_order` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn take_order() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `server_order` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | fn server_order() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eat_at_restaurant` [INFO] [stdout] --> src/rust0005_pakage_module_other.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn eat_at_restaurant(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `itemStr` should have a snake case name [INFO] [stdout] --> src/rust0002_ownership.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let itemStr = &str[0..1]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `item_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `itemStr` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | itemStr:String [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `item_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Penny` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | Penny => { //支持括号模式 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `penny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nickel` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | Nickel=>12, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `nickel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dime` should have a snake case name [INFO] [stdout] --> src/rust0004_enum_and_match.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Dime=>33, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `dime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 124 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: 124 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.95s [INFO] running `Command { std: "docker" "inspect" "5ede597306c18b523625bf2ea6c8382e0e62f14956db72f523092df70add90db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ede597306c18b523625bf2ea6c8382e0e62f14956db72f523092df70add90db", kill_on_drop: false }` [INFO] [stdout] 5ede597306c18b523625bf2ea6c8382e0e62f14956db72f523092df70add90db