[INFO] cloning repository https://github.com/Ayu-fe/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ayu-fe/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyu-fe%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyu-fe%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c678ad00df48d3090cf392382dc954e9f559689a [INFO] building Ayu-fe/rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyu-fe%2Frust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ayu-fe/rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ayu-fe/rust [INFO] finished tweaking git repo https://github.com/Ayu-fe/rust [INFO] tweaked toml for git repo https://github.com/Ayu-fe/rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Ayu-fe/rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0de923bc9179d7910e24dbe4526bf126804f230ea0dce3b1192f9ea7d495239 [INFO] running `Command { std: "docker" "start" "-a" "e0de923bc9179d7910e24dbe4526bf126804f230ea0dce3b1192f9ea7d495239", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0de923bc9179d7910e24dbe4526bf126804f230ea0dce3b1192f9ea7d495239", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0de923bc9179d7910e24dbe4526bf126804f230ea0dce3b1192f9ea7d495239", kill_on_drop: false }` [INFO] [stdout] e0de923bc9179d7910e24dbe4526bf126804f230ea0dce3b1192f9ea7d495239 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5047cb2f0d6f02fd8c769d6e637f9348bf39ccd27d5afb10223e70ec5aac6594 [INFO] running `Command { std: "docker" "start" "-a" "5047cb2f0d6f02fd8c769d6e637f9348bf39ccd27d5afb10223e70ec5aac6594", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/reference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/struct_slice.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `str` should have an upper camel case name [INFO] [stdout] --> src/enum_if.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | str(String), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/vector.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, HashMap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/smart_point.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tStr` [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tStr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/reference.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let len = getStrLen(&mut str); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [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: `width` [INFO] [stdout] --> src/struct_slice.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/struct_slice.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/struct_slice.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let sq = Rect::square(32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/struct_slice.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [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/struct_slice.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some` [INFO] [stdout] --> src/enum_if.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let some = Some(123); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_some` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enum_if.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let none: Option = None; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/enum_if.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let two = plus_one(one); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/enum_if.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let a = back_of_house::host::Breakfast::choose_breakfase("toast"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/vector.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let arr: Vec = Vec::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let third = &arr2[2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | Some(third) => println!("this is third!"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row2` [INFO] [stdout] --> src/vector.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let row2 = vec![Sp { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_row2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/vector.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let tmp = data.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_blue` [INFO] [stdout] --> src/vector.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let team_blue = team_map.get(&String::from("blue")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_user_specified_value` [INFO] [stdout] --> src/closure.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let simulated_user_specified_value = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_user_specified_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_random_number` [INFO] [stdout] --> src/closure.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let simulated_random_number = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_random_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> src/spawn.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | let tx1 = tx.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/spawn.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let val = String::from("hi"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/guess_game.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/guess_game.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/reference.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fiber` is never used [INFO] [stdout] --> src/reference.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn fiber(mut n: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/reference.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn test(f: fn() -> fn()) -> fn() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` is never used [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/reference.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/struct_slice.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/struct_slice.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl Rect { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn can_hold(&self, other: &Rect) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `square` is never used [INFO] [stdout] --> src/struct_slice.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl Rect { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | fn square(size: u32) -> Rect { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_slice.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_rect` is never used [INFO] [stdout] --> src/struct_slice.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn clu_rect(rect: &Rect) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_first_word` is never used [INFO] [stdout] --> src/struct_slice.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/struct_slice.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NetType` is never used [INFO] [stdout] --> src/enum_if.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum NetType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enum_if.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enum_if.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl NetType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 22 | fn call(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/enum_if.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_coin` is never used [INFO] [stdout] --> src/enum_if.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn choose_coin(coin: Coin) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/enum_if.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn plus_one(i: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/enum_if.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_breakfast` is never used [INFO] [stdout] --> src/enum_if/back_of_house.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn eat_breakfast() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Breakfast` is never constructed [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Breakfast { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `choose_breakfase` is never used [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Breakfast { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn choose_breakfase(toast: &str) -> Breakfast { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sp` is never constructed [INFO] [stdout] --> src/vector.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Sp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/vector.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_demo` is never used [INFO] [stdout] --> src/vector.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn vec_demo() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_demo` is never used [INFO] [stdout] --> src/vector.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn string_demo() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_map_demo` is never used [INFO] [stdout] --> src/vector.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn hash_map_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arr_check` is never used [INFO] [stdout] --> src/vector.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn arr_check(arr: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_str` is never used [INFO] [stdout] --> src/vector.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn check_str(str: &String) -> HashMap<&str, i32> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CluType` is never used [INFO] [stdout] --> src/vector.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | enum CluType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_list` is never used [INFO] [stdout] --> src/vector.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn clu_list(arr: &mut Vec, clu_type: CluType) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/vector.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/panic_result.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/panic_result.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` is never used [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` is never used [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` is never used [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/panic_result.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/trait_life.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/trait_life.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rect { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 8 | fn mix(self, other: Rect) -> Rect { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summery` is never used [INFO] [stdout] --> src/trait_life.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Summery { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Str` is never constructed [INFO] [stdout] --> src/trait_life.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/trait_life.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait_life.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn notify(item: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_val` is never used [INFO] [stdout] --> src/trait_life.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn return_val() -> impl Summery { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/trait_life.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn largest(list: &Vec) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/trait_life.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn longest<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_ann` is never used [INFO] [stdout] --> src/trait_life.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn longest_with_ann<'a, T>(str1: &'a str, str2: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/trait_life.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/minigrep.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/minigrep.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/closure.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/closure.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/closure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 30 | / impl Cacher [INFO] [stdout] 31 | | where [INFO] [stdout] 32 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 33 | { [INFO] [stdout] 34 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn value(&mut self, val: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/closure.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn generate_workout(intensity: u32, random_number: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/closure.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/closure.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smart_point.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/smart_point.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/smart_point.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc` is never used [INFO] [stdout] --> src/smart_point.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn rc() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/smart_point.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn add(v: &RefCell) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_mut` is never used [INFO] [stdout] --> src/smart_point.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn add_mut(v: &mut i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/smart_point.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hello(s: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/smart_point.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_channel` is never used [INFO] [stdout] --> src/spawn.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn new_channel() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_spawn` is never used [INFO] [stdout] --> src/spawn.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn new_spawn() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tStr` should have a snake case name [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `t_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` should have a snake case name [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_str_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let numRect = Rect { x: 1, y: true }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `num_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let strRect = Rect { x: '1', y: false }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.03s [INFO] running `Command { std: "docker" "inspect" "5047cb2f0d6f02fd8c769d6e637f9348bf39ccd27d5afb10223e70ec5aac6594", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5047cb2f0d6f02fd8c769d6e637f9348bf39ccd27d5afb10223e70ec5aac6594", kill_on_drop: false }` [INFO] [stdout] 5047cb2f0d6f02fd8c769d6e637f9348bf39ccd27d5afb10223e70ec5aac6594 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcd5cb40621b923bc8b9ee3653b98dfb2f7fbbbd12376a47e9d7a463555f9eee [INFO] running `Command { std: "docker" "start" "-a" "bcd5cb40621b923bc8b9ee3653b98dfb2f7fbbbd12376a47e9d7a463555f9eee", kill_on_drop: false }` [INFO] [stderr] Compiling rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/reference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/struct_slice.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `str` should have an upper camel case name [INFO] [stdout] --> src/enum_if.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | str(String), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/vector.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, HashMap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/smart_point.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tStr` [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tStr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/reference.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let len = getStrLen(&mut str); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [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: `width` [INFO] [stdout] --> src/struct_slice.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/struct_slice.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/struct_slice.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let sq = Rect::square(32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/struct_slice.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [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/struct_slice.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some` [INFO] [stdout] --> src/enum_if.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let some = Some(123); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_some` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enum_if.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let none: Option = None; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/enum_if.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let two = plus_one(one); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/enum_if.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let a = back_of_house::host::Breakfast::choose_breakfase("toast"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/vector.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let arr: Vec = Vec::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let third = &arr2[2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | Some(third) => println!("this is third!"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row2` [INFO] [stdout] --> src/vector.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let row2 = vec![Sp { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_row2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/vector.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let tmp = data.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_blue` [INFO] [stdout] --> src/vector.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let team_blue = team_map.get(&String::from("blue")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_user_specified_value` [INFO] [stdout] --> src/closure.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let simulated_user_specified_value = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_user_specified_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_random_number` [INFO] [stdout] --> src/closure.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let simulated_random_number = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_random_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> src/spawn.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | let tx1 = tx.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/spawn.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let val = String::from("hi"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/guess_game.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/guess_game.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/reference.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fiber` is never used [INFO] [stdout] --> src/reference.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn fiber(mut n: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/reference.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn test(f: fn() -> fn()) -> fn() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` is never used [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/reference.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/struct_slice.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/struct_slice.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl Rect { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn can_hold(&self, other: &Rect) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `square` is never used [INFO] [stdout] --> src/struct_slice.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl Rect { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | fn square(size: u32) -> Rect { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_slice.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_rect` is never used [INFO] [stdout] --> src/struct_slice.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn clu_rect(rect: &Rect) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_first_word` is never used [INFO] [stdout] --> src/struct_slice.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/struct_slice.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NetType` is never used [INFO] [stdout] --> src/enum_if.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum NetType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enum_if.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enum_if.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl NetType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 22 | fn call(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/enum_if.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_coin` is never used [INFO] [stdout] --> src/enum_if.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn choose_coin(coin: Coin) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/enum_if.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn plus_one(i: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/enum_if.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_breakfast` is never used [INFO] [stdout] --> src/enum_if/back_of_house.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn eat_breakfast() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Breakfast` is never constructed [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Breakfast { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `choose_breakfase` is never used [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Breakfast { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn choose_breakfase(toast: &str) -> Breakfast { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sp` is never constructed [INFO] [stdout] --> src/vector.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Sp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/vector.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_demo` is never used [INFO] [stdout] --> src/vector.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn vec_demo() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_demo` is never used [INFO] [stdout] --> src/vector.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn string_demo() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_map_demo` is never used [INFO] [stdout] --> src/vector.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn hash_map_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arr_check` is never used [INFO] [stdout] --> src/vector.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn arr_check(arr: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_str` is never used [INFO] [stdout] --> src/vector.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn check_str(str: &String) -> HashMap<&str, i32> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CluType` is never used [INFO] [stdout] --> src/vector.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | enum CluType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_list` is never used [INFO] [stdout] --> src/vector.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn clu_list(arr: &mut Vec, clu_type: CluType) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/vector.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/panic_result.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/panic_result.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` is never used [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` is never used [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` is never used [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/panic_result.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/trait_life.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/trait_life.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rect { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 8 | fn mix(self, other: Rect) -> Rect { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summery` is never used [INFO] [stdout] --> src/trait_life.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Summery { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Str` is never constructed [INFO] [stdout] --> src/trait_life.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/trait_life.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait_life.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn notify(item: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_val` is never used [INFO] [stdout] --> src/trait_life.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn return_val() -> impl Summery { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/trait_life.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn largest(list: &Vec) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/trait_life.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn longest<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_ann` is never used [INFO] [stdout] --> src/trait_life.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn longest_with_ann<'a, T>(str1: &'a str, str2: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/trait_life.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/minigrep.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/minigrep.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/closure.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/closure.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/closure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 30 | / impl Cacher [INFO] [stdout] 31 | | where [INFO] [stdout] 32 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 33 | { [INFO] [stdout] 34 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn value(&mut self, val: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/closure.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn generate_workout(intensity: u32, random_number: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/closure.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/closure.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smart_point.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/smart_point.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/smart_point.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc` is never used [INFO] [stdout] --> src/smart_point.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn rc() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/smart_point.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn add(v: &RefCell) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_mut` is never used [INFO] [stdout] --> src/smart_point.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn add_mut(v: &mut i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/smart_point.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hello(s: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/smart_point.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_channel` is never used [INFO] [stdout] --> src/spawn.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn new_channel() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_spawn` is never used [INFO] [stdout] --> src/spawn.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn new_spawn() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tStr` should have a snake case name [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `t_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` should have a snake case name [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_str_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let numRect = Rect { x: 1, y: true }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `num_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let strRect = Rect { x: '1', y: false }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/reference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/struct_slice.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `str` should have an upper camel case name [INFO] [stdout] --> src/enum_if.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | str(String), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/vector.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, HashMap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/smart_point.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tStr` [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tStr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/reference.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let len = getStrLen(&mut str); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [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: `width` [INFO] [stdout] --> src/struct_slice.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/struct_slice.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/struct_slice.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let sq = Rect::square(32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/struct_slice.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let mut width = String::new(); [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/struct_slice.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let mut height = String::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some` [INFO] [stdout] --> src/enum_if.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let some = Some(123); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_some` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enum_if.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let none: Option = None; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `two` [INFO] [stdout] --> src/enum_if.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let two = plus_one(one); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/enum_if.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let a = back_of_house::host::Breakfast::choose_breakfase("toast"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/vector.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let arr: Vec = Vec::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let third = &arr2[2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/vector.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | Some(third) => println!("this is third!"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row2` [INFO] [stdout] --> src/vector.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let row2 = vec![Sp { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_row2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/vector.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let tmp = data.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_blue` [INFO] [stdout] --> src/vector.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let team_blue = team_map.get(&String::from("blue")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_user_specified_value` [INFO] [stdout] --> src/closure.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let simulated_user_specified_value = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_user_specified_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulated_random_number` [INFO] [stdout] --> src/closure.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let simulated_random_number = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulated_random_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> src/spawn.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | let tx1 = tx.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/spawn.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let val = String::from("hi"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/guess_game.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/guess_game.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/reference.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fiber` is never used [INFO] [stdout] --> src/reference.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn fiber(mut n: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/reference.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn test(f: fn() -> fn()) -> fn() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` is never used [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/reference.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/struct_slice.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/struct_slice.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl Rect { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn can_hold(&self, other: &Rect) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `square` is never used [INFO] [stdout] --> src/struct_slice.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 17 | impl Rect { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 18 | fn square(size: u32) -> Rect { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/struct_slice.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_rect` is never used [INFO] [stdout] --> src/struct_slice.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn clu_rect(rect: &Rect) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_first_word` is never used [INFO] [stdout] --> src/struct_slice.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/struct_slice.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NetType` is never used [INFO] [stdout] --> src/enum_if.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum NetType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enum_if.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enum_if.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl NetType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 22 | fn call(&self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/enum_if.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_coin` is never used [INFO] [stdout] --> src/enum_if.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn choose_coin(coin: Coin) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/enum_if.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn plus_one(i: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/enum_if.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_breakfast` is never used [INFO] [stdout] --> src/enum_if/back_of_house.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn eat_breakfast() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Breakfast` is never constructed [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Breakfast { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `choose_breakfase` is never used [INFO] [stdout] --> src/enum_if/back_of_house/host.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl Breakfast { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn choose_breakfase(toast: &str) -> Breakfast { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sp` is never constructed [INFO] [stdout] --> src/vector.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Sp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/vector.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_demo` is never used [INFO] [stdout] --> src/vector.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn vec_demo() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_demo` is never used [INFO] [stdout] --> src/vector.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn string_demo() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_map_demo` is never used [INFO] [stdout] --> src/vector.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn hash_map_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arr_check` is never used [INFO] [stdout] --> src/vector.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn arr_check(arr: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_str` is never used [INFO] [stdout] --> src/vector.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn check_str(str: &String) -> HashMap<&str, i32> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CluType` is never used [INFO] [stdout] --> src/vector.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | enum CluType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clu_list` is never used [INFO] [stdout] --> src/vector.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn clu_list(arr: &mut Vec, clu_type: CluType) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/vector.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/panic_result.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/panic_result.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` is never used [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` is never used [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` is never used [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/panic_result.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/trait_life.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/trait_life.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rect { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 8 | fn mix(self, other: Rect) -> Rect { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summery` is never used [INFO] [stdout] --> src/trait_life.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Summery { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Str` is never constructed [INFO] [stdout] --> src/trait_life.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/trait_life.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/trait_life.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn notify(item: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_val` is never used [INFO] [stdout] --> src/trait_life.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn return_val() -> impl Summery { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/trait_life.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn largest(list: &Vec) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/trait_life.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn longest<'a>(str1: &'a str, str2: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_ann` is never used [INFO] [stdout] --> src/trait_life.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn longest_with_ann<'a, T>(str1: &'a str, str2: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/trait_life.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/minigrep.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/minigrep.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/closure.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/closure.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/closure.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 30 | / impl Cacher [INFO] [stdout] 31 | | where [INFO] [stdout] 32 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________- associated items in this implementation [INFO] [stdout] 33 | { [INFO] [stdout] 34 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn value(&mut self, val: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_workout` is never used [INFO] [stdout] --> src/closure.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn generate_workout(intensity: u32, random_number: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/closure.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/closure.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smart_point.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Data` is never constructed [INFO] [stdout] --> src/smart_point.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/smart_point.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc` is never used [INFO] [stdout] --> src/smart_point.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn rc() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/smart_point.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn add(v: &RefCell) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_mut` is never used [INFO] [stdout] --> src/smart_point.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn add_mut(v: &mut i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/smart_point.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hello(s: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start` is never used [INFO] [stdout] --> src/smart_point.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_channel` is never used [INFO] [stdout] --> src/spawn.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn new_channel() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_spawn` is never used [INFO] [stdout] --> src/spawn.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn new_spawn() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tStr` should have a snake case name [INFO] [stdout] --> src/reference.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut tStr: &str = "123"; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `t_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getStrLen` should have a snake case name [INFO] [stdout] --> src/reference.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn getStrLen(s: &mut String) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_str_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV2` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_fileV2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV3` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn read_fileV3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_fileV4` should have a snake case name [INFO] [stdout] --> src/panic_result.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn read_fileV4() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_file_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let numRect = Rect { x: 1, y: true }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `num_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `strRect` should have a snake case name [INFO] [stdout] --> src/trait_life.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let strRect = Rect { x: '1', y: false }; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `str_rect` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "bcd5cb40621b923bc8b9ee3653b98dfb2f7fbbbd12376a47e9d7a463555f9eee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcd5cb40621b923bc8b9ee3653b98dfb2f7fbbbd12376a47e9d7a463555f9eee", kill_on_drop: false }` [INFO] [stdout] bcd5cb40621b923bc8b9ee3653b98dfb2f7fbbbd12376a47e9d7a463555f9eee