[INFO] cloning repository https://github.com/fisher310/rust-leet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fisher310/rust-leet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffisher310%2Frust-leet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffisher310%2Frust-leet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 040bd925218cb7005c6e79e91906e0a4315807ce [INFO] checking fisher310/rust-leet against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffisher310%2Frust-leet" "/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/fisher310/rust-leet on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fisher310/rust-leet [INFO] finished tweaking git repo https://github.com/fisher310/rust-leet [INFO] tweaked toml for git repo https://github.com/fisher310/rust-leet written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fisher310/rust-leet 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21cb129e976e2fd8864743630592185e0e1867929b6ae4a4d8275986b415c325 [INFO] running `Command { std: "docker" "start" "-a" "21cb129e976e2fd8864743630592185e0e1867929b6ae4a4d8275986b415c325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21cb129e976e2fd8864743630592185e0e1867929b6ae4a4d8275986b415c325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21cb129e976e2fd8864743630592185e0e1867929b6ae4a4d8275986b415c325", kill_on_drop: false }` [INFO] [stdout] 21cb129e976e2fd8864743630592185e0e1867929b6ae4a4d8275986b415c325 [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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6361a2f362bbc95bb72b7d4906180d43124f8c7e3dce2c8748fa736a5ae86370 [INFO] running `Command { std: "docker" "start" "-a" "6361a2f362bbc95bb72b7d4906180d43124f8c7e3dce2c8748fa736a5ae86370", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.10 [INFO] [stderr] Compiling serde v1.0.167 [INFO] [stderr] Compiling serde_json v1.0.100 [INFO] [stderr] Checking ryu v1.0.14 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Compiling syn v2.0.23 [INFO] [stderr] Compiling serde_derive v1.0.167 [INFO] [stderr] Checking rust-leet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `sync::mpsc::channel`, `thread`, and `time::Duration` [INFO] [stdout] --> src/async_channels.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::mpsc::channel, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic` [INFO] [stdout] --> src/catch_unwind.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/cell.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/common.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `RefCell`, and `rc::Rc` [INFO] [stdout] --> src/mem_introspection.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 3 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `thread` [INFO] [stdout] --> src/mutex_basics.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | sync::{Arc, Mutex}, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 3 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::p4::help` [INFO] [stdout] --> src/p108.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::p4::help; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common` [INFO] [stdout] --> src/p2.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | use crate::common; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p2.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `fmt::Binary`, and `ops::Deref` [INFO] [stdout] --> src/p23.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::BinaryHeap, fmt::Binary, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Solution` [INFO] [stdout] --> src/p2432.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | use super::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Solution` [INFO] [stdout] --> src/p3.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p4.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p5.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::*` [INFO] [stdout] --> src/p766.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::common::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p9.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/refcell_basics.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File`, `io::Read`, and `path::Path` [INFO] [stdout] --> src/result_basics_fixed.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::Read, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::mpsc` and `thread` [INFO] [stdout] --> src/sync_channels.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::mpsc, thread}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::Arc`, `thread`, and `time::Duration` [INFO] [stdout] --> src/thread_arc.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/word_counter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/word_counter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::BufRead` [INFO] [stdout] --> src/word_counter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/word_counter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn car_arrived(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn car_arrived(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> google/elevator.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | fn car_floor_button_pressed(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> google/elevator.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | fn car_floor_button_pressed(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OPEN`, `CLOSE`, `UP`, and `DOWN` are never constructed [INFO] [stdout] --> google/elevator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | // TODO: add required variants [INFO] [stdout] 5 | OPEN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | CLOSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | UP(i32), [INFO] [stdout] | ^^ [INFO] [stdout] 8 | DOWN(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> google/expression_evaluation.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> google/expression_evaluation.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> google/expression_evaluation.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn eval(e: Expression) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OPEN`, `CLOSE`, `UP`, and `DOWN` are never constructed [INFO] [stdout] --> google/elevator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | // TODO: add required variants [INFO] [stdout] 5 | OPEN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | CLOSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | UP(i32), [INFO] [stdout] | ^^ [INFO] [stdout] 8 | DOWN(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> google/elevator.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Up, [INFO] [stdout] 15 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> google/elevator.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Up, [INFO] [stdout] 15 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/alphamettics.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/dot_dsl.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/isbn_verifier.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::p4::help` [INFO] [stdout] --> src/p108.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::p4::help; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common` [INFO] [stdout] --> src/p1094.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::common; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `fmt::Binary`, and `ops::Deref` [INFO] [stdout] --> src/p23.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::BinaryHeap, fmt::Binary, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/p363.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::solutions` [INFO] [stdout] --> src/p363.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use crate::solutions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `hello_int` should have an upper camel case name [INFO] [stdout] --> src/p363.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | union hello_int { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `HelloInt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::*` [INFO] [stdout] --> src/p766.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::common::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pascals_triangle::*` [INFO] [stdout] --> src/pascals_triangle.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use crate::pascals_triangle::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/word_counter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piles` [INFO] [stdout] --> src/p1140.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p206.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut dummy = Box::new(ListNode { val: 0, next: None }); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/p2432.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/p357.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 1..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fourth` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let fourth = s.get(4).ok_or("I got only 3 fruits")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fourth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidInputBase`, `InvalidOutputBase`, and `InvalidDigit` are never constructed [INFO] [stdout] --> src/all_your_base.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | InvalidInputBase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | InvalidOutputBase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | InvalidDigit(u32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert` is never used [INFO] [stdout] --> src/all_your_base.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn convert(number: &[u32], from_base: u32, to_base: u32) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Allergies` is never constructed [INFO] [stdout] --> src/allergies.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Allergies { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/allergies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Allergen { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Eggs = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Peanuts = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Shellfish = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | Strawberries = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | Tomatoes = 16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Chocolate = 32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | Pollen = 64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Cats = 128, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allergen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_allergic_to`, and `allergies` are never used [INFO] [stdout] --> src/allergies.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Allergies { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(score: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_allergic_to(&self, allergen: &Allergen) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn allergies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alphametic` is never constructed [INFO] [stdout] --> src/alphamettics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Alphametic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/alphamettics.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Alphametic { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/alphamettics.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solve(input: &str) -> Option> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/alphamettics.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn helper( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find` is never used [INFO] [stdout] --> src/binary_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find(array: F, key: T) -> Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_the_n` is never used [INFO] [stdout] --> src/borrowing_functions.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn take_the_n(n: &mut u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_the_s` is never used [INFO] [stdout] --> src/borrowing_functions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn take_the_s(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Food` is never used [INFO] [stdout] --> src/borrowing_match.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Food { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/borrowing_match.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_ref` is never used [INFO] [stdout] --> src/box_basics.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn box_ref(b: T) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/box_basics.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Foo; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/cell.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/cell_cache.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/cell_cache.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 10 | fn sum(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_list` is never used [INFO] [stdout] --> src/common.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn create_list(list: &[i32]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_list` is never used [INFO] [stdout] --> src/common.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn print_list(list: Option>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_help` is never used [INFO] [stdout] --> src/common.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn print_help(list: Option>) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 74 | #[inline] [INFO] [stdout] 75 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_tree` is never used [INFO] [stdout] --> src/common.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn create_tree(arr: &[Option]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vec_from_arr` is never used [INFO] [stdout] --> src/common.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_vec_from_arr(a: &[&[T]]) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/complex.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Complex { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 10 | fn new(re: T, im: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primes` is never constructed [INFO] [stdout] --> src/custom_iterator.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Primes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `iter` are never used [INFO] [stdout] --> src/custom_iterator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Primes { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 6 | fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | fn iter(&self) -> PrimesIter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_primes` is never used [INFO] [stdout] --> src/custom_iterator.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn compute_primes(limit: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrimesIter` is never constructed [INFO] [stdout] --> src/custom_iterator.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct PrimesIter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/dot_dsl.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_nodes`, `with_edges`, `with_attrs`, and `node` are never used [INFO] [stdout] --> src/dot_dsl.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn with_nodes(mut self, nodes: &[Node]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_edges(mut self, edges: &[Edge]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn node(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_attrs`, and `attr` are never used [INFO] [stdout] --> src/dot_dsl.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 71 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 72 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn attr(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_attrs`, and `attr` are never used [INFO] [stdout] --> src/dot_dsl.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 106 | impl Edge { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 107 | pub fn new(from: &str, to: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn attr(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinkedList(std::marker::PhantomData); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cursor<'a, T>(std::marker::PhantomData<&'a mut T>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, `len`, `cursor_front`, `cursor_back`, and `iter` are never used [INFO] [stdout] --> src/double_linkedlist.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn cursor_front(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn cursor_back(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_mut`, `next`, `prev`, `take`, `insert_after`, and `insert_before` are never used [INFO] [stdout] --> src/double_linkedlist.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Cursor<'_, T> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 49 | /// Take a mutable reference to the current element [INFO] [stdout] 50 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn next(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn prev(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn insert_after(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn insert_before(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_me` is never used [INFO] [stdout] --> src/dyn_trait.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn show_me(item: &dyn Display) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `School` is never constructed [INFO] [stdout] --> src/grade_school.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct School { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `grades`, and `grade` are never used [INFO] [stdout] --> src/grade_school.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl School { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> School { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&mut self, grade: u32, student: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn grades(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn grade(&self, grade: u32) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_isbn` is never used [INFO] [stdout] --> src/isbn_verifier.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn is_valid_isbn(isbn: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/let_ref_mut.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Items(u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/linked_list.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/linked_list.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/linked_list2.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Link = Option>>>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list2.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/linked_list2.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn set_prev(&mut self, other: &Link) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn set_next(&mut self, other: &Link) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_prev(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn get_next(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn get_data(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn new_link(data: T) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/linked_list2.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/linked_list2.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 52 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn push(&mut self, data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push_front(&mut self, data: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn pop(&mut self) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn pop_front(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/match_ref.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Person(String); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/p1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p100.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_same_tree` is never used [INFO] [stdout] --> src/p100.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn is_same_tree( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p101.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_symmetric` is never used [INFO] [stdout] --> src/p101.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_helper` is never used [INFO] [stdout] --> src/p101.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn symmetric_helper(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p104.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_depth` is never used [INFO] [stdout] --> src/p104.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p108.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sorted_array_to_bst` is never used [INFO] [stdout] --> src/p108.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p108.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn helper(nums: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1094.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `car_pooling` is never used [INFO] [stdout] --> src/p1094.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn car_pooling(trips: Vec>, capacity: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p110.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_balanced` is never used [INFO] [stdout] --> src/p110.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn is_balanced(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `balance_helper` is never used [INFO] [stdout] --> src/p110.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn balance_helper(node: Option>>) -> (i32, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p111.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_depth` is never used [INFO] [stdout] --> src/p111.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p112.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_path_sum` is never used [INFO] [stdout] --> src/p112.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn has_path_sum(root: Option>>, target_sum: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1140.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stone_game_ii` is never used [INFO] [stdout] --> src/p1140.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1217.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_cost_to_move_chips` is never used [INFO] [stdout] --> src/p1217.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn min_cost_to_move_chips(position: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1221.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `balanced_string_split` is never used [INFO] [stdout] --> src/p1221.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn balanced_string_split(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p19.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_nth_from_end` is never used [INFO] [stdout] --> src/p19.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_two_numbers` is never used [INFO] [stdout] --> src/p2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/p2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p20.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid` is never used [INFO] [stdout] --> src/p20.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p206.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reverse_list` is never used [INFO] [stdout] --> src/p206.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p21.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/p21.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p224.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `calculate` is never used [INFO] [stdout] --> src/p224.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn calculate(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p224.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn helper(expr: &[char]) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p23.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_k_lists` is never used [INFO] [stdout] --> src/p23.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p234.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/p234.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn is_palindrome(mut head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p24.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `swap_pairs` is never used [INFO] [stdout] --> src/p24.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p2432.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `hardest_worker` is never used [INFO] [stdout] --> src/p2432.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p3.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/p3.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p357.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `count_numbers_with_unique_digits` is never used [INFO] [stdout] --> src/p357.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn count_numbers_with_unique_digits(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p363.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_sum_submatrix` is never used [INFO] [stdout] --> src/p363.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn max_sum_submatrix(matrix: Vec>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p393.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `valid_utf8` is never used [INFO] [stdout] --> src/p393.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn valid_utf8(data: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p4.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_median_sorted_arrays` is never used [INFO] [stdout] --> src/p4.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_median_sorted_arrays(nums1: Vec, nums2: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/p4.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn help(nums1: &[i32], nums2: &[i32], k: usize) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p495.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_poisoned_duration` is never used [INFO] [stdout] --> src/p495.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_poisoned_duration(time_series: Vec, duration: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p5.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_palindrome` is never used [INFO] [stdout] --> src/p5.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand` is never used [INFO] [stdout] --> src/p5.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn expand(chars: &Vec, mut i: usize, mut j: usize) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p61.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rotate_right` is never used [INFO] [stdout] --> src/p61.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn rotate_right(head: Option>, k: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p621.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/p621.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `least_interval` is never used [INFO] [stdout] --> src/p621.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 42 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p766.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_toeplitz_matrix` and `helper` are never used [INFO] [stdout] --> src/p766.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn is_toeplitz_matrix(matrix: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn helper(matrix: &Vec>, mut p: (usize, usize), len: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p82.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p82.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p83.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p83.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p9.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/p9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p94.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `inorder_traversal` is never used [INFO] [stdout] --> src/p94.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p94.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn helper(node: Option>>, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p969.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pancake_sort` is never used [INFO] [stdout] --> src/p969.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn pancake_sort(mut arr: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `alice` is never used [INFO] [stdout] --> src/panic_unwinding.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn alice() -> thread::JoinHandle<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bob` is never used [INFO] [stdout] --> src/panic_unwinding.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn bob() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `malice` is never used [INFO] [stdout] --> src/panic_unwinding.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn malice() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PascalsTriangle` is never constructed [INFO] [stdout] --> src/pascals_triangle.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PascalsTriangle { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PascalsTriangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `rows` are never used [INFO] [stdout] --> src/pascals_triangle.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl PascalsTriangle { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(row_count: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn rows(&self) -> Vec> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `translate` is never used [INFO] [stdout] --> src/pig_latin.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn translate(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_translate` is never used [INFO] [stdout] --> src/pig_latin.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_translate(mut chars: VecDeque) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/rc_weak.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListNode` is never constructed [INFO] [stdout] --> src/rc_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedListNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/rc_weak.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 19 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/recusive_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/refcell_basics.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_a_borrowed_value` is never used [INFO] [stdout] --> src/return_func_ref.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn get_a_borrowed_value<'a>() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/serde_demo.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Foo { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | fn new(name: &str, age: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `annotate` is never used [INFO] [stdout] --> src/solutions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn annotate(minefield: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/solutions.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_valid(code: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raindrops` is never used [INFO] [stdout] --> src/solutions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn raindrops(n: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reply` is never used [INFO] [stdout] --> src/solutions.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn reply(message: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `brackets_are_balanced` is never used [INFO] [stdout] --> src/solutions.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brackets_are_balanced(string: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighScores` is never constructed [INFO] [stdout] --> src/solutions.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct HighScores { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighScores` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scores`, `latest`, `personal_best`, and `personal_top_three` are never used [INFO] [stdout] --> src/solutions.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl HighScores { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(scores: &[u32]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn scores(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn latest(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn personal_best(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn personal_top_three(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abbreviate` is never used [INFO] [stdout] --> src/solutions.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn abbreviate(phrase: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Square` is never constructed [INFO] [stdout] --> src/trait_objects.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Square(f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/trait_objects.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Rectangle(f32, f32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Area` is never used [INFO] [stdout] --> src/trait_objects.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Area: Debug { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordCounter` is never constructed [INFO] [stdout] --> src/word_counter.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct WordCounter(HashMap); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `increment`, and `display` are never used [INFO] [stdout] --> src/word_counter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl WordCounter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> WordCounter { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn increment(&mut self, word: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn display(self, n: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 193 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/grade_school.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let s = school::School::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/match_ref.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | Person(ref name) => println!("{} was a great physicist !", name), [INFO] [stdout] | ---------------- matches any value [INFO] [stdout] 9 | _ => panic!("Oh no !"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/match_ref.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let b = a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piles` [INFO] [stdout] --> src/p1140.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p206.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut dummy = Box::new(ListNode { val: 0, next: None }); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/p2432.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/p357.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 1..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/return_func_ref.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let value = get_a_borrowed_value(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fourth` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let fourth = s.get(4).ok_or("I got only 3 fruits")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fourth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Allergies` is never constructed [INFO] [stdout] --> src/allergies.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Allergies { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/allergies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Allergen { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Eggs = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Peanuts = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Shellfish = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | Strawberries = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | Tomatoes = 16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Chocolate = 32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | Pollen = 64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Cats = 128, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allergen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_allergic_to`, and `allergies` are never used [INFO] [stdout] --> src/allergies.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Allergies { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(score: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_allergic_to(&self, allergen: &Allergen) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn allergies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alphametic` is never constructed [INFO] [stdout] --> src/alphamettics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Alphametic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/alphamettics.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Alphametic { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pizza` and `Salad` are never constructed [INFO] [stdout] --> src/borrowing_match.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Food { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Cake, [INFO] [stdout] 4 | Pizza, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Salad, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Food` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/cell.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | item: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bag` 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 function `new` is never used [INFO] [stdout] --> src/common.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vec_from_arr` is never used [INFO] [stdout] --> src/common.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_vec_from_arr(a: &[&[T]]) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/custom_iterator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Primes { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 6 | fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinkedList(std::marker::PhantomData); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cursor<'a, T>(std::marker::PhantomData<&'a mut T>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, `len`, `cursor_front`, `cursor_back`, and `iter` are never used [INFO] [stdout] --> src/double_linkedlist.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn cursor_front(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn cursor_back(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_mut`, `next`, `prev`, `take`, `insert_after`, and `insert_before` are never used [INFO] [stdout] --> src/double_linkedlist.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Cursor<'_, T> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 49 | /// Take a mutable reference to the current element [INFO] [stdout] 50 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn next(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn prev(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn insert_after(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn insert_before(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `next` are never read [INFO] [stdout] --> src/linked_list.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | data: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | next: Option>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/linked_list2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 6 | data: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_prev`, `get_next`, and `get_data` are never used [INFO] [stdout] --> src/linked_list2.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_prev(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn get_next(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn get_data(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pop`, `pop_front`, and `is_empty` are never used [INFO] [stdout] --> src/linked_list2.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn pop(&mut self) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn pop_front(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/p1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p23.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_k_lists` is never used [INFO] [stdout] --> src/p23.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p83.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p83.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/rc_weak.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListNode` is never constructed [INFO] [stdout] --> src/rc_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedListNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/rc_weak.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 19 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/recusive_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/refcell_basics.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | item: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `brackets_are_balanced` is never used [INFO] [stdout] --> src/solutions.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brackets_are_balanced(string: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighScores` is never constructed [INFO] [stdout] --> src/solutions.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct HighScores { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighScores` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scores`, `latest`, `personal_best`, and `personal_top_three` are never used [INFO] [stdout] --> src/solutions.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl HighScores { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(scores: &[u32]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn scores(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn latest(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn personal_best(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn personal_top_three(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_valid_isbn_without_dashes_and_X_as_check` should have a snake case name [INFO] [stdout] --> src/isbn_verifier.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn test_valid_isbn_without_dashes_and_X_as_check() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_valid_isbn_without_dashes_and_x_as_check` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_invalid_isbn_with_check_digit_X_instead_of_0` should have a snake case name [INFO] [stdout] --> src/isbn_verifier.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn test_invalid_isbn_with_check_digit_X_instead_of_0() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_invalid_isbn_with_check_digit_x_instead_of_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/let_ref_mut.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | let a_clone = a.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.37s [INFO] running `Command { std: "docker" "inspect" "6361a2f362bbc95bb72b7d4906180d43124f8c7e3dce2c8748fa736a5ae86370", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6361a2f362bbc95bb72b7d4906180d43124f8c7e3dce2c8748fa736a5ae86370", kill_on_drop: false }` [INFO] [stdout] 6361a2f362bbc95bb72b7d4906180d43124f8c7e3dce2c8748fa736a5ae86370 [INFO] checking fisher310/rust-leet against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffisher310%2Frust-leet" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fisher310/rust-leet on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fisher310/rust-leet [INFO] finished tweaking git repo https://github.com/fisher310/rust-leet [INFO] tweaked toml for git repo https://github.com/fisher310/rust-leet written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fisher310/rust-leet 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 877defd5b0ddd985edc071fad35806b1a785433b1103d9409a027b0fec9ea371 [INFO] running `Command { std: "docker" "start" "-a" "877defd5b0ddd985edc071fad35806b1a785433b1103d9409a027b0fec9ea371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "877defd5b0ddd985edc071fad35806b1a785433b1103d9409a027b0fec9ea371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "877defd5b0ddd985edc071fad35806b1a785433b1103d9409a027b0fec9ea371", kill_on_drop: false }` [INFO] [stdout] 877defd5b0ddd985edc071fad35806b1a785433b1103d9409a027b0fec9ea371 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e2d6e1a8cfbd65ad768cb5def00b0bb647c6dd3d06dae0e25ead060aba905a0 [INFO] running `Command { std: "docker" "start" "-a" "8e2d6e1a8cfbd65ad768cb5def00b0bb647c6dd3d06dae0e25ead060aba905a0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.10 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling serde v1.0.167 [INFO] [stderr] Compiling serde_json v1.0.100 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Checking ryu v1.0.14 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Compiling syn v2.0.23 [INFO] [stderr] Compiling serde_derive v1.0.167 [INFO] [stderr] Checking rust-leet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn car_arrived(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> google/elevator.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | fn car_floor_button_pressed(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OPEN`, `CLOSE`, `UP`, and `DOWN` are never constructed [INFO] [stdout] --> google/elevator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | // TODO: add required variants [INFO] [stdout] 5 | OPEN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | CLOSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | UP(i32), [INFO] [stdout] | ^^ [INFO] [stdout] 8 | DOWN(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> google/elevator.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Up, [INFO] [stdout] 15 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn car_arrived(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> google/elevator.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | fn lobby_call_button_pressed(floor: i32, dir: Direction) -> Event { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `floor` [INFO] [stdout] --> google/elevator.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | fn car_floor_button_pressed(floor: i32) -> Event { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OPEN`, `CLOSE`, `UP`, and `DOWN` are never constructed [INFO] [stdout] --> google/elevator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | // TODO: add required variants [INFO] [stdout] 5 | OPEN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | CLOSE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | UP(i32), [INFO] [stdout] | ^^ [INFO] [stdout] 8 | DOWN(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> google/elevator.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Up, [INFO] [stdout] 15 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::mpsc::channel`, `thread`, and `time::Duration` [INFO] [stdout] --> src/async_channels.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::mpsc::channel, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic` [INFO] [stdout] --> src/catch_unwind.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/cell.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/common.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> google/expression_evaluation.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> google/expression_evaluation.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `RefCell`, and `rc::Rc` [INFO] [stdout] --> src/mem_introspection.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 3 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> google/expression_evaluation.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn eval(e: Expression) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `thread` [INFO] [stdout] --> src/mutex_basics.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | sync::{Arc, Mutex}, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] 3 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::p4::help` [INFO] [stdout] --> src/p108.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::p4::help; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common` [INFO] [stdout] --> src/p2.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | use crate::common; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p2.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `fmt::Binary`, and `ops::Deref` [INFO] [stdout] --> src/p23.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::BinaryHeap, fmt::Binary, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Solution` [INFO] [stdout] --> src/p2432.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | use super::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Solution` [INFO] [stdout] --> src/p3.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p4.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p5.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::*` [INFO] [stdout] --> src/p766.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::common::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/p9.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/refcell_basics.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File`, `io::Read`, and `path::Path` [INFO] [stdout] --> src/result_basics_fixed.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::Read, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::mpsc` and `thread` [INFO] [stdout] --> src/sync_channels.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::mpsc, thread}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::Arc`, `thread`, and `time::Duration` [INFO] [stdout] --> src/thread_arc.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, thread, time::Duration}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/word_counter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/word_counter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::BufRead` [INFO] [stdout] --> src/word_counter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/word_counter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/alphamettics.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/dot_dsl.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/isbn_verifier.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::p4::help` [INFO] [stdout] --> src/p108.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::p4::help; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common` [INFO] [stdout] --> src/p1094.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::common; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow`, `fmt::Binary`, and `ops::Deref` [INFO] [stdout] --> src/p23.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::BinaryHeap, fmt::Binary, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/p363.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::solutions` [INFO] [stdout] --> src/p363.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use crate::solutions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `hello_int` should have an upper camel case name [INFO] [stdout] --> src/p363.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | union hello_int { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `HelloInt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::*` [INFO] [stdout] --> src/p766.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::common::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pascals_triangle::*` [INFO] [stdout] --> src/pascals_triangle.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use crate::pascals_triangle::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/word_counter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piles` [INFO] [stdout] --> src/p1140.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p206.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut dummy = Box::new(ListNode { val: 0, next: None }); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/p2432.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/p357.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 1..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fourth` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let fourth = s.get(4).ok_or("I got only 3 fruits")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fourth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidInputBase`, `InvalidOutputBase`, and `InvalidDigit` are never constructed [INFO] [stdout] --> src/all_your_base.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | InvalidInputBase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | InvalidOutputBase, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | InvalidDigit(u32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert` is never used [INFO] [stdout] --> src/all_your_base.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn convert(number: &[u32], from_base: u32, to_base: u32) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Allergies` is never constructed [INFO] [stdout] --> src/allergies.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Allergies { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/allergies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Allergen { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Eggs = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Peanuts = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Shellfish = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | Strawberries = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | Tomatoes = 16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Chocolate = 32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | Pollen = 64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Cats = 128, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allergen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_allergic_to`, and `allergies` are never used [INFO] [stdout] --> src/allergies.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Allergies { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(score: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_allergic_to(&self, allergen: &Allergen) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn allergies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alphametic` is never constructed [INFO] [stdout] --> src/alphamettics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Alphametic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/alphamettics.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Alphametic { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/alphamettics.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solve(input: &str) -> Option> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/alphamettics.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn helper( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find` is never used [INFO] [stdout] --> src/binary_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn find(array: F, key: T) -> Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_the_n` is never used [INFO] [stdout] --> src/borrowing_functions.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn take_the_n(n: &mut u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_the_s` is never used [INFO] [stdout] --> src/borrowing_functions.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn take_the_s(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Food` is never used [INFO] [stdout] --> src/borrowing_match.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Food { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/borrowing_match.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_ref` is never used [INFO] [stdout] --> src/box_basics.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn box_ref(b: T) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/box_basics.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Foo; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/cell.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/cell_cache.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum` is never used [INFO] [stdout] --> src/cell_cache.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 10 | fn sum(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_list` is never used [INFO] [stdout] --> src/common.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn create_list(list: &[i32]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_list` is never used [INFO] [stdout] --> src/common.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn print_list(list: Option>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_help` is never used [INFO] [stdout] --> src/common.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn print_help(list: Option>) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 74 | #[inline] [INFO] [stdout] 75 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_tree` is never used [INFO] [stdout] --> src/common.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn create_tree(arr: &[Option]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vec_from_arr` is never used [INFO] [stdout] --> src/common.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_vec_from_arr(a: &[&[T]]) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/complex.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Complex { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 10 | fn new(re: T, im: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primes` is never constructed [INFO] [stdout] --> src/custom_iterator.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Primes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `iter` are never used [INFO] [stdout] --> src/custom_iterator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Primes { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 6 | fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | fn iter(&self) -> PrimesIter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_primes` is never used [INFO] [stdout] --> src/custom_iterator.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn compute_primes(limit: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrimesIter` is never constructed [INFO] [stdout] --> src/custom_iterator.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct PrimesIter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/dot_dsl.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_nodes`, `with_edges`, `with_attrs`, and `node` are never used [INFO] [stdout] --> src/dot_dsl.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn with_nodes(mut self, nodes: &[Node]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn with_edges(mut self, edges: &[Edge]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn node(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_attrs`, and `attr` are never used [INFO] [stdout] --> src/dot_dsl.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 71 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 72 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn attr(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_attrs`, and `attr` are never used [INFO] [stdout] --> src/dot_dsl.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 106 | impl Edge { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 107 | pub fn new(from: &str, to: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn attr(&self, key: &str) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinkedList(std::marker::PhantomData); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cursor<'a, T>(std::marker::PhantomData<&'a mut T>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, `len`, `cursor_front`, `cursor_back`, and `iter` are never used [INFO] [stdout] --> src/double_linkedlist.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn cursor_front(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn cursor_back(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_mut`, `next`, `prev`, `take`, `insert_after`, and `insert_before` are never used [INFO] [stdout] --> src/double_linkedlist.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Cursor<'_, T> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 49 | /// Take a mutable reference to the current element [INFO] [stdout] 50 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn next(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn prev(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn insert_after(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn insert_before(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_me` is never used [INFO] [stdout] --> src/dyn_trait.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn show_me(item: &dyn Display) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `School` is never constructed [INFO] [stdout] --> src/grade_school.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct School { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `grades`, and `grade` are never used [INFO] [stdout] --> src/grade_school.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl School { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> School { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&mut self, grade: u32, student: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn grades(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn grade(&self, grade: u32) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_isbn` is never used [INFO] [stdout] --> src/isbn_verifier.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn is_valid_isbn(isbn: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/let_ref_mut.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Items(u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/linked_list.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/linked_list.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/linked_list2.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Link = Option>>>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/linked_list2.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/linked_list2.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn set_prev(&mut self, other: &Link) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn set_next(&mut self, other: &Link) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_prev(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn get_next(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn get_data(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn new_link(data: T) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/linked_list2.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/linked_list2.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 52 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn push(&mut self, data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn push_front(&mut self, data: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn pop(&mut self) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn pop_front(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/match_ref.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Person(String); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/p1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p100.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_same_tree` is never used [INFO] [stdout] --> src/p100.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn is_same_tree( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p101.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_symmetric` is never used [INFO] [stdout] --> src/p101.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symmetric_helper` is never used [INFO] [stdout] --> src/p101.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn symmetric_helper(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p104.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_depth` is never used [INFO] [stdout] --> src/p104.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p108.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sorted_array_to_bst` is never used [INFO] [stdout] --> src/p108.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p108.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn helper(nums: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1094.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `car_pooling` is never used [INFO] [stdout] --> src/p1094.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn car_pooling(trips: Vec>, capacity: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p110.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_balanced` is never used [INFO] [stdout] --> src/p110.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn is_balanced(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `balance_helper` is never used [INFO] [stdout] --> src/p110.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn balance_helper(node: Option>>) -> (i32, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p111.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_depth` is never used [INFO] [stdout] --> src/p111.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p112.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_path_sum` is never used [INFO] [stdout] --> src/p112.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn has_path_sum(root: Option>>, target_sum: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1140.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stone_game_ii` is never used [INFO] [stdout] --> src/p1140.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1217.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_cost_to_move_chips` is never used [INFO] [stdout] --> src/p1217.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn min_cost_to_move_chips(position: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1221.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `balanced_string_split` is never used [INFO] [stdout] --> src/p1221.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn balanced_string_split(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p19.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_nth_from_end` is never used [INFO] [stdout] --> src/p19.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_two_numbers` is never used [INFO] [stdout] --> src/p2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/p2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p20.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid` is never used [INFO] [stdout] --> src/p20.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p206.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reverse_list` is never used [INFO] [stdout] --> src/p206.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p21.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/p21.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p224.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `calculate` is never used [INFO] [stdout] --> src/p224.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn calculate(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p224.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn helper(expr: &[char]) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p23.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_k_lists` is never used [INFO] [stdout] --> src/p23.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p234.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/p234.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn is_palindrome(mut head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p24.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `swap_pairs` is never used [INFO] [stdout] --> src/p24.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p2432.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `hardest_worker` is never used [INFO] [stdout] --> src/p2432.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p3.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/p3.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p357.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `count_numbers_with_unique_digits` is never used [INFO] [stdout] --> src/p357.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn count_numbers_with_unique_digits(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p363.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_sum_submatrix` is never used [INFO] [stdout] --> src/p363.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn max_sum_submatrix(matrix: Vec>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p393.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `valid_utf8` is never used [INFO] [stdout] --> src/p393.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn valid_utf8(data: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p4.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_median_sorted_arrays` is never used [INFO] [stdout] --> src/p4.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_median_sorted_arrays(nums1: Vec, nums2: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `help` is never used [INFO] [stdout] --> src/p4.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn help(nums1: &[i32], nums2: &[i32], k: usize) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p495.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_poisoned_duration` is never used [INFO] [stdout] --> src/p495.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn find_poisoned_duration(time_series: Vec, duration: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p5.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_palindrome` is never used [INFO] [stdout] --> src/p5.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand` is never used [INFO] [stdout] --> src/p5.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn expand(chars: &Vec, mut i: usize, mut j: usize) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p61.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rotate_right` is never used [INFO] [stdout] --> src/p61.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn rotate_right(head: Option>, k: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p621.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/p621.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `least_interval` is never used [INFO] [stdout] --> src/p621.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 42 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p766.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_toeplitz_matrix` and `helper` are never used [INFO] [stdout] --> src/p766.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn is_toeplitz_matrix(matrix: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn helper(matrix: &Vec>, mut p: (usize, usize), len: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p82.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p82.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p83.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p83.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p9.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/p9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p94.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `inorder_traversal` is never used [INFO] [stdout] --> src/p94.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper` is never used [INFO] [stdout] --> src/p94.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn helper(node: Option>>, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p969.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pancake_sort` is never used [INFO] [stdout] --> src/p969.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn pancake_sort(mut arr: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `alice` is never used [INFO] [stdout] --> src/panic_unwinding.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn alice() -> thread::JoinHandle<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bob` is never used [INFO] [stdout] --> src/panic_unwinding.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn bob() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `malice` is never used [INFO] [stdout] --> src/panic_unwinding.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn malice() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PascalsTriangle` is never constructed [INFO] [stdout] --> src/pascals_triangle.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PascalsTriangle { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PascalsTriangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `rows` are never used [INFO] [stdout] --> src/pascals_triangle.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl PascalsTriangle { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(row_count: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn rows(&self) -> Vec> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `translate` is never used [INFO] [stdout] --> src/pig_latin.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn translate(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_translate` is never used [INFO] [stdout] --> src/pig_latin.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_translate(mut chars: VecDeque) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/rc_weak.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListNode` is never constructed [INFO] [stdout] --> src/rc_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedListNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/rc_weak.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 19 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/recusive_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bag` is never constructed [INFO] [stdout] --> src/refcell_basics.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_a_borrowed_value` is never used [INFO] [stdout] --> src/return_func_ref.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn get_a_borrowed_value<'a>() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/serde_demo.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Foo { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | fn new(name: &str, age: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `annotate` is never used [INFO] [stdout] --> src/solutions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn annotate(minefield: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/solutions.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_valid(code: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raindrops` is never used [INFO] [stdout] --> src/solutions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn raindrops(n: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reply` is never used [INFO] [stdout] --> src/solutions.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn reply(message: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `brackets_are_balanced` is never used [INFO] [stdout] --> src/solutions.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brackets_are_balanced(string: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighScores` is never constructed [INFO] [stdout] --> src/solutions.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct HighScores { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighScores` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scores`, `latest`, `personal_best`, and `personal_top_three` are never used [INFO] [stdout] --> src/solutions.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl HighScores { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(scores: &[u32]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn scores(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn latest(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn personal_best(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn personal_top_three(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abbreviate` is never used [INFO] [stdout] --> src/solutions.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn abbreviate(phrase: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Square` is never constructed [INFO] [stdout] --> src/trait_objects.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Square(f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/trait_objects.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Rectangle(f32, f32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Area` is never used [INFO] [stdout] --> src/trait_objects.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Area: Debug { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordCounter` is never constructed [INFO] [stdout] --> src/word_counter.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct WordCounter(HashMap); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `increment`, and `display` are never used [INFO] [stdout] --> src/word_counter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl WordCounter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> WordCounter { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn increment(&mut self, word: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn display(self, n: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/complex.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 18 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | Complex { [INFO] [stdout] 20 | re: self.re + rhs.re, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/complex.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 18 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | im: self.im + rhs.im, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 19 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | LinkedList { [INFO] [stdout] 21 | head: Some(Rc::new(Node { [INFO] [stdout] | ___________________^ [INFO] [stdout] 22 | | data, [INFO] [stdout] 23 | | next: self.head.clone(), [INFO] [stdout] 24 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Node { [INFO] [stdout] 14 | data: Rc::new(data), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 15 | prev: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | next: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 40 | fn new_link(data: T) -> Link { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | Some(Rc::new(RefCell::new(Box::new(Node::new(data))))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/p82.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | let mut dummy = Some(Box::new(ListNode { val: 0, next: head })); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | dummy.unwrap().next [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/rc_weak.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let new_node = Rc::new(LinkedListNode { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | head: Some(new_node), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 193 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-leet` (bin "rust-leet") due to 10 previous errors; 193 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/grade_school.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let s = school::School::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/match_ref.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | Person(ref name) => println!("{} was a great physicist !", name), [INFO] [stdout] | ---------------- matches any value [INFO] [stdout] 9 | _ => panic!("Oh no !"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/match_ref.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let b = a; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piles` [INFO] [stdout] --> src/p1140.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn stone_game_ii(piles: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p206.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn reverse_list(mut head: Option>) -> Option> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/p23.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut dummy = Box::new(ListNode { val: 0, next: None }); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/p2432.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hardest_worker(n: i32, logs: Vec>) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/p357.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | for i in 1..n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/return_func_ref.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let value = get_a_borrowed_value(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fourth` [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let fourth = s.get(4).ok_or("I got only 3 fruits")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fourth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Allergies` is never constructed [INFO] [stdout] --> src/allergies.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Allergies { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/allergies.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Allergen { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Eggs = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Peanuts = 2, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Shellfish = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | Strawberries = 8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | Tomatoes = 16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Chocolate = 32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | Pollen = 64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | Cats = 128, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allergen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_allergic_to`, and `allergies` are never used [INFO] [stdout] --> src/allergies.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Allergies { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(score: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_allergic_to(&self, allergen: &Allergen) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn allergies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alphametic` is never constructed [INFO] [stdout] --> src/alphamettics.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Alphametic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/alphamettics.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Alphametic { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 9 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pizza` and `Salad` are never constructed [INFO] [stdout] --> src/borrowing_match.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Food { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Cake, [INFO] [stdout] 4 | Pizza, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Salad, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Food` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/cell.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | item: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bag` 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 function `new` is never used [INFO] [stdout] --> src/common.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vec_from_arr` is never used [INFO] [stdout] --> src/common.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_vec_from_arr(a: &[&[T]]) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/custom_iterator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Primes { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 6 | fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinkedList(std::marker::PhantomData); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/double_linkedlist.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cursor<'a, T>(std::marker::PhantomData<&'a mut T>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_empty`, `len`, `cursor_front`, `cursor_back`, and `iter` are never used [INFO] [stdout] --> src/double_linkedlist.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn cursor_front(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn cursor_back(&mut self) -> Cursor<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_mut`, `next`, `prev`, `take`, `insert_after`, and `insert_before` are never used [INFO] [stdout] --> src/double_linkedlist.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Cursor<'_, T> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 49 | /// Take a mutable reference to the current element [INFO] [stdout] 50 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn next(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn prev(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn insert_after(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn insert_before(&mut self, _element: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `next` are never read [INFO] [stdout] --> src/linked_list.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | data: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | next: Option>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/linked_list2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 6 | data: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_prev`, `get_next`, and `get_data` are never used [INFO] [stdout] --> src/linked_list2.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_prev(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn get_next(&self) -> Link { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn get_data(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pop`, `pop_front`, and `is_empty` are never used [INFO] [stdout] --> src/linked_list2.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn pop(&mut self) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn pop_front(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/p1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p23.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_k_lists` is never used [INFO] [stdout] --> src/p23.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 7 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/p83.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/p83.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/rc_weak.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListNode` is never constructed [INFO] [stdout] --> src/rc_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedListNode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `append` are never used [INFO] [stdout] --> src/rc_weak.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl LinkedList { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 19 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/recusive_type.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/refcell_basics.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Bag { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | item: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bag` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `brackets_are_balanced` is never used [INFO] [stdout] --> src/solutions.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brackets_are_balanced(string: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighScores` is never constructed [INFO] [stdout] --> src/solutions.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct HighScores { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighScores` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scores`, `latest`, `personal_best`, and `personal_top_three` are never used [INFO] [stdout] --> src/solutions.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl HighScores { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 157 | pub fn new(scores: &[u32]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn scores(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn latest(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn personal_best(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn personal_top_three(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/complex.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 18 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | Complex { [INFO] [stdout] 20 | re: self.re + rhs.re, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/complex.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 18 | fn add(self, rhs: Self) -> Self::Output { [INFO] [stdout] | ---- --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | im: self.im + rhs.im, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_valid_isbn_without_dashes_and_X_as_check` should have a snake case name [INFO] [stdout] --> src/isbn_verifier.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn test_valid_isbn_without_dashes_and_X_as_check() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_valid_isbn_without_dashes_and_x_as_check` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_invalid_isbn_with_check_digit_X_instead_of_0` should have a snake case name [INFO] [stdout] --> src/isbn_verifier.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn test_invalid_isbn_with_check_digit_X_instead_of_0() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_invalid_isbn_with_check_digit_x_instead_of_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/let_ref_mut.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | let a_clone = a.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 19 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | LinkedList { [INFO] [stdout] 21 | head: Some(Rc::new(Node { [INFO] [stdout] | ___________________^ [INFO] [stdout] 22 | | data, [INFO] [stdout] 23 | | next: self.head.clone(), [INFO] [stdout] 24 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Node { [INFO] [stdout] 14 | data: Rc::new(data), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 15 | prev: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | next: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/linked_list2.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 40 | fn new_link(data: T) -> Link { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | Some(Rc::new(RefCell::new(Box::new(Node::new(data))))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/p82.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | let mut dummy = Some(Box::new(ListNode { val: 0, next: head })); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | dummy.unwrap().next [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/rc_weak.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 23 | fn append(&mut self, data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | let new_node = Rc::new(LinkedListNode { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | head: Some(new_node), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-leet` (bin "rust-leet" test) due to 10 previous errors; 57 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8e2d6e1a8cfbd65ad768cb5def00b0bb647c6dd3d06dae0e25ead060aba905a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e2d6e1a8cfbd65ad768cb5def00b0bb647c6dd3d06dae0e25ead060aba905a0", kill_on_drop: false }` [INFO] [stdout] 8e2d6e1a8cfbd65ad768cb5def00b0bb647c6dd3d06dae0e25ead060aba905a0