[INFO] cloning repository https://github.com/tolumide-ng/coding-challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tolumide-ng/coding-challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ec2b9028a2541ada0741ec00406e4cd32309f11 [INFO] checking tolumide-ng/coding-challenge against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tolumide-ng/coding-challenge on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tolumide-ng/coding-challenge [INFO] finished tweaking git repo https://github.com/tolumide-ng/coding-challenge [INFO] tweaked toml for git repo https://github.com/tolumide-ng/coding-challenge written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/tolumide-ng/coding-challenge already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d33f18617f923e7b7b91414a2d250b60d9bb3a9009145ceeaeeb9ea23d1848e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9d33f18617f923e7b7b91414a2d250b60d9bb3a9009145ceeaeeb9ea23d1848e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d33f18617f923e7b7b91414a2d250b60d9bb3a9009145ceeaeeb9ea23d1848e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d33f18617f923e7b7b91414a2d250b60d9bb3a9009145ceeaeeb9ea23d1848e", kill_on_drop: false }` [INFO] [stdout] 9d33f18617f923e7b7b91414a2d250b60d9bb3a9009145ceeaeeb9ea23d1848e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb17a6011b78068cb663a250a0d6344466bd2b4700c7baab0b4c4f243f0a9f6b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fb17a6011b78068cb663a250a0d6344466bd2b4700c7baab0b4c4f243f0a9f6b", kill_on_drop: false }` [INFO] [stderr] Checking data_structures v0.1.0 (/opt/rustwide/workdir/data_structures) [INFO] [stderr] Checking dynamic_pg v0.1.0 (/opt/rustwide/workdir/dynamic_pg) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [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] --> data_structures/src/linked_lists/dnode.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/node.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use super::node::{Node, NodeOption}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeRef` [INFO] [stdout] --> data_structures/src/linked_lists/reversed_linked_lists.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::{NodeOption, NodeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use super::node::{Node, NodeOption}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeRef` [INFO] [stdout] --> data_structures/src/linked_lists/reversed_linked_lists.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::{NodeOption, NodeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/grid_traveller.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/how_sum.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/grid_traveller.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/how_sum.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | Some(head) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | Some(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/linked_lists/linked_palindrome.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut original_list = Some(Rc::clone(self.head.as_ref().unwrap())); [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: associated function is never used: `add_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/leet_singly_ll.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn add_at_index(&mut self, index: i32, val: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/leet_singly_ll.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn delete_at_index(&mut self, index: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `val` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | val: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | next: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | head: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_cycle` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn has_cycle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LinkedList` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cycle_position` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn cycle_position(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LinkedList` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_interception` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_interception(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_head` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn add_at_head(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_tail` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn add_at_tail(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn get(&self, index: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn add_at_index(&mut self, index: i32, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/single_ll.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | fn delete_at_index(&mut self, index: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | / vec_safe.iter().map(|val| { [INFO] [stdout] 42 | | if Rc::as_ptr(curr) == Rc::as_ptr(val) { [INFO] [stdout] 43 | | is_intercept = true; [INFO] [stdout] 44 | | intercept = Some(Rc::clone(curr)); [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | Some(head) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | Some(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking algorithms v0.1.0 (/opt/rustwide/workdir/algorithms) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/linked_lists/linked_palindrome.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut original_list = Some(Rc::clone(self.head.as_ref().unwrap())); [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> algorithms/src/the_algos/two_sums.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/leet_singly_ll.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn add_at_index(&mut self, index: i32, val: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_at_index` [INFO] [stdout] --> data_structures/src/linked_lists/leet_singly_ll.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn delete_at_index(&mut self, index: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `val` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | val: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | next: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | head: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_cycle` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn has_cycle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LinkedList` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cycle_position` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle_pos.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn cycle_position(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LinkedList` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct LinkedList { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_interception` [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_interception(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | let mut left_result = Solution::max_depth(left); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | let mut right_result = Solution::max_depth(right); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 22 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 27 | let mut left: Option>> = None; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:35:42 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 35 | let mut right: Option>> = None; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `total` [INFO] [stdout] --> algorithms/src/the_algos/sunset.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | total: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `buildings` [INFO] [stdout] --> algorithms/src/the_algos/sunset.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | buildings: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Node`, `TheNode` [INFO] [stdout] --> data_structures/src/binary_tree/in_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TheNode` [INFO] [stdout] --> data_structures/src/binary_tree/level_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, TheNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/binary_tree/level_order_traversal.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TheNode` [INFO] [stdout] --> data_structures/src/binary_tree/lowest_common_ancestor.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, TheNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Node`, `TheNode` [INFO] [stdout] --> data_structures/src/binary_tree/post_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Node`, `TheNode` [INFO] [stdout] --> data_structures/src/binary_tree/pre_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/binary_tree/pre_order_traversal.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/dnode.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/node.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use super::node::{Node, NodeOption}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeRef` [INFO] [stdout] --> data_structures/src/linked_lists/reversed_linked_lists.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::{NodeOption, NodeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | let mut left_result = Solution::max_depth(left); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> data_structures/src/linked_lists/linked_lists_intercept.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | / vec_safe.iter().map(|val| { [INFO] [stdout] 42 | | if Rc::as_ptr(curr) == Rc::as_ptr(val) { [INFO] [stdout] 43 | | is_intercept = true; [INFO] [stdout] 44 | | intercept = Some(Rc::clone(curr)); [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | let mut right_result = Solution::max_depth(right); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 22 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 27 | let mut left: Option>> = None; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> data_structures/src/binary_tree/max_depth.rs:35:42 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 35 | let mut right: Option>> = None; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/binary_tree/in_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/binary_tree/post_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/binary_tree/pre_order_traversal.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::binary_tree::priority_queue::{BinaryHeap, Node, TheNode}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> data_structures/src/linked_lists/linked_cycle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> data_structures/src/linked_lists/nth_from_last.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use super::node::{Node, NodeOption}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeRef` [INFO] [stdout] --> data_structures/src/linked_lists/reversed_linked_lists.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use super::node::{NodeOption, NodeRef}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures` [INFO] [stdout] error: aborting due to 6 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "fb17a6011b78068cb663a250a0d6344466bd2b4700c7baab0b4c4f243f0a9f6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb17a6011b78068cb663a250a0d6344466bd2b4700c7baab0b4c4f243f0a9f6b", kill_on_drop: false }` [INFO] [stdout] fb17a6011b78068cb663a250a0d6344466bd2b4700c7baab0b4c4f243f0a9f6b