[INFO] cloning repository https://github.com/yangyunfeng666/rustDemo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yangyunfeng666/rustDemo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangyunfeng666%2FrustDemo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangyunfeng666%2FrustDemo'... [INFO] [stderr] fatal: write error: No space left on device [INFO] [stderr] fatal: fetch-pack: invalid index-pack output [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/yangyunfeng666/rustDemo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yangyunfeng666/rustDemo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangyunfeng666%2FrustDemo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangyunfeng666%2FrustDemo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69910fbf4c7bea55cfb0a4640415b9619c658430 [INFO] checking yangyunfeng666/rustDemo against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangyunfeng666%2FrustDemo" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yangyunfeng666/rustDemo [INFO] finished tweaking git repo https://github.com/yangyunfeng666/rustDemo [INFO] tweaked toml for git repo https://github.com/yangyunfeng666/rustDemo written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yangyunfeng666/rustDemo on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yangyunfeng666/rustDemo 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6623199e0b7c3e119e46cd2135b235afbe18fe798083000b57e8b1b554ae4477 [INFO] running `Command { std: "docker" "start" "-a" "6623199e0b7c3e119e46cd2135b235afbe18fe798083000b57e8b1b554ae4477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6623199e0b7c3e119e46cd2135b235afbe18fe798083000b57e8b1b554ae4477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6623199e0b7c3e119e46cd2135b235afbe18fe798083000b57e8b1b554ae4477", kill_on_drop: false }` [INFO] [stdout] 6623199e0b7c3e119e46cd2135b235afbe18fe798083000b57e8b1b554ae4477 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7108907f512075a7f4a03fca5149e0f0b82c8982a1c07ea42b219a6e0c47e7b2 [INFO] running `Command { std: "docker" "start" "-a" "7108907f512075a7f4a03fca5149e0f0b82c8982a1c07ea42b219a6e0c47e7b2", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Checking restaurant v0.1.0 (/opt/rustwide/workdir/restaurant) [INFO] [stdout] warning: type `y_enum` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum y_enum { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `YEnum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `a1` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | a1(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `A1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `a2` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | a2(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `A2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `y_enum` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum y_enum { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `YEnum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `a1` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | a1(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `A1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `a2` should have an upper camel case name [INFO] [stdout] --> restaurant/src/front_of_house.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | a2(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `A2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `toast` is never read [INFO] [stdout] --> restaurant/src/front_of_house.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub key: String, [INFO] [stdout] 9 | toast: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Breakfast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `toast` is never read [INFO] [stdout] --> restaurant/src/front_of_house.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub key: String, [INFO] [stdout] 9 | toast: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Breakfast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [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 rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking hello v1.0.0 (/opt/rustwide/workdir/hello) [INFO] [stdout] warning: trait `sumer` should have an upper camel case name [INFO] [stdout] --> hello/src/main.rs:313:7 [INFO] [stdout] | [INFO] [stdout] 313 | trait sumer { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sumer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `twwier` should have an upper camel case name [INFO] [stdout] --> hello/src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | pub struct twwier { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Twwier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `sumer` should have an upper camel case name [INFO] [stdout] --> hello/src/main.rs:313:7 [INFO] [stdout] | [INFO] [stdout] 313 | trait sumer { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sumer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `twwier` should have an upper camel case name [INFO] [stdout] --> hello/src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 321 | pub struct twwier { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Twwier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> hello/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let num = rand::thread_rng().gen_range(1,100); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> hello/src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `V6Ip` [INFO] [stdout] --> hello/src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let V6Ip = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_V6Ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> hello/src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let aa :Vec = vec![1,2,3,4]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> hello/src/main.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | let a = ss + &sa;//第一参数被使用权转移了 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> hello/src/main.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | let vec = vec![1,2,3,4]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> hello/src/main.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | let f = match file { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> hello/src/main.rs:221:25 [INFO] [stdout] | [INFO] [stdout] 221 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> hello/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut i = 0; [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: unused variable: `num` [INFO] [stdout] --> hello/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let num = rand::thread_rng().gen_range(1,100); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> hello/src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `V6Ip` [INFO] [stdout] --> hello/src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let V6Ip = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_V6Ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> hello/src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let aa :Vec = vec![1,2,3,4]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> hello/src/main.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | let a = ss + &sa;//第一参数被使用权转移了 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> hello/src/main.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | let vec = vec![1,2,3,4]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> hello/src/main.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | let f = match file { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> hello/src/main.rs:221:25 [INFO] [stdout] | [INFO] [stdout] 221 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key1` [INFO] [stdout] --> hello/src/main.rs:481:9 [INFO] [stdout] | [INFO] [stdout] 481 | let key1 = front_of_house::y_enum::a1;//使用作用域 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_key1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kye2` [INFO] [stdout] --> hello/src/main.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | let kye2 = front_of_house::y_enum::a2; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kye2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `aa` and `bb` are never read [INFO] [stdout] --> hello/src/main.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | pub struct twwier { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 322 | aa:String, [INFO] [stdout] | ^^ [INFO] [stdout] 323 | bb:String [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_use_duan` is never used [INFO] [stdout] --> hello/src/main.rs:348:4 [INFO] [stdout] | [INFO] [stdout] 348 | fn read_use_duan() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> hello/src/main.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 385 - V4(u8,u8,u8,u8), [INFO] [stdout] 385 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> hello/src/main.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] 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] 386 - V6(String), [INFO] [stdout] 386 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `aaa` and `bbb` are never read [INFO] [stdout] --> hello/src/main.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 387 | Aa { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 388 | aaa:String, [INFO] [stdout] | ^^^ [INFO] [stdout] 389 | bbb: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: function `read_file` is never used [INFO] [stdout] --> hello/src/main.rs:443:4 [INFO] [stdout] | [INFO] [stdout] 443 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_str_file` is never used [INFO] [stdout] --> hello/src/main.rs:456:4 [INFO] [stdout] | [INFO] [stdout] 456 | fn read_str_file () -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `v4Ip` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let v4Ip = IpAddr::V4(127,0,0,0); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v4_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V6Ip` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let V6Ip = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v6_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Aa` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let Aa = IpAddr::Aa {aaa:String::from("dsds"),bbb:String::from("bbb")}; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `someV` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let someV = Some("aaaa"); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `some_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> hello/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut i = 0; [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: unused variable: `key1` [INFO] [stdout] --> hello/src/main.rs:481:9 [INFO] [stdout] | [INFO] [stdout] 481 | let key1 = front_of_house::y_enum::a1;//使用作用域 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_key1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kye2` [INFO] [stdout] --> hello/src/main.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | let kye2 = front_of_house::y_enum::a2; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kye2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `aa` and `bb` are never read [INFO] [stdout] --> hello/src/main.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | pub struct twwier { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 322 | aa:String, [INFO] [stdout] | ^^ [INFO] [stdout] 323 | bb:String [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_use_duan` is never used [INFO] [stdout] --> hello/src/main.rs:348:4 [INFO] [stdout] | [INFO] [stdout] 348 | fn read_use_duan() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> hello/src/main.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | V4(u8,u8,u8,u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 385 - V4(u8,u8,u8,u8), [INFO] [stdout] 385 + V4((),(),(),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> hello/src/main.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] 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] 386 - V6(String), [INFO] [stdout] 386 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `aaa` and `bbb` are never read [INFO] [stdout] --> hello/src/main.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 387 | Aa { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 388 | aaa:String, [INFO] [stdout] | ^^^ [INFO] [stdout] 389 | bbb: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: function `read_file` is never used [INFO] [stdout] --> hello/src/main.rs:443:4 [INFO] [stdout] | [INFO] [stdout] 443 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_str_file` is never used [INFO] [stdout] --> hello/src/main.rs:456:4 [INFO] [stdout] | [INFO] [stdout] 456 | fn read_str_file () -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `v4Ip` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let v4Ip = IpAddr::V4(127,0,0,0); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v4_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V6Ip` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let V6Ip = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `v6_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Aa` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let Aa = IpAddr::Aa {aaa:String::from("dsds"),bbb:String::from("bbb")}; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `someV` should have a snake case name [INFO] [stdout] --> hello/src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let someV = Some("aaaa"); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `some_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.88s [INFO] running `Command { std: "docker" "inspect" "7108907f512075a7f4a03fca5149e0f0b82c8982a1c07ea42b219a6e0c47e7b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7108907f512075a7f4a03fca5149e0f0b82c8982a1c07ea42b219a6e0c47e7b2", kill_on_drop: false }` [INFO] [stdout] 7108907f512075a7f4a03fca5149e0f0b82c8982a1c07ea42b219a6e0c47e7b2