[INFO] cloning repository https://github.com/ColonelBucket8/rust-project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ColonelBucket8/rust-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColonelBucket8%2Frust-project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColonelBucket8%2Frust-project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81ebfadc1335fbcaf26fc20766950a76715f5e3e [INFO] checking ColonelBucket8/rust-project/81ebfadc1335fbcaf26fc20766950a76715f5e3e against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColonelBucket8%2Frust-project" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ColonelBucket8/rust-project on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ColonelBucket8/rust-project [INFO] finished tweaking git repo https://github.com/ColonelBucket8/rust-project [INFO] tweaked toml for git repo https://github.com/ColonelBucket8/rust-project written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ColonelBucket8/rust-project 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.134 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4a1cfdc551e4d8a7afd05ec049aedfe1f60ea4621577af69915c6e94f8cf2d2 [INFO] running `Command { std: "docker" "start" "-a" "e4a1cfdc551e4d8a7afd05ec049aedfe1f60ea4621577af69915c6e94f8cf2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4a1cfdc551e4d8a7afd05ec049aedfe1f60ea4621577af69915c6e94f8cf2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4a1cfdc551e4d8a7afd05ec049aedfe1f60ea4621577af69915c6e94f8cf2d2", kill_on_drop: false }` [INFO] [stdout] e4a1cfdc551e4d8a7afd05ec049aedfe1f60ea4621577af69915c6e94f8cf2d2 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e15e36830f1892e7a17264508465345f323dd07f06a7560ec980c6a85602332d [INFO] running `Command { std: "docker" "start" "-a" "e15e36830f1892e7a17264508465345f323dd07f06a7560ec980c6a85602332d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust-project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/lib.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/lib.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 117 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/lib.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 142 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prints_and_returns_10` is never used [INFO] [stdout] --> src/lib.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn prints_and_returns_10(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/lib.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 142 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JoinHandle` [INFO] [stdout] --> src/multi_thread.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::{self, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `guessing_game::guessing_game` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use guessing_game::guessing_game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enter_array` [INFO] [stdout] --> src/main.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | use variables::{enter_array, variables}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JoinHandle` [INFO] [stdout] --> src/multi_thread.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::{self, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `guessing_game::guessing_game` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use guessing_game::guessing_game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enter_array` [INFO] [stdout] --> src/main.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | use variables::{enter_array, variables}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advanced_types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let f: Thunk = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advanced_types.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | fn takes_long_type(f: Thunk) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/advanced_types.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | fn generic(t: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> src/closures.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let expensive_closure = |num: u32| -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/closures.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let s = example_closure(String::from("Hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advanced_types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let f: Thunk = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/advanced_types.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | fn takes_long_type(f: Thunk) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/advanced_types.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | fn generic(t: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/common_collections.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> src/common_collections.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let v1 = vec![1, 2, 3]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> src/closures.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let expensive_closure = |num: u32| -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/closures.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let s = example_closure(String::from("Hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/common_collections.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> src/common_collections.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let v1 = vec![1, 2, 3]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | 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/enum_and_pattern_matching.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 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: `home` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home2` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let home2 = IpAddrV2::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback2` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let loopback2 = IpAddrV2::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let some_char = Some('e'); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/enum_and_pattern_matching.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_spaces` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | fn move_player(num_spaces: u8) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_2` [INFO] [stdout] --> src/error_handling.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let greeting_file_2 = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_3` [INFO] [stdout] --> src/error_handling.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let greeting_file_3 = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer` [INFO] [stdout] --> src/generic_types.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let integer = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/generic_types.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let float = Point { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> src/generic_types.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let integer_and_float = PointV2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | 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/enum_and_pattern_matching.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 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: `home` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home2` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let home2 = IpAddrV2::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback2` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let loopback2 = IpAddrV2::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_char` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let some_char = Some('e'); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/enum_and_pattern_matching.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_spaces` [INFO] [stdout] --> src/enum_and_pattern_matching.rs:133:16 [INFO] [stdout] | [INFO] [stdout] 133 | fn move_player(num_spaces: u8) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_2` [INFO] [stdout] --> src/error_handling.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let greeting_file_2 = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file_3` [INFO] [stdout] --> src/error_handling.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let greeting_file_3 = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer` [INFO] [stdout] --> src/generic_types.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let integer = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/generic_types.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let float = Point { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> src/generic_types.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let integer_and_float = PointV2 { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop_pattern.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let s = "Hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let s1 = gives_ownership(); // gives_ownership moevs its return value into s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/ownership.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let s3 = takes_and_gives_back(s2); // s2 is moves into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop_pattern.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let s = "Hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let s1 = gives_ownership(); // gives_ownership moevs its return value into s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/ownership.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let s3 = takes_and_gives_back(s2); // s2 is moves into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/smart_pointers.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smart_pointers.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/smart_pointers.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/smart_pointers.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let y = ConsV2(3, Rc::clone(&x)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/smart_pointers.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let z = ConsV2(4, Rc::clone(&x)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/smart_pointers.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smart_pointers.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/smart_pointers.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/smart_pointers.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let y = ConsV2(3, Rc::clone(&x)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/smart_pointers.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let z = ConsV2(4, Rc::clone(&x)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user3` [INFO] [stdout] --> src/structs.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let user3 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user4` [INFO] [stdout] --> src/structs.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let user4 = build_user( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> src/structs.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/structs.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/the_slice_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let word = first_word_v2(&s); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/the_slice_type.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let hello = &str[0..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/the_slice_type.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let hello = &str[..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/the_slice_type.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let world = &str[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/the_slice_type.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let world = &str[6..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/the_slice_type.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let slice = &str[0..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user3` [INFO] [stdout] --> src/structs.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let user3 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user4` [INFO] [stdout] --> src/structs.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let user4 = build_user( [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/the_slice_type.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let slice = &str[..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> src/structs.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/structs.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/the_slice_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let word = first_word_v2(&s); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/the_slice_type.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let hello = &str[0..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/the_slice_type.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let hello = &str[..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/the_slice_type.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let world = &str[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/the_slice_type.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let world = &str[6..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/the_slice_type.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let slice = &str[0..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/the_slice_type.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let slice = &str[..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/traits.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn notify_v3(items: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/traits.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn notify_v4(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/traits.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn notify_v3(items: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/traits.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn notify_v4(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/traits.rs:105:56 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/traits.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/traits.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/traits.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/unsafe_rust.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/traits.rs:105:56 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/traits.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/traits.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/traits.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/unsafe_rust.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> src/advanced_functions_and_closures.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/advanced_traits.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/advanced_traits.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> src/advanced_traits.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 91 | trait OutlinePrint: fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Write` is never used [INFO] [stdout] --> src/advanced_types.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Write { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_long_type` is never used [INFO] [stdout] --> src/advanced_types.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn takes_long_type(f: Thunk) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic` is never used [INFO] [stdout] --> src/advanced_types.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn generic(t: &T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | width: u32, [INFO] [stdout] 40 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 7 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 8 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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] 15 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 13 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Write(String), [INFO] [stdout] 16 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 26 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 32 | Alabama, [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: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 38 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 40 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reroll` is never used [INFO] [stdout] --> src/enum_and_pattern_matching.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn reroll() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/error_handling.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Guess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/error_handling.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn open_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_first_line` is never used [INFO] [stdout] --> src/error_handling.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn last_char_of_first_line(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/functions.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/functions.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn plus_one(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/generic_types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | x: T, [INFO] [stdout] 5 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic_types.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct PointV2 { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 10 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> src/generic_types.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 19 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn y(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/generic_types.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 28 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessing_game` is never used [INFO] [stdout] --> src/guessing_game.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/lifetimes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 8 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HelloMacro` is never used [INFO] [stdout] --> src/macros.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait HelloMacro { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pancakes` is never constructed [INFO] [stdout] --> src/macros.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Pancakes; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AveragedCollection` is never constructed [INFO] [stdout] --> src/oop.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct AveragedCollection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add`, `remove`, `average`, and `update_average` are never used [INFO] [stdout] --> src/oop.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl AveragedCollection { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 7 | pub fn add(&mut self, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn remove(&mut self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn average(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn update_average(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `label` are never read [INFO] [stdout] --> src/oop.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 50 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> src/oop.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 60 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> src/patterns_and_matching.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 123 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/patterns_and_matching.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 128 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 129 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 130 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> src/patterns_and_matching.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 181 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 182 | x: i32, [INFO] [stdout] 183 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 184 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 9 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | ConsV2(i32, Rc), [INFO] [stdout] | ------ ^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 14 | ConsV2((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ConsV3(Rc>, Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ListV3` 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] 20 | ConsV3((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/smart_pointers.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | ConsV4(i32, RefCell>), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ListV4` 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] 26 | ConsV4((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/smart_pointers.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 90 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | parent: RefCell>, [INFO] [stdout] 92 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `sign_in_count` are never read [INFO] [stdout] --> src/structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | email: String, [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/the_slice_type.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/traits.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 47 | pub username: String, [INFO] [stdout] 48 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v2` is never used [INFO] [stdout] --> src/traits.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn notify_v2(item: &T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v3` is never used [INFO] [stdout] --> src/traits.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn notify_v3(items: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v4` is never used [INFO] [stdout] --> src/traits.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn notify_v4(item: &T) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/traits.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function_v2` is never used [INFO] [stdout] --> src/traits.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/unsafe_rust.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enter_array` is never used [INFO] [stdout] --> src/variables.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn enter_array() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> src/advanced_functions_and_closures.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/advanced_traits.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> src/advanced_traits.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> src/advanced_traits.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 91 | trait OutlinePrint: fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Write` is never used [INFO] [stdout] --> src/advanced_types.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Write { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_long_type` is never used [INFO] [stdout] --> src/advanced_types.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn takes_long_type(f: Thunk) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic` is never used [INFO] [stdout] --> src/advanced_types.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn generic(t: &T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | width: u32, [INFO] [stdout] 40 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closures.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_size` is never used [INFO] [stdout] --> src/closures.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 7 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 8 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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] 15 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 13 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Write(String), [INFO] [stdout] 16 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/enum_and_pattern_matching.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 26 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 32 | Alabama, [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: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/enum_and_pattern_matching.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 38 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 40 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reroll` is never used [INFO] [stdout] --> src/enum_and_pattern_matching.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn reroll() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/error_handling.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Guess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/error_handling.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn open_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_char_of_first_line` is never used [INFO] [stdout] --> src/error_handling.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn last_char_of_first_line(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/functions.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/functions.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn plus_one(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/generic_types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | x: T, [INFO] [stdout] 5 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generic_types.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct PointV2 { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 10 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> src/generic_types.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 19 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn y(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 109 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/generic_types.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 28 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessing_game` is never used [INFO] [stdout] --> src/guessing_game.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/lifetimes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 8 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HelloMacro` is never used [INFO] [stdout] --> src/macros.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait HelloMacro { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pancakes` is never constructed [INFO] [stdout] --> src/macros.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Pancakes; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AveragedCollection` is never constructed [INFO] [stdout] --> src/oop.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct AveragedCollection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add`, `remove`, `average`, and `update_average` are never used [INFO] [stdout] --> src/oop.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl AveragedCollection { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 7 | pub fn add(&mut self, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn remove(&mut self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn average(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn update_average(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `label` are never read [INFO] [stdout] --> src/oop.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 50 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> src/oop.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 60 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> src/patterns_and_matching.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 123 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/patterns_and_matching.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 128 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 129 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 130 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> src/patterns_and_matching.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 181 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 182 | x: i32, [INFO] [stdout] 183 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 184 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 9 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | ConsV2(i32, Rc), [INFO] [stdout] | ------ ^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 14 | ConsV2((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ConsV3(Rc>, Rc), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ListV3` 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] 20 | ConsV3((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/smart_pointers.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | ConsV4(i32, RefCell>), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ListV4` 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] 26 | ConsV4((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> src/smart_pointers.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> src/smart_pointers.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct LimitTracker<'a, T: Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> src/smart_pointers.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 50 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 51 | | where [INFO] [stdout] 52 | | T: Messenger, [INFO] [stdout] | |_________________- associated items in this implementation [INFO] [stdout] 53 | { [INFO] [stdout] 54 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/smart_pointers.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 90 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | parent: RefCell>, [INFO] [stdout] 92 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `sign_in_count` are never read [INFO] [stdout] --> src/structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | email: String, [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/the_slice_type.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/traits.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 47 | pub username: String, [INFO] [stdout] 48 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v2` is never used [INFO] [stdout] --> src/traits.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn notify_v2(item: &T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v3` is never used [INFO] [stdout] --> src/traits.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn notify_v3(items: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_v4` is never used [INFO] [stdout] --> src/traits.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn notify_v4(item: &T) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/traits.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function_v2` is never used [INFO] [stdout] --> src/traits.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn some_function_v2(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/unsafe_rust.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enter_array` is never used [INFO] [stdout] --> src/variables.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn enter_array() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.11s [INFO] running `Command { std: "docker" "inspect" "e15e36830f1892e7a17264508465345f323dd07f06a7560ec980c6a85602332d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e15e36830f1892e7a17264508465345f323dd07f06a7560ec980c6a85602332d", kill_on_drop: false }` [INFO] [stdout] e15e36830f1892e7a17264508465345f323dd07f06a7560ec980c6a85602332d