[INFO] cloning repository https://github.com/niyiwei/rust-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/niyiwei/rust-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniyiwei%2Frust-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniyiwei%2Frust-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 52a5734a562720d18b19cca296dac1c66ad77f21 [INFO] checking niyiwei/rust-demo against master#3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniyiwei%2Frust-demo" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/niyiwei/rust-demo on toolchain 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/niyiwei/rust-demo [INFO] finished tweaking git repo https://github.com/niyiwei/rust-demo [INFO] tweaked toml for git repo https://github.com/niyiwei/rust-demo written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/niyiwei/rust-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c98c43266d6b1761c4688499c36960d92ec93a25a45b438bd5c40edf6059c9d [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" "2c98c43266d6b1761c4688499c36960d92ec93a25a45b438bd5c40edf6059c9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c98c43266d6b1761c4688499c36960d92ec93a25a45b438bd5c40edf6059c9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c98c43266d6b1761c4688499c36960d92ec93a25a45b438bd5c40edf6059c9d", kill_on_drop: false }` [INFO] [stdout] 2c98c43266d6b1761c4688499c36960d92ec93a25a45b438bd5c40edf6059c9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7fe7357a0867040e741e011efd2db894271f715ac0d8e988f613a7cbd70031c [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" "c7fe7357a0867040e741e011efd2db894271f715ac0d8e988f613a7cbd70031c", kill_on_drop: false }` [INFO] [stderr] Checking hello-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry::Vacant` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::Entry::Vacant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::Entry::Vacant` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::Entry::Vacant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | _ => Some(-1), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let some_string = Some("a string"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none_value` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let none_value: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_none_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | _ => Some(-1), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let some_string = Some("a string"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none_value` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let none_value: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_none_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dine` [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | Dine, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_4` [INFO] [stdout] --> src/main.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn chapter6_1_4() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/main.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/main.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_3` [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn chapter6_1_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_2` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn chapter6_1_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_1` [INFO] [stdout] --> src/main.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn chapter6_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | V4(u8, u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | V4(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_2` [INFO] [stdout] --> src/main.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn chapter5_2_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_3` [INFO] [stdout] --> src/main.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn chapter5_2_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | fn area(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/main.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | fn new(width: i32, height: i32) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_1` [INFO] [stdout] --> src/main.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn chapter5_2_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_1_2` [INFO] [stdout] --> src/main.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn chapter5_1_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_1_1` [INFO] [stdout] --> src/main.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn chapter5_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn area(rectangle: &Rectangle) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_5` [INFO] [stdout] --> src/main.rs:241:4 [INFO] [stdout] | [INFO] [stdout] 241 | fn chapter3_5_5() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_4` [INFO] [stdout] --> src/main.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn chapter3_5_4() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_3` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn chapter3_5_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_2` [INFO] [stdout] --> src/main.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn chapter3_5_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_1` [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn chapter3_5_1(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_3` [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn chapter3_3_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `six` [INFO] [stdout] --> src/main.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn six(inData: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `five` [INFO] [stdout] --> src/main.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_2` [INFO] [stdout] --> src/main.rs:336:4 [INFO] [stdout] | [INFO] [stdout] 336 | fn chapter3_3_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_1` [INFO] [stdout] --> src/main.rs:349:4 [INFO] [stdout] | [INFO] [stdout] 349 | fn chapter3_3_1(x: i32, y: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_2_1` [INFO] [stdout] --> src/main.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn chapter3_2_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_1` [INFO] [stdout] --> src/main.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn chapter3_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_2` [INFO] [stdout] --> src/main.rs:394:4 [INFO] [stdout] | [INFO] [stdout] 394 | fn chapter3_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3` [INFO] [stdout] --> src/main.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn chapter3_3() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sixResult` should have a snake case name [INFO] [stdout] --> src/main.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | let sixResult = six(5); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `six_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inData` should have a snake case name [INFO] [stdout] --> src/main.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 326 | fn six(inData: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dine` [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | Dine, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quarter` [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_4` [INFO] [stdout] --> src/main.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn chapter6_1_4() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/main.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/main.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_3` [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn chapter6_1_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_2` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn chapter6_1_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter6_1_1` [INFO] [stdout] --> src/main.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn chapter6_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | V4(u8, u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | V4(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/main.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/main.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_2` [INFO] [stdout] --> src/main.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn chapter5_2_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_3` [INFO] [stdout] --> src/main.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn chapter5_2_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | fn area(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/main.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | fn new(width: i32, height: i32) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_2_1` [INFO] [stdout] --> src/main.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn chapter5_2_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_1_2` [INFO] [stdout] --> src/main.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn chapter5_1_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter5_1_1` [INFO] [stdout] --> src/main.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn chapter5_1_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn area(rectangle: &Rectangle) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_5` [INFO] [stdout] --> src/main.rs:241:4 [INFO] [stdout] | [INFO] [stdout] 241 | fn chapter3_5_5() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_4` [INFO] [stdout] --> src/main.rs:257:4 [INFO] [stdout] | [INFO] [stdout] 257 | fn chapter3_5_4() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_3` [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn chapter3_5_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_2` [INFO] [stdout] --> src/main.rs:289:4 [INFO] [stdout] | [INFO] [stdout] 289 | fn chapter3_5_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_5_1` [INFO] [stdout] --> src/main.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn chapter3_5_1(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_3` [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn chapter3_3_3() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `six` [INFO] [stdout] --> src/main.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn six(inData: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `five` [INFO] [stdout] --> src/main.rs:331:4 [INFO] [stdout] | [INFO] [stdout] 331 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_2` [INFO] [stdout] --> src/main.rs:336:4 [INFO] [stdout] | [INFO] [stdout] 336 | fn chapter3_3_2() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3_1` [INFO] [stdout] --> src/main.rs:349:4 [INFO] [stdout] | [INFO] [stdout] 349 | fn chapter3_3_1(x: i32, y: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_2_1` [INFO] [stdout] --> src/main.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn chapter3_2_1() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_1` [INFO] [stdout] --> src/main.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn chapter3_1() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_2` [INFO] [stdout] --> src/main.rs:394:4 [INFO] [stdout] | [INFO] [stdout] 394 | fn chapter3_2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chapter3_3` [INFO] [stdout] --> src/main.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn chapter3_3() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sixResult` should have a snake case name [INFO] [stdout] --> src/main.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | let sixResult = six(5); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `six_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inData` should have a snake case name [INFO] [stdout] --> src/main.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 326 | fn six(inData: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `in_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "c7fe7357a0867040e741e011efd2db894271f715ac0d8e988f613a7cbd70031c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7fe7357a0867040e741e011efd2db894271f715ac0d8e988f613a7cbd70031c", kill_on_drop: false }` [INFO] [stdout] c7fe7357a0867040e741e011efd2db894271f715ac0d8e988f613a7cbd70031c