[INFO] cloning repository https://github.com/iLeepop/data_structures_algorithms [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iLeepop/data_structures_algorithms" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiLeepop%2Fdata_structures_algorithms", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiLeepop%2Fdata_structures_algorithms'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45ef683c9e7d4d5539585d759e860cd1016b32c2 [INFO] checking iLeepop/data_structures_algorithms against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiLeepop%2Fdata_structures_algorithms" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iLeepop/data_structures_algorithms 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/iLeepop/data_structures_algorithms [INFO] finished tweaking git repo https://github.com/iLeepop/data_structures_algorithms [INFO] tweaked toml for git repo https://github.com/iLeepop/data_structures_algorithms written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/iLeepop/data_structures_algorithms 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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2fc611e6ee1e6c0b0e84dfeba0ec78ac1868933df07d5c98e58942546b279635 [INFO] running `Command { std: "docker" "start" "-a" "2fc611e6ee1e6c0b0e84dfeba0ec78ac1868933df07d5c98e58942546b279635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fc611e6ee1e6c0b0e84dfeba0ec78ac1868933df07d5c98e58942546b279635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc611e6ee1e6c0b0e84dfeba0ec78ac1868933df07d5c98e58942546b279635", kill_on_drop: false }` [INFO] [stdout] 2fc611e6ee1e6c0b0e84dfeba0ec78ac1868933df07d5c98e58942546b279635 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 1fb28333b8afe243b73d0479c6734636c11c18008a4590f321d64c782fe885e1 [INFO] running `Command { std: "docker" "start" "-a" "1fb28333b8afe243b73d0479c6734636c11c18008a4590f321d64c782fe885e1", kill_on_drop: false }` [INFO] [stderr] Checking data_structures_algorithms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `linked_list::*` [INFO] [stdout] --> src/data/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use linked_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stack as ListStack` [INFO] [stdout] --> src/data/mod.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub use list_stack::{Stack as ListStack}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lvec::*` [INFO] [stdout] --> src/data/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use lvec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `divide_by_two::*` [INFO] [stdout] --> src/utils/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use divide_by_two::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hot_potato::*` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use hot_potato::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pal_checker::*` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use pal_checker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linked_list::*` [INFO] [stdout] --> src/data/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use linked_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stack as ListStack` [INFO] [stdout] --> src/data/mod.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub use list_stack::{Stack as ListStack}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lvec::*` [INFO] [stdout] --> src/data/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use lvec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `divide_by_two::*` [INFO] [stdout] --> src/utils/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use divide_by_two::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hot_potato::*` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use hot_potato::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pal_checker::*` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use pal_checker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/way/recursion.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `postfix` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let postfix = infix_to_postfix("(A+B)*C-D/E"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_postfix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data/stack.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Stack { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> src/data/queue.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Queue` 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`, `enqueue`, `dequeue`, `is_empty`, and `size` are never used [INFO] [stdout] --> src/data/queue.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Queue { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn enqueue(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dequeue(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deque` is never constructed [INFO] [stdout] --> src/data/deque.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Deque { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Deque` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/deque.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Deque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(cap: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_front(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add_rear(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn remove_front(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn remove_rear(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/linked_list.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl List { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | 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 size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/data/list_stack.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: type alias `Link` is never used [INFO] [stdout] --> src/data/list_stack.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/list_stack.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/data/list_stack.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `peek`, `is_empty`, and `size` are never used [INFO] [stdout] --> src/data/list_stack.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Stack { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn push(&mut self, val: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/data/lvec.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Node { [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: type alias `Link` is never used [INFO] [stdout] --> src/data/lvec.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/lvec.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(elem: T) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LVec` is never constructed [INFO] [stdout] --> src/data/lvec.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct LVec { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LVec` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/lvec.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl LVec { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn append(&mut self, other: &mut Self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn insert(&mut self, mut index: usize, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn remove(&mut self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn print_lvec(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide_by_two` is never used [INFO] [stdout] --> src/utils/divide_by_two.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn divide_by_two(mut dec_num: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base_convert` is never used [INFO] [stdout] --> src/utils/divide_by_two.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn base_convert(mut dec_num: u32, base: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `postfix_eval` is never used [INFO] [stdout] --> src/utils/infix_to_postfix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn postfix_eval(postfix: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hot_potato` is never used [INFO] [stdout] --> src/utils/hot_potato.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn hot_potato(names: Vec<&str>, num: usize) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pal_checker` is never used [INFO] [stdout] --> src/utils/pal_checker.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn pal_checker(pal: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum1` is never used [INFO] [stdout] --> src/way/recursion.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn nums_sum1(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum2` is never used [INFO] [stdout] --> src/way/recursion.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn nums_sum2(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum1_t` is never used [INFO] [stdout] --> src/way/recursion.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn nums_sum1_t(num: i32, nums: &[i32]) ->i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASESTR` is never used [INFO] [stdout] --> src/way/recursion.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const BASESTR: [&str; 16] = ["0", "1", "2", "3", "4", "5", "6", "7", [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num2str_rec` is never used [INFO] [stdout] --> src/way/recursion.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn num2str_rec(num: i32, base: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hanoi` is never used [INFO] [stdout] --> src/way/recursion.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn hanoi(height: usize, from: &str, to: &str, other: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_mc1` is never used [INFO] [stdout] --> src/way/recursion.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn rec_mc1(cashes: &[u32], amount: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_mc2` is never used [INFO] [stdout] --> src/way/recursion.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn rec_mc2(cashes: &[u32], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dp_rec_mc` is never used [INFO] [stdout] --> src/way/recursion.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn dp_rec_mc(cashes: &[u32], amount: u32, min_cashes: &mut [u32]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dp_rec_mc_show` is never used [INFO] [stdout] --> src/way/recursion.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn dp_rec_mc_show(cashes: &[u32], amount: u32, min_cashes: &mut [u32], cashes_used: &mut [u32]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_cashes` is never used [INFO] [stdout] --> src/way/recursion.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn print_cashes(cashes_used: &[u32], mut amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibnacci_rec` is never used [INFO] [stdout] --> src/way/recursion.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn fibnacci_rec(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibnacci_dp` is never used [INFO] [stdout] --> src/way/recursion.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn fibnacci_dp(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sequential_search` is never used [INFO] [stdout] --> src/way/sequential_search.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn sequential_search(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sequetial_search_pos` is never used [INFO] [stdout] --> src/way/sequential_search.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn sequetial_search_pos(nums: &[i32], num: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ordered_sequential_search` is never used [INFO] [stdout] --> src/way/sequential_search.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn ordered_sequential_search(nums: &[i32], num:i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_search1` is never used [INFO] [stdout] --> src/way/binary_search.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn binary_search1(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_search2` is never used [INFO] [stdout] --> src/way/binary_search.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn binary_search2(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpolation_search` is never used [INFO] [stdout] --> src/way/interpolation_search.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn interpolation_search(nums: &[i32], target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exponential_search` is never used [INFO] [stdout] --> src/way/exponential_search.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn exponential_search(nums: &[i32], target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash1` is never used [INFO] [stdout] --> src/way/hash.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn hash1(astr: &str, size: usize) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `postfix` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let postfix = infix_to_postfix("(A+B)*C-D/E"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_postfix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data/stack.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Stack { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_empty` and `size` are never used [INFO] [stdout] --> src/data/linked_list.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl List { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "1fb28333b8afe243b73d0479c6734636c11c18008a4590f321d64c782fe885e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fb28333b8afe243b73d0479c6734636c11c18008a4590f321d64c782fe885e1", kill_on_drop: false }` [INFO] [stdout] 1fb28333b8afe243b73d0479c6734636c11c18008a4590f321d64c782fe885e1 [INFO] checking iLeepop/data_structures_algorithms 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%2FiLeepop%2Fdata_structures_algorithms" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iLeepop/data_structures_algorithms 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/iLeepop/data_structures_algorithms [INFO] finished tweaking git repo https://github.com/iLeepop/data_structures_algorithms [INFO] tweaked toml for git repo https://github.com/iLeepop/data_structures_algorithms written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/iLeepop/data_structures_algorithms 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 5805b781d32845e679c3eb535fb705e8e729fc48764cfbe62922a18f9358a4ce [INFO] running `Command { std: "docker" "start" "-a" "5805b781d32845e679c3eb535fb705e8e729fc48764cfbe62922a18f9358a4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5805b781d32845e679c3eb535fb705e8e729fc48764cfbe62922a18f9358a4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5805b781d32845e679c3eb535fb705e8e729fc48764cfbe62922a18f9358a4ce", kill_on_drop: false }` [INFO] [stdout] 5805b781d32845e679c3eb535fb705e8e729fc48764cfbe62922a18f9358a4ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 7f614ce93b8516d28641e311ae106d0ce67d51efe2ebc37f6f03bed2e38cee1d [INFO] running `Command { std: "docker" "start" "-a" "7f614ce93b8516d28641e311ae106d0ce67d51efe2ebc37f6f03bed2e38cee1d", kill_on_drop: false }` [INFO] [stderr] Checking data_structures_algorithms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `linked_list::*` [INFO] [stdout] --> src/data/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use linked_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stack as ListStack` [INFO] [stdout] --> src/data/mod.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub use list_stack::{Stack as ListStack}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lvec::*` [INFO] [stdout] --> src/data/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use lvec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `divide_by_two::*` [INFO] [stdout] --> src/utils/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use divide_by_two::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hot_potato::*` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use hot_potato::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pal_checker::*` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use pal_checker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linked_list::*` [INFO] [stdout] --> src/data/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use linked_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stack as ListStack` [INFO] [stdout] --> src/data/mod.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub use list_stack::{Stack as ListStack}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lvec::*` [INFO] [stdout] --> src/data/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use lvec::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `divide_by_two::*` [INFO] [stdout] --> src/utils/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use divide_by_two::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hot_potato::*` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use hot_potato::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pal_checker::*` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use pal_checker::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/way/recursion.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `postfix` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let postfix = infix_to_postfix("(A+B)*C-D/E"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_postfix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data/stack.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Stack { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> src/data/queue.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Queue` 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`, `enqueue`, `dequeue`, `is_empty`, and `size` are never used [INFO] [stdout] --> src/data/queue.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Queue { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn enqueue(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn dequeue(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Deque` is never constructed [INFO] [stdout] --> src/data/deque.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Deque { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Deque` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/deque.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Deque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(cap: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_front(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add_rear(&mut self, val: T) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn remove_front(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn remove_rear(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/linked_list.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl List { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | 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 size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/data/list_stack.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: type alias `Link` is never used [INFO] [stdout] --> src/data/list_stack.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/list_stack.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/data/list_stack.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stack` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `peek`, `is_empty`, and `size` are never used [INFO] [stdout] --> src/data/list_stack.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Stack { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn push(&mut self, val: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/data/lvec.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Node { [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: type alias `Link` is never used [INFO] [stdout] --> src/data/lvec.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/lvec.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(elem: T) -> Node { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LVec` is never constructed [INFO] [stdout] --> src/data/lvec.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct LVec { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LVec` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/data/lvec.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl LVec { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn append(&mut self, other: &mut Self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn insert(&mut self, mut index: usize, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn remove(&mut self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn print_lvec(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide_by_two` is never used [INFO] [stdout] --> src/utils/divide_by_two.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn divide_by_two(mut dec_num: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base_convert` is never used [INFO] [stdout] --> src/utils/divide_by_two.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn base_convert(mut dec_num: u32, base: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `postfix_eval` is never used [INFO] [stdout] --> src/utils/infix_to_postfix.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn postfix_eval(postfix: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hot_potato` is never used [INFO] [stdout] --> src/utils/hot_potato.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn hot_potato(names: Vec<&str>, num: usize) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pal_checker` is never used [INFO] [stdout] --> src/utils/pal_checker.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn pal_checker(pal: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum1` is never used [INFO] [stdout] --> src/way/recursion.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn nums_sum1(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum2` is never used [INFO] [stdout] --> src/way/recursion.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn nums_sum2(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nums_sum1_t` is never used [INFO] [stdout] --> src/way/recursion.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn nums_sum1_t(num: i32, nums: &[i32]) ->i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASESTR` is never used [INFO] [stdout] --> src/way/recursion.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const BASESTR: [&str; 16] = ["0", "1", "2", "3", "4", "5", "6", "7", [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num2str_rec` is never used [INFO] [stdout] --> src/way/recursion.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn num2str_rec(num: i32, base: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hanoi` is never used [INFO] [stdout] --> src/way/recursion.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn hanoi(height: usize, from: &str, to: &str, other: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_mc1` is never used [INFO] [stdout] --> src/way/recursion.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn rec_mc1(cashes: &[u32], amount: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_mc2` is never used [INFO] [stdout] --> src/way/recursion.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn rec_mc2(cashes: &[u32], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dp_rec_mc` is never used [INFO] [stdout] --> src/way/recursion.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn dp_rec_mc(cashes: &[u32], amount: u32, min_cashes: &mut [u32]) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dp_rec_mc_show` is never used [INFO] [stdout] --> src/way/recursion.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn dp_rec_mc_show(cashes: &[u32], amount: u32, min_cashes: &mut [u32], cashes_used: &mut [u32]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_cashes` is never used [INFO] [stdout] --> src/way/recursion.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn print_cashes(cashes_used: &[u32], mut amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibnacci_rec` is never used [INFO] [stdout] --> src/way/recursion.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn fibnacci_rec(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibnacci_dp` is never used [INFO] [stdout] --> src/way/recursion.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn fibnacci_dp(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sequential_search` is never used [INFO] [stdout] --> src/way/sequential_search.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn sequential_search(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sequetial_search_pos` is never used [INFO] [stdout] --> src/way/sequential_search.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn sequetial_search_pos(nums: &[i32], num: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ordered_sequential_search` is never used [INFO] [stdout] --> src/way/sequential_search.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn ordered_sequential_search(nums: &[i32], num:i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_search1` is never used [INFO] [stdout] --> src/way/binary_search.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn binary_search1(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_search2` is never used [INFO] [stdout] --> src/way/binary_search.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn binary_search2(nums: &[i32], num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpolation_search` is never used [INFO] [stdout] --> src/way/interpolation_search.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn interpolation_search(nums: &[i32], target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exponential_search` is never used [INFO] [stdout] --> src/way/exponential_search.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn exponential_search(nums: &[i32], target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash1` is never used [INFO] [stdout] --> src/way/hash.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn hash1(astr: &str, size: usize) -> usize { [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/data/list_stack.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub 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] 14 | Node {data: data, 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] = 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/data/lvec.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(elem: T) -> Node { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | Node { elem, 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: aborting due to 2 previous errors; 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures_algorithms` (bin "data_structures_algorithms") due to 3 previous errors; 49 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `postfix` [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let postfix = infix_to_postfix("(A+B)*C-D/E"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_postfix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data/stack.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Stack { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_empty` and `size` are never used [INFO] [stdout] --> src/data/linked_list.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl List { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn size(&self) -> usize { [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/data/list_stack.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub 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] 14 | Node {data: data, 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] = 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/data/lvec.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(elem: T) -> Node { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | Node { elem, 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: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures_algorithms` (bin "data_structures_algorithms" test) due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7f614ce93b8516d28641e311ae106d0ce67d51efe2ebc37f6f03bed2e38cee1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f614ce93b8516d28641e311ae106d0ce67d51efe2ebc37f6f03bed2e38cee1d", kill_on_drop: false }` [INFO] [stdout] 7f614ce93b8516d28641e311ae106d0ce67d51efe2ebc37f6f03bed2e38cee1d