[INFO] cloning repository https://github.com/gf7560913/learnRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gf7560913/learnRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgf7560913%2FlearnRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgf7560913%2FlearnRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a3e22833292c506a905eae9243dadc368bb7f92 [INFO] building gf7560913/learnRust against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgf7560913%2FlearnRust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gf7560913/learnRust on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gf7560913/learnRust [INFO] finished tweaking git repo https://github.com/gf7560913/learnRust [INFO] tweaked toml for git repo https://github.com/gf7560913/learnRust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gf7560913/learnRust 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68905ed4f3baa42d23b6aa5d6ee547d26161778e6f85e354f2485c09206c9416 [INFO] running `Command { std: "docker" "start" "-a" "68905ed4f3baa42d23b6aa5d6ee547d26161778e6f85e354f2485c09206c9416", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68905ed4f3baa42d23b6aa5d6ee547d26161778e6f85e354f2485c09206c9416", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68905ed4f3baa42d23b6aa5d6ee547d26161778e6f85e354f2485c09206c9416", kill_on_drop: false }` [INFO] [stdout] 68905ed4f3baa42d23b6aa5d6ee547d26161778e6f85e354f2485c09206c9416 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fbc0e5f22ab943dbe218e15a6da8cfbd996af17ecd6f98f46a6c328b44e7612 [INFO] running `Command { std: "docker" "start" "-a" "8fbc0e5f22ab943dbe218e15a6da8cfbd996af17ecd6f98f46a6c328b44e7612", kill_on_drop: false }` [INFO] [stderr] Compiling learnRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::traits::action` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::traits::action; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `action` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait action { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Action` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `human` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct human {} [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Human` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dog` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct dog {} [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Dog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `else_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn else_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `else_flow1` is never used [INFO] [stdout] --> src/contraller_flow.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn else_flow1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn loop_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn while_flow() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn for_flow() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_map` is never used [INFO] [stdout] --> src/hashmap.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hash_map() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map` is never used [INFO] [stdout] --> src/hashmap.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn vec_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_map` is never used [INFO] [stdout] --> src/hashmap.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_map` is never used [INFO] [stdout] --> src/hashmap.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn for_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/matchs.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Usstate` is never used [INFO] [stdout] --> src/matchs.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Usstate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usstate` 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 `value_in_center` is never used [INFO] [stdout] --> src/matchs.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn value_in_center(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> src/slice.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_string` is never used [INFO] [stdout] --> src/string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_string() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_string` is never used [INFO] [stdout] --> src/string.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn split_string() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/structs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> src/structs.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn area() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Circle` is never constructed [INFO] [stdout] --> src/structs.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Circle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area` and `new` are never used [INFO] [stdout] --> src/structs.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | pub fn area(self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn new(r: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run` and `walk` are never used [INFO] [stdout] --> src/traits.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait action { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 4 | fn run(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | fn walk(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `human` is never constructed [INFO] [stdout] --> src/traits.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct human {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_trait` is never used [INFO] [stdout] --> src/traits.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_trait(item: impl action) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_trait1` is never used [INFO] [stdout] --> src/traits.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_trait1(item: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn notify() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify2` is never used [INFO] [stdout] --> src/traits.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn notify2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/traits.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn notify3() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_type` is never used [INFO] [stdout] --> src/variables.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn data_type() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `constant_type` is never used [INFO] [stdout] --> src/variables.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn constant_type() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shadow` is never used [INFO] [stdout] --> src/variables.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn shadow() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Radius` should have a snake case name [INFO] [stdout] --> src/structs.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub Radius: u32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "8fbc0e5f22ab943dbe218e15a6da8cfbd996af17ecd6f98f46a6c328b44e7612", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fbc0e5f22ab943dbe218e15a6da8cfbd996af17ecd6f98f46a6c328b44e7612", kill_on_drop: false }` [INFO] [stdout] 8fbc0e5f22ab943dbe218e15a6da8cfbd996af17ecd6f98f46a6c328b44e7612 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 977a07c6476e15dad3acbe598a0310b169634f996c020140a8eab20ed92e9b05 [INFO] running `Command { std: "docker" "start" "-a" "977a07c6476e15dad3acbe598a0310b169634f996c020140a8eab20ed92e9b05", kill_on_drop: false }` [INFO] [stderr] Compiling learnRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::traits::action` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::traits::action; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `action` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait action { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Action` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `human` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct human {} [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Human` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dog` should have an upper camel case name [INFO] [stdout] --> src/traits.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct dog {} [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Dog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `else_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn else_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `else_flow1` is never used [INFO] [stdout] --> src/contraller_flow.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn else_flow1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loop_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn loop_flow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn while_flow() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_flow` is never used [INFO] [stdout] --> src/contraller_flow.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn for_flow() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_map` is never used [INFO] [stdout] --> src/hashmap.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hash_map() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map` is never used [INFO] [stdout] --> src/hashmap.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn vec_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_map` is never used [INFO] [stdout] --> src/hashmap.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_map` is never used [INFO] [stdout] --> src/hashmap.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn for_map() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/matchs.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Usstate` is never used [INFO] [stdout] --> src/matchs.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Usstate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usstate` 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 `value_in_center` is never used [INFO] [stdout] --> src/matchs.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn value_in_center(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> src/slice.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_string` is never used [INFO] [stdout] --> src/string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_string() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_string` is never used [INFO] [stdout] --> src/string.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn split_string() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/structs.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> src/structs.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn area() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Circle` is never constructed [INFO] [stdout] --> src/structs.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Circle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area` and `new` are never used [INFO] [stdout] --> src/structs.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | pub fn area(self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn new(r: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run` and `walk` are never used [INFO] [stdout] --> src/traits.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait action { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 4 | fn run(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | fn walk(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `human` is never constructed [INFO] [stdout] --> src/traits.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct human {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_trait` is never used [INFO] [stdout] --> src/traits.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_trait(item: impl action) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_trait1` is never used [INFO] [stdout] --> src/traits.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_trait1(item: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn notify() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify2` is never used [INFO] [stdout] --> src/traits.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn notify2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/traits.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn notify3() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_type` is never used [INFO] [stdout] --> src/variables.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn data_type() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `constant_type` is never used [INFO] [stdout] --> src/variables.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn constant_type() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shadow` is never used [INFO] [stdout] --> src/variables.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn shadow() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Radius` should have a snake case name [INFO] [stdout] --> src/structs.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub Radius: u32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "977a07c6476e15dad3acbe598a0310b169634f996c020140a8eab20ed92e9b05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "977a07c6476e15dad3acbe598a0310b169634f996c020140a8eab20ed92e9b05", kill_on_drop: false }` [INFO] [stdout] 977a07c6476e15dad3acbe598a0310b169634f996c020140a8eab20ed92e9b05