[INFO] cloning repository https://github.com/MUKUL47/rust-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MUKUL47/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac271d492626451ebc2f75a79cff6a56b14bf486 [INFO] checking MUKUL47/rust-exercises/ac271d492626451ebc2f75a79cff6a56b14bf486 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMUKUL47%2Frust-exercises" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MUKUL47/rust-exercises on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MUKUL47/rust-exercises [INFO] finished tweaking git repo https://github.com/MUKUL47/rust-exercises [INFO] tweaked toml for git repo https://github.com/MUKUL47/rust-exercises written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MUKUL47/rust-exercises already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75925aab0fa1e3d812807a2837a034f2c2c2c93eed5bcf14ab06649ec878ab63 [INFO] running `Command { std: "docker" "start" "-a" "75925aab0fa1e3d812807a2837a034f2c2c2c93eed5bcf14ab06649ec878ab63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75925aab0fa1e3d812807a2837a034f2c2c2c93eed5bcf14ab06649ec878ab63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75925aab0fa1e3d812807a2837a034f2c2c2c93eed5bcf14ab06649ec878ab63", kill_on_drop: false }` [INFO] [stdout] 75925aab0fa1e3d812807a2837a034f2c2c2c93eed5bcf14ab06649ec878ab63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3612545f3291bc0e59f2fccf766a2cf3676d9b0f9e75adf536dbe06a960750a4 [INFO] running `Command { std: "docker" "start" "-a" "3612545f3291bc0e59f2fccf766a2cf3676d9b0f9e75adf536dbe06a960750a4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking main v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `Cursor`, `DerefMut`, `Deref`, `Write`, `process::exit`, `thread::sleep`, and `time::Duration` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{ Borrow, BorrowMut }, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | future::IntoFuture, [INFO] [stdout] 4 | io::{ Write, Cursor }, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] 5 | ops::{ Deref, DerefMut }, [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] 6 | process::exit, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | thread::sleep, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `Cursor`, `DerefMut`, `Deref`, `Write`, `process::exit`, `thread::sleep`, and `time::Duration` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{ Borrow, BorrowMut }, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] 3 | future::IntoFuture, [INFO] [stdout] 4 | io::{ Write, Cursor }, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] 5 | ops::{ Deref, DerefMut }, [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] 6 | process::exit, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | thread::sleep, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie/mod.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | if(i == word.len() - 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - if(i == word.len() - 1){ [INFO] [stdout] 64 + if i == word.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie/mod.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | if(i == word.len() - 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - if(i == word.len() - 1){ [INFO] [stdout] 64 + if i == word.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/todo/mod.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | Some((t, i)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/stack/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `peek`, `pop`, `get_by_idx`, and `iter` are never used [INFO] [stdout] --> src/stack/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(d: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn push(&mut self, data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn peek(&mut self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> &mut Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_by_idx(&mut self, index: i32) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn iter, i32) + Copy>(&mut self, closure: F) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parenthesis` is never constructed [INFO] [stdout] --> src/stack/parenthesis.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Parenthesis; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate` is never used [INFO] [stdout] --> src/stack/parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Parenthesis { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 3 | pub fn validate(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameState` is never used [INFO] [stdout] --> src/tictactoe/mod.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum GameState{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `print_board`, `cell_idx_map`, `check_win_draw_conditions`, and `start_game` are never used [INFO] [stdout] --> src/tictactoe/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TicTacToe { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn print_board(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn cell_idx_map(&self,n : usize) -> (usize, usize){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn check_win_draw_conditions(&self) -> GameState{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Todo` is never constructed [INFO] [stdout] --> src/todo/mod.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Todo{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/todo/mod.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | Some((t, i)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskStatus` is never used [INFO] [stdout] --> src/todo/mod.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum TaskStatus{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/todo/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Task{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/todo/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Todo{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 16 | pub fn new () -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn ask_std_inp(question: &str) -> String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn create_new_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn update_task_status(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn update_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn get_status_map(task: String) ->TaskStatus{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_task_by_id(&mut self, id: usize) -> Option<(&mut Task, usize)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn ask_for_task_id(&self) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn delete_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn print_options(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn perform_operations(&mut self, option: i32)-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn print_todos(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn start(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trie` is never constructed [INFO] [stdout] --> src/trie/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Trie{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/trie/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_word`, `is_word`, `get_last_char`, `get_auto_complete`, and `delete_word` are never used [INFO] [stdout] --> src/trie/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Trie{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add_word(&mut self, word: String) -> &mut Self{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn is_word(&mut self, word: String) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn get_last_char(&mut self, word: String) -> Option<&mut TreeNode>{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_auto_complete(&mut self, prefix: String) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn delete_word(&mut self, word: String) -> &mut Self{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set`, `get`, `has`, and `convert_char_usize` are never used [INFO] [stdout] --> src/hashmap/mod.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl MyHashMap { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 2 | pub fn new(max_entries: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn set(&mut self, key: &str, value: &str) -> &mut Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn has(&mut self, key: &str) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn convert_char_usize(key: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashMap` is never used [INFO] [stdout] --> src/hashmap/mod.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | enum HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyHashMap` is never constructed [INFO] [stdout] --> src/hashmap/mod.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct MyHashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyHashMap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyHashMapVec` is never constructed [INFO] [stdout] --> src/hashmap/mod.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyHashMapVec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_area_traits` is never used [INFO] [stdout] --> src/traits/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn render_area_traits() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_area` and `calculate_perimeter` are never used [INFO] [stdout] --> src/traits/area.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Area { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 2 | fn calculate_area(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 3 | fn calculate_perimeter(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_circumference` and `calculate_area` are never used [INFO] [stdout] --> src/traits/area.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait RoundArea { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 7 | fn calculate_circumference(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fn calculate_area(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Calculate` is never constructed [INFO] [stdout] --> src/traits/area.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Calculate; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Calculate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `area`, `perimeter`, `round_circumference`, and `round_area` are never used [INFO] [stdout] --> src/traits/area.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Calculate { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 43 | pub fn area(shape: T) -> usize where T: Area { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn perimeter(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn round_circumference(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn round_area(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vehicle` is never used [INFO] [stdout] --> src/traits/vehicle.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bike` is never used [INFO] [stdout] --> src/traits/vehicle.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Bike { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Car` is never used [INFO] [stdout] --> src/traits/vehicle.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Car { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ford` is never constructed [INFO] [stdout] --> src/traits/vehicle.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Ford { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_running` is never read [INFO] [stdout] --> src/traits/vehicle.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct FourWheel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 34 | is_running: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_driving`, and `stop_driving` are never used [INFO] [stdout] --> src/traits/vehicle.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl FourWheel { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 37 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn start_driving(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn stop_driving(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | test().into_future(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/stack/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `peek`, `pop`, `get_by_idx`, and `iter` are never used [INFO] [stdout] --> src/stack/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(d: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn push(&mut self, data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn peek(&mut self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> &mut Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_by_idx(&mut self, index: i32) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn iter, i32) + Copy>(&mut self, closure: F) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parenthesis` is never constructed [INFO] [stdout] --> src/stack/parenthesis.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Parenthesis; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate` is never used [INFO] [stdout] --> src/stack/parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Parenthesis { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 3 | pub fn validate(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameState` is never used [INFO] [stdout] --> src/tictactoe/mod.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum GameState{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `print_board`, `cell_idx_map`, `check_win_draw_conditions`, and `start_game` are never used [INFO] [stdout] --> src/tictactoe/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TicTacToe { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn print_board(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn cell_idx_map(&self,n : usize) -> (usize, usize){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn check_win_draw_conditions(&self) -> GameState{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn start_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Todo` is never constructed [INFO] [stdout] --> src/todo/mod.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Todo{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskStatus` is never used [INFO] [stdout] --> src/todo/mod.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum TaskStatus{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/todo/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Task{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/todo/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Todo{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 16 | pub fn new () -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn ask_std_inp(question: &str) -> String{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn create_new_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn update_task_status(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn update_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn get_status_map(task: String) ->TaskStatus{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_task_by_id(&mut self, id: usize) -> Option<(&mut Task, usize)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn ask_for_task_id(&self) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn delete_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn print_options(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn perform_operations(&mut self, option: i32)-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn print_todos(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn start(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set`, `get`, `has`, and `convert_char_usize` are never used [INFO] [stdout] --> src/hashmap/mod.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl MyHashMap { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 2 | pub fn new(max_entries: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn set(&mut self, key: &str, value: &str) -> &mut Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn has(&mut self, key: &str) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn convert_char_usize(key: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HashMap` is never used [INFO] [stdout] --> src/hashmap/mod.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | enum HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyHashMap` is never constructed [INFO] [stdout] --> src/hashmap/mod.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct MyHashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyHashMap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyHashMapVec` is never constructed [INFO] [stdout] --> src/hashmap/mod.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyHashMapVec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_area_traits` is never used [INFO] [stdout] --> src/traits/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn render_area_traits() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_area` and `calculate_perimeter` are never used [INFO] [stdout] --> src/traits/area.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Area { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 2 | fn calculate_area(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 3 | fn calculate_perimeter(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_circumference` and `calculate_area` are never used [INFO] [stdout] --> src/traits/area.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait RoundArea { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 7 | fn calculate_circumference(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fn calculate_area(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Calculate` is never constructed [INFO] [stdout] --> src/traits/area.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Calculate; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Calculate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `area`, `perimeter`, `round_circumference`, and `round_area` are never used [INFO] [stdout] --> src/traits/area.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Calculate { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 43 | pub fn area(shape: T) -> usize where T: Area { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn perimeter(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn round_circumference(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn round_area(shape: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Vehicle` is never used [INFO] [stdout] --> src/traits/vehicle.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bike` is never used [INFO] [stdout] --> src/traits/vehicle.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Bike { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Car` is never used [INFO] [stdout] --> src/traits/vehicle.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Car { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ford` is never constructed [INFO] [stdout] --> src/traits/vehicle.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Ford { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_running` is never read [INFO] [stdout] --> src/traits/vehicle.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct FourWheel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 34 | is_running: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_driving`, and `stop_driving` are never used [INFO] [stdout] --> src/traits/vehicle.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl FourWheel { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 37 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn start_driving(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn stop_driving(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | test().into_future(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.38s [INFO] running `Command { std: "docker" "inspect" "3612545f3291bc0e59f2fccf766a2cf3676d9b0f9e75adf536dbe06a960750a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3612545f3291bc0e59f2fccf766a2cf3676d9b0f9e75adf536dbe06a960750a4", kill_on_drop: false }` [INFO] [stdout] 3612545f3291bc0e59f2fccf766a2cf3676d9b0f9e75adf536dbe06a960750a4