[INFO] cloning repository https://github.com/nkrsic/rust-essential-training [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nkrsic/rust-essential-training" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkrsic%2Frust-essential-training", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkrsic%2Frust-essential-training'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ee11647412cf69a1188f3ab5b45b95abe35ebf5 [INFO] checking nkrsic/rust-essential-training against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnkrsic%2Frust-essential-training" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nkrsic/rust-essential-training [INFO] finished tweaking git repo https://github.com/nkrsic/rust-essential-training [INFO] tweaked toml for git repo https://github.com/nkrsic/rust-essential-training written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nkrsic/rust-essential-training on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nkrsic/rust-essential-training 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f183ea9e708eef2302cba7364e4ba5a36483031fd5b20d329c8c32b60237ae8 [INFO] running `Command { std: "docker" "start" "-a" "8f183ea9e708eef2302cba7364e4ba5a36483031fd5b20d329c8c32b60237ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f183ea9e708eef2302cba7364e4ba5a36483031fd5b20d329c8c32b60237ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f183ea9e708eef2302cba7364e4ba5a36483031fd5b20d329c8c32b60237ae8", kill_on_drop: false }` [INFO] [stdout] 8f183ea9e708eef2302cba7364e4ba5a36483031fd5b20d329c8c32b60237ae8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb6310c9ac1ae61cdceb869afe5e75f58be610bd0d75dbedcaf8c11db4822f3c [INFO] running `Command { std: "docker" "start" "-a" "bb6310c9ac1ae61cdceb869afe5e75f58be610bd0d75dbedcaf8c11db4822f3c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking rust-essential-training v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/sections/statements_expressions.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | return x * x; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 12 | println!("End of function!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/sections/statements_expressions.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | return x * x; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 12 | println!("End of function!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `numbers2` [INFO] [stdout] --> src/sections/arrays.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let numbers2: [i32; 5]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_numbers2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `numbers2` [INFO] [stdout] --> src/sections/arrays.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let numbers2: [i32; 5]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_numbers2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sections/arrays.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let index: usize = numbers2.len(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sections/arrays.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let number = multi_dim[0][1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sections/arrays.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let index: usize = numbers2.len(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sections/arrays.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let number = multi_dim[0][1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `garage` [INFO] [stdout] --> src/sections/arrays.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let garage: [[[i32; 100]; 20]; 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_garage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `garage_2` [INFO] [stdout] --> src/sections/arrays.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let garage_2 = [[[11; 100]; 20]; 5]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_garage_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `garage` [INFO] [stdout] --> src/sections/arrays.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let garage: [[[i32; 100]; 20]; 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_garage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `garage_2` [INFO] [stdout] --> src/sections/arrays.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let garage_2 = [[[11; 100]; 20]; 5]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_garage_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/sections/bitwise.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let value: u8 = 0b1111_0101u8; // note the u8 suffix [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/sections/bitwise.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let value: u8 = 0b1111_0101u8; // note the u8 suffix [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propellant` [INFO] [stdout] --> src/sections/borrow_checker.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let propellant: &String; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_propellant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `propellant` [INFO] [stdout] --> src/sections/borrow_checker.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let propellant: &String; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_propellant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_borrow` [INFO] [stdout] --> src/sections/borrowing.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let length_borrow = process_fuel_w_borrow(&rocket_fuel); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_borrow` [INFO] [stdout] --> src/sections/borrowing.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let length_borrow = process_fuel_w_borrow(&rocket_fuel); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_mut_borrow` [INFO] [stdout] --> src/sections/borrowing.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let length_mut_borrow = process_fuel_w_mutable_borrow(&mut rocket_fuel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_mut_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_mut_borrow` [INFO] [stdout] --> src/sections/borrowing.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let length_mut_borrow = process_fuel_w_mutable_borrow(&mut rocket_fuel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_mut_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/borrowing.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rocket_fuel = String::from("RP-1"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/borrowing.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rocket_fuel = String::from("RP-1"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/sections/conditionals.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let z = if make_z_odd {1} else {2}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/sections/conditionals.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let z = if make_z_odd {1} else {2}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/sections/enums.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let result = match my_number { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/sections/enums.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let result = match my_number { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/error_handling.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut s2 = match fs::read_to_string(f2) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/error_handling.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut s2 = match fs::read_to_string(f2) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let int_rect = Rectangle { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let int_rect = Rectangle { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_int_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let float_rect = Rectangle { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_float_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let float_rect = Rectangle { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_float_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u8_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let u8_rect = Rectangle { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_u8_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hetero_rectangle` [INFO] [stdout] --> src/sections/generic_structs.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let hetero_rectangle = HeteroRectangle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hetero_rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u8_rect` [INFO] [stdout] --> src/sections/generic_structs.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let u8_rect = Rectangle { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_u8_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hetero_rectangle` [INFO] [stdout] --> src/sections/generic_structs.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let hetero_rectangle = HeteroRectangle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hetero_rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `barron_missions` [INFO] [stdout] --> src/sections/hash_map.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let barron_missions = missions_flown.get("Barron"); // Kayla Barron [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_barron_missions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `barron_missions` [INFO] [stdout] --> src/sections/hash_map.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let barron_missions = missions_flown.get("Barron"); // Kayla Barron [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_barron_missions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hurley_missions` [INFO] [stdout] --> src/sections/hash_map.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let hurley_missions = missions_flown.get("Hurley"); // returns an Option-wrapped value [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hurley_missions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hurley_missions` [INFO] [stdout] --> src/sections/hash_map.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let hurley_missions = missions_flown.get("Hurley"); // returns an Option-wrapped value [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hurley_missions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sections/loops.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | for (index, &item) in letters.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/sections/loops.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | for (index, &item) in letters.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/loops_challenge.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut mean: f64; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sections/loops_challenge.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut mean: f64; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/sections/options.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let username = match get_username(0) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sections/options.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let number = number.unwrap_or(&0) + 1; // shadowed, must unwrap Option [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/sections/options.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let username = match get_username(0) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sections/options.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let number = number.unwrap_or(&0) + 1; // shadowed, must unwrap Option [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents_bytes` [INFO] [stdout] --> src/sections/reading_from_files.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let contents_bytes = fs::read("planets.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents_bytes` [INFO] [stdout] --> src/sections/reading_from_files.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let contents_bytes = fs::read("planets.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/sections/statements_expressions.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | fn return_unit(a: i32) -> (){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/sections/statements_expressions.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | fn return_unit(a: i32) -> (){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/sections/tuples.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | let (a, b, c) = stuff; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/sections/tuples.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | let (a, b, c) = stuff; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sections/tuples.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | let (a, b, c) = stuff; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sections/tuples.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | let (a, b, c) = stuff; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `countdown` [INFO] [stdout] --> src/sections/vectors.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let countdown = vec![5, 4, 3, 2, 1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_countdown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `countdown` [INFO] [stdout] --> src/sections/vectors.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let countdown = vec![5, 4, 3, 2, 1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_countdown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_division` is never used [INFO] [stdout] --> src/sections/arithmetic.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn do_division(a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `w_borrow_checker` is never used [INFO] [stdout] --> src/sections/borrow_checker.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn w_borrow_checker() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_statements` is never used [INFO] [stdout] --> src/sections/conditionals.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn if_statements(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_division` is never used [INFO] [stdout] --> src/sections/arithmetic.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn do_division(a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `velocity` are never read [INFO] [stdout] --> src/sections/default_trait_impl.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Satellite { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 2 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | velocity: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `w_borrow_checker` is never used [INFO] [stdout] --> src/sections/borrow_checker.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn w_borrow_checker() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_statements` is never used [INFO] [stdout] --> src/sections/conditionals.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn if_statements(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `velocity` are never read [INFO] [stdout] --> src/sections/default_trait_impl.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Satellite { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 2 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | velocity: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Circle` and `Triangle` are never constructed [INFO] [stdout] --> src/sections/enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Circle(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Rectangle(f64, f64), [INFO] [stdout] 5 | Triangle(f64, f64, f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shape` 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 `Circle` and `Triangle` are never constructed [INFO] [stdout] --> src/sections/enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Circle(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Rectangle(f64, f64), [INFO] [stdout] 5 | Triangle(f64, f64, f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shape` 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 `DrawLine` and `DrawShape` are never constructed [INFO] [stdout] --> src/sections/enums.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 20 | Clear, [INFO] [stdout] 21 | DrawLine(f64, f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | DrawShape(Shape), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Location` is never used [INFO] [stdout] --> src/sections/enums.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/sections/enums.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Location { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 32 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_formatting` is never used [INFO] [stdout] --> src/sections/formatting.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn do_formatting(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/sections/generic_structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 2 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | height: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/sections/generic_structs.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HeteroRectangle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 7 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | height: U, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_width` is never used [INFO] [stdout] --> src/sections/generic_structs.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl HeteroRectangle { [INFO] [stdout] | -------------------------------- method in this implementation [INFO] [stdout] 12 | fn get_width(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DrawLine` and `DrawShape` are never constructed [INFO] [stdout] --> src/sections/enums.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 20 | Clear, [INFO] [stdout] 21 | DrawLine(f64, f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | DrawShape(Shape), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_perimeter` is never used [INFO] [stdout] --> src/sections/generic_structs.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl HeteroRectangle { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 19 | fn get_perimeter(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Location` is never used [INFO] [stdout] --> src/sections/enums.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `best_fuel` is never used [INFO] [stdout] --> src/sections/lifetimes.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn best_fuel<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shuttle` is never constructed [INFO] [stdout] --> src/sections/lifetimes.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Shuttle<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/sections/enums.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Location { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 32 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_formatting` is never used [INFO] [stdout] --> src/sections/formatting.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn do_formatting(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_transmission` is never used [INFO] [stdout] --> src/sections/lifetimes.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'a, 'b> Shuttle<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 15 | fn send_transmission(&'a self, msg: &'b str) -> &'b str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/sections/shapes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/sections/generic_structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 2 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | height: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/sections/generic_structs.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HeteroRectangle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 7 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | height: U, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_width` is never used [INFO] [stdout] --> src/sections/generic_structs.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl HeteroRectangle { [INFO] [stdout] | -------------------------------- method in this implementation [INFO] [stdout] 12 | fn get_width(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_area`, `scale`, `new`, and `new_2` are never used [INFO] [stdout] --> src/sections/shapes.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | fn get_area(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn scale(&mut self, factor: f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn new(w: f64, h: f64) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn new_2(width: f64, height: f64) -> Rectangle { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_perimeter` is never used [INFO] [stdout] --> src/sections/generic_structs.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl HeteroRectangle { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 19 | fn get_perimeter(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn square(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_early` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn square_early(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `best_fuel` is never used [INFO] [stdout] --> src/sections/lifetimes.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn best_fuel<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_return_tuple` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn square_return_tuple(x: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_unit` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn return_unit(a: i32) -> (){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shuttle` is never constructed [INFO] [stdout] --> src/sections/lifetimes.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Shuttle<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `celsius_to_fahrenheit` is never used [INFO] [stdout] --> src/sections/temperature.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn celsius_to_fahrenheit(c: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_transmission` is never used [INFO] [stdout] --> src/sections/lifetimes.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'a, 'b> Shuttle<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 15 | fn send_transmission(&'a self, msg: &'b str) -> &'b str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn print_type(item: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/sections/shapes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_and_print` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn compare_and_print(a: T, b: U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_displayable` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_displayable() -> impl fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_types` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn print_types() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_area`, `scale`, `new`, and `new_2` are never used [INFO] [stdout] --> src/sections/shapes.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | fn get_area(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn scale(&mut self, factor: f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn new(w: f64, h: f64) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn new_2(width: f64, height: f64) -> Rectangle { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn square(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_early` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn square_early(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_return_tuple` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn square_return_tuple(x: i32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_unit` is never used [INFO] [stdout] --> src/sections/statements_expressions.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn return_unit(a: i32) -> (){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `celsius_to_fahrenheit` is never used [INFO] [stdout] --> src/sections/temperature.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn celsius_to_fahrenheit(c: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn print_type(item: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_and_print` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn compare_and_print(a: T, b: U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_displayable` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_displayable() -> impl fmt::Display { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_types` is never used [INFO] [stdout] --> src/sections/trait_bounds.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn print_types() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sections/writing_to_files.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | fs::write("speech.txt", speech); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 12 | let _ = fs::write("speech.txt", speech); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sections/writing_to_files.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | fs::write("speech.txt", speech); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 12 | let _ = fs::write("speech.txt", speech); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::functions::say_hello` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_essential_training::sections::functions::say_hello; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::functions::say_hello` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_essential_training::sections::functions::say_hello; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::generic_structs::do_something_w_generic` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_essential_training::sections::generic_structs::do_something_w_generic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::generic_structs::do_something_w_generic` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_essential_training::sections::generic_structs::do_something_w_generic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::higher_or_lower::play_higher_or_lower` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rust_essential_training::sections::higher_or_lower::play_higher_or_lower; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::higher_or_lower::play_higher_or_lower_w_idioms` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rust_essential_training::sections::higher_or_lower::play_higher_or_lower_w_idioms; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::higher_or_lower::play_higher_or_lower` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rust_essential_training::sections::higher_or_lower::play_higher_or_lower; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_essential_training::sections::higher_or_lower::play_higher_or_lower_w_idioms` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rust_essential_training::sections::higher_or_lower::play_higher_or_lower_w_idioms; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_roster` [INFO] [stdout] --> src/main.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | use rust_essential_training::sections::reading_from_files::{check_roster, read_a_file}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_roster` [INFO] [stdout] --> src/main.rs:16:61 [INFO] [stdout] | [INFO] [stdout] 16 | use rust_essential_training::sections::reading_from_files::{check_roster, read_a_file}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let b: f64 = 10.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vehicle4` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let vehicle4 = Shuttle::new("Endeavor"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vehicle4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let b: f64 = 10.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vehicle4` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let vehicle4 = Shuttle::new("Endeavor"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vehicle4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Shuttle { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | struct Color(u8, u8, u8); // RGB [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` and `2` are never read [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | struct Point(u8, u8, u8); // RGB [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [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] 53 - struct Point(u8, u8, u8); // RGB [INFO] [stdout] 53 + struct Point((), u8, ()); // RGB [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/main.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Shuttle { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | struct Color(u8, u8, u8); // RGB [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` and `2` are never read [INFO] [stdout] --> src/main.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | struct Point(u8, u8, u8); // RGB [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [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] 53 - struct Point(u8, u8, u8); // RGB [INFO] [stdout] 53 + struct Point((), u8, ()); // RGB [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.06s [INFO] running `Command { std: "docker" "inspect" "bb6310c9ac1ae61cdceb869afe5e75f58be610bd0d75dbedcaf8c11db4822f3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb6310c9ac1ae61cdceb869afe5e75f58be610bd0d75dbedcaf8c11db4822f3c", kill_on_drop: false }` [INFO] [stdout] bb6310c9ac1ae61cdceb869afe5e75f58be610bd0d75dbedcaf8c11db4822f3c