[INFO] cloning repository https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEstebanBorai%2Fdata-structures-and-algorithms-with-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEstebanBorai%2Fdata-structures-and-algorithms-with-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c734424fb3b1f5bc653cae252adfd2eda119768 [INFO] testing EstebanBorai/data-structures-and-algorithms-with-rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEstebanBorai%2Fdata-structures-and-algorithms-with-rust" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust [INFO] finished tweaking git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust [INFO] tweaked toml for git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad98466400a16d23f658925cfce6178b231c5c4dcfe591e37e6f6cf5ac205b17 [INFO] running `Command { std: "docker" "start" "-a" "ad98466400a16d23f658925cfce6178b231c5c4dcfe591e37e6f6cf5ac205b17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad98466400a16d23f658925cfce6178b231c5c4dcfe591e37e6f6cf5ac205b17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad98466400a16d23f658925cfce6178b231c5c4dcfe591e37e6f6cf5ac205b17", kill_on_drop: false }` [INFO] [stdout] ad98466400a16d23f658925cfce6178b231c5c4dcfe591e37e6f6cf5ac205b17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d741db8520c97346bbf37eb8b79f7aca82f2f4b4602271cc48722d0d299c0442 [INFO] running `Command { std: "docker" "start" "-a" "d741db8520c97346bbf37eb8b79f7aca82f2f4b4602271cc48722d0d299c0442", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling dsa-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/binary_search_tree.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `left` [INFO] [stdout] --> src/binary_search_tree.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | left: Tree, [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] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `right` [INFO] [stdout] --> src/binary_search_tree.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | right: Tree, [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] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/binary_search_tree.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `boxed` [INFO] [stdout] --> src/binary_search_tree.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn boxed(value: T) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/binary_search_tree.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn peek(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `root` [INFO] [stdout] --> src/binary_search_tree.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | root: Tree, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/binary_search_tree.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/binary_search_tree.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/binary_search_tree.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_recursive` [INFO] [stdout] --> src/binary_search_tree.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn add_recursive(&mut self, node: Tree, value: T) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find` [INFO] [stdout] --> src/binary_search_tree.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn find(&self, value: T) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_recursive` [INFO] [stdout] --> src/binary_search_tree.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn find_recursive(&self, node: &Tree, value: T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `walk` [INFO] [stdout] --> src/binary_search_tree.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn walk(&self, func: impl Fn(&T) -> ()) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `walk_in_order` [INFO] [stdout] --> src/binary_search_tree.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn walk_in_order(&self, node: &Tree, func: &impl Fn(&T) -> ()) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new(value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/doubly_linked_list.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/doubly_linked_list.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tail` [INFO] [stdout] --> src/doubly_linked_list.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | tail: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/doubly_linked_list.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/doubly_linked_list.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/doubly_linked_list.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/doubly_linked_list.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | fn new(current: Link) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DynamicArray` [INFO] [stdout] --> src/dynamic_array.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DynamicArray { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dynamic_array.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `grow` [INFO] [stdout] --> src/dynamic_array.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn grow(&mut self, min_cap: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ensure_capacity` [INFO] [stdout] --> src/dynamic_array.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn ensure_capacity(&mut self, items_to_add: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `item_at` [INFO] [stdout] --> src/dynamic_array.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn item_at(&mut self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/dynamic_array.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next` [INFO] [stdout] --> src/singly_linked_list.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | next: Link, [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] --> src/singly_linked_list.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/singly_linked_list.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | value: T, [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] --> src/singly_linked_list.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/singly_linked_list.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/singly_linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/singly_linked_list.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tail` [INFO] [stdout] --> src/singly_linked_list.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | tail: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/singly_linked_list.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/singly_linked_list.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/singly_linked_list.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/singly_linked_list.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/singly_linked_list.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `links` [INFO] [stdout] --> src/skip_list.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | links: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/skip_list.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/skip_list.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(level: usize, value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/skip_list.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/skip_list.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tails` [INFO] [stdout] --> src/skip_list.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tails: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/skip_list.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_level` [INFO] [stdout] --> src/skip_list.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | max_level: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/skip_list.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(max_level: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/skip_list.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_level` [INFO] [stdout] --> src/skip_list.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn get_level(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/binary_search_tree.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | type Tree = Option>>; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 9 - type Tree = Option>>; [INFO] [stdout] 9 + type Tree = Option>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.32s [INFO] running `Command { std: "docker" "inspect" "d741db8520c97346bbf37eb8b79f7aca82f2f4b4602271cc48722d0d299c0442", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d741db8520c97346bbf37eb8b79f7aca82f2f4b4602271cc48722d0d299c0442", kill_on_drop: false }` [INFO] [stdout] d741db8520c97346bbf37eb8b79f7aca82f2f4b4602271cc48722d0d299c0442 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5321a02b3d23352b9a2df9ec6adf3c8fbac1f0bba0d19c2ed08f0e5997d17ca [INFO] running `Command { std: "docker" "start" "-a" "d5321a02b3d23352b9a2df9ec6adf3c8fbac1f0bba0d19c2ed08f0e5997d17ca", kill_on_drop: false }` [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/binary_search_tree.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `left` [INFO] [stdout] --> src/binary_search_tree.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | left: Tree, [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] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `right` [INFO] [stdout] --> src/binary_search_tree.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | right: Tree, [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] --> src/binary_search_tree.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/binary_search_tree.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `boxed` [INFO] [stdout] --> src/binary_search_tree.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn boxed(value: T) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/binary_search_tree.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn peek(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `root` [INFO] [stdout] --> src/binary_search_tree.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | root: Tree, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/binary_search_tree.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | length: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_search_tree.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/binary_search_tree.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/binary_search_tree.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_recursive` [INFO] [stdout] --> src/binary_search_tree.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn add_recursive(&mut self, node: Tree, value: T) -> Tree { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find` [INFO] [stdout] --> src/binary_search_tree.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn find(&self, value: T) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_recursive` [INFO] [stdout] --> src/binary_search_tree.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn find_recursive(&self, node: &Tree, value: T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `walk` [INFO] [stdout] --> src/binary_search_tree.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn walk(&self, func: impl Fn(&T) -> ()) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `walk_in_order` [INFO] [stdout] --> src/binary_search_tree.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn walk_in_order(&self, node: &Tree, func: &impl Fn(&T) -> ()) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new(value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/doubly_linked_list.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/doubly_linked_list.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tail` [INFO] [stdout] --> src/doubly_linked_list.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | tail: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/doubly_linked_list.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/doubly_linked_list.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/doubly_linked_list.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/doubly_linked_list.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/doubly_linked_list.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/doubly_linked_list.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | fn new(current: Link) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DynamicArray` [INFO] [stdout] --> src/dynamic_array.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DynamicArray { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dynamic_array.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `grow` [INFO] [stdout] --> src/dynamic_array.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn grow(&mut self, min_cap: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ensure_capacity` [INFO] [stdout] --> src/dynamic_array.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn ensure_capacity(&mut self, items_to_add: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `item_at` [INFO] [stdout] --> src/dynamic_array.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn item_at(&mut self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/dynamic_array.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `next` [INFO] [stdout] --> src/singly_linked_list.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | next: Link, [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] --> src/singly_linked_list.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/singly_linked_list.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | value: T, [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] --> src/singly_linked_list.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/singly_linked_list.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/singly_linked_list.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/singly_linked_list.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tail` [INFO] [stdout] --> src/singly_linked_list.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | tail: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/singly_linked_list.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/singly_linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/singly_linked_list.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/singly_linked_list.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn len(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/singly_linked_list.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/singly_linked_list.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `links` [INFO] [stdout] --> src/skip_list.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | links: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/skip_list.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/skip_list.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(level: usize, value: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/skip_list.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `head` [INFO] [stdout] --> src/skip_list.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | head: Link, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tails` [INFO] [stdout] --> src/skip_list.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tails: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/skip_list.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_level` [INFO] [stdout] --> src/skip_list.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | max_level: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/skip_list.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(max_level: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/skip_list.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn append(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_level` [INFO] [stdout] --> src/skip_list.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn get_level(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/binary_search_tree.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | type Tree = Option>>; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 9 - type Tree = Option>>; [INFO] [stdout] 9 + type Tree = Option>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling dsa-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/binary_search_tree.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn peek(&self) -> &T { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/skip_list.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/skip_list.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_value` [INFO] [stdout] --> src/skip_list.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn peek_value(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/binary_search_tree.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | type Tree = Option>>; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 9 - type Tree = Option>>; [INFO] [stdout] 9 + type Tree = Option>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.65s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/dsa_in_rust-fbfb19e0d5bb3694) [INFO] running `Command { std: "docker" "inspect" "d5321a02b3d23352b9a2df9ec6adf3c8fbac1f0bba0d19c2ed08f0e5997d17ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5321a02b3d23352b9a2df9ec6adf3c8fbac1f0bba0d19c2ed08f0e5997d17ca", kill_on_drop: false }` [INFO] [stdout] d5321a02b3d23352b9a2df9ec6adf3c8fbac1f0bba0d19c2ed08f0e5997d17ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] deb78716fd395ff29f0c87ccf7856bb4e027347fc1b84e23df292a60a9fa63d9 [INFO] running `Command { std: "docker" "start" "-a" "deb78716fd395ff29f0c87ccf7856bb4e027347fc1b84e23df292a60a9fa63d9", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `value` [INFO] [stderr] --> src/binary_search_tree.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | value: T, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/binary_search_tree.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `left` [INFO] [stderr] --> src/binary_search_tree.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | left: Tree, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/binary_search_tree.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `right` [INFO] [stderr] --> src/binary_search_tree.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | right: Tree, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/binary_search_tree.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/binary_search_tree.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn new(value: T) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `boxed` [INFO] [stderr] --> src/binary_search_tree.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn boxed(value: T) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/binary_search_tree.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn peek(&self) -> &T { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `root` [INFO] [stderr] --> src/binary_search_tree.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | root: Tree, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/binary_search_tree.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `length` [INFO] [stderr] --> src/binary_search_tree.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | length: u64, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `BinarySearchTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/binary_search_tree.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/binary_search_tree.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add` [INFO] [stderr] --> src/binary_search_tree.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn add(&mut self, value: T) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_recursive` [INFO] [stderr] --> src/binary_search_tree.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | fn add_recursive(&mut self, node: Tree, value: T) -> Tree { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find` [INFO] [stderr] --> src/binary_search_tree.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn find(&self, value: T) -> Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_recursive` [INFO] [stderr] --> src/binary_search_tree.rs:96:8 [INFO] [stderr] | [INFO] [stderr] 96 | fn find_recursive(&self, node: &Tree, value: T) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `walk` [INFO] [stderr] --> src/binary_search_tree.rs:109:12 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn walk(&self, func: impl Fn(&T) -> ()) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `walk_in_order` [INFO] [stderr] --> src/binary_search_tree.rs:113:8 [INFO] [stderr] | [INFO] [stderr] 113 | fn walk_in_order(&self, node: &Tree, func: &impl Fn(&T) -> ()) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/doubly_linked_list.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn new(value: T) -> Rc> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_value` [INFO] [stderr] --> src/doubly_linked_list.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn peek_value(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `head` [INFO] [stderr] --> src/doubly_linked_list.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | head: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/doubly_linked_list.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tail` [INFO] [stderr] --> src/doubly_linked_list.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | tail: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/doubly_linked_list.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `length` [INFO] [stderr] --> src/doubly_linked_list.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/doubly_linked_list.rs:45:10 [INFO] [stderr] | [INFO] [stderr] 45 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/doubly_linked_list.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `len` [INFO] [stderr] --> src/doubly_linked_list.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn len(&self) -> u32 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append` [INFO] [stderr] --> src/doubly_linked_list.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn append(&mut self, value: T) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop` [INFO] [stderr] --> src/doubly_linked_list.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn pop(&mut self) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/doubly_linked_list.rs:120:8 [INFO] [stderr] | [INFO] [stderr] 120 | fn new(current: Link) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `DynamicArray` [INFO] [stderr] --> src/dynamic_array.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct DynamicArray { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/dynamic_array.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `grow` [INFO] [stderr] --> src/dynamic_array.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | fn grow(&mut self, min_cap: usize) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `ensure_capacity` [INFO] [stderr] --> src/dynamic_array.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | fn ensure_capacity(&mut self, items_to_add: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `item_at` [INFO] [stderr] --> src/dynamic_array.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn item_at(&mut self, index: usize) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add` [INFO] [stderr] --> src/dynamic_array.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn add(&mut self, value: T) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `next` [INFO] [stderr] --> src/singly_linked_list.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | next: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/singly_linked_list.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `value` [INFO] [stderr] --> src/singly_linked_list.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | value: T, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/singly_linked_list.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/singly_linked_list.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn new(value: T) -> Rc> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_value` [INFO] [stderr] --> src/singly_linked_list.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn peek_value(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `head` [INFO] [stderr] --> src/singly_linked_list.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | head: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/singly_linked_list.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tail` [INFO] [stderr] --> src/singly_linked_list.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | tail: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/singly_linked_list.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `length` [INFO] [stderr] --> src/singly_linked_list.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SinglyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/singly_linked_list.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/singly_linked_list.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `len` [INFO] [stderr] --> src/singly_linked_list.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn len(&self) -> u32 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append` [INFO] [stderr] --> src/singly_linked_list.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn append(&mut self, value: T) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop` [INFO] [stderr] --> src/singly_linked_list.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub fn pop(&mut self) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `links` [INFO] [stderr] --> src/skip_list.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | links: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `value` [INFO] [stderr] --> src/skip_list.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | value: T, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/skip_list.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn new(level: usize, value: T) -> Rc> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_value` [INFO] [stderr] --> src/skip_list.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn peek_value(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `head` [INFO] [stderr] --> src/skip_list.rs:46:5 [INFO] [stderr] | [INFO] [stderr] 46 | head: Link, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tails` [INFO] [stderr] --> src/skip_list.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | tails: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `length` [INFO] [stderr] --> src/skip_list.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `max_level` [INFO] [stderr] --> src/skip_list.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | max_level: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SkipList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/skip_list.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/skip_list.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn new(max_level: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append` [INFO] [stderr] --> src/skip_list.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn append(&mut self, value: T) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_level` [INFO] [stderr] --> src/skip_list.rs:96:8 [INFO] [stderr] | [INFO] [stderr] 96 | fn get_level(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stderr] --> src/binary_search_tree.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | type Tree = Option>>; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stderr] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stderr] | [INFO] [stderr] 9 - type Tree = Option>>; [INFO] [stderr] 9 + type Tree = Option>>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/binary_search_tree.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn peek(&self) -> &T { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `dsa-in-rust` (lib) generated 54 warnings [INFO] [stderr] warning: `dsa-in-rust` (lib test) generated 4 warnings (3 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dsa_in_rust-fbfb19e0d5bb3694) [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test binary_search_tree::tests::creates_an_empty_bst ... ok [INFO] [stdout] test binary_search_tree::tests::adds_values_to_a_bst ... ok [INFO] [stdout] test binary_search_tree::tests::walks_in_order_the_bst ... ok [INFO] [stdout] test doubly_linked_list::tests::appends_a_value_to_the_list ... ok [INFO] [stdout] test doubly_linked_list::tests::create_an_empty_singly_linked_list ... ok [INFO] [stdout] test binary_search_tree::tests::finds_value_in_bst ... ok [INFO] [stdout] test doubly_linked_list::tests::iterates_backwards ... ok [INFO] [stdout] test doubly_linked_list::tests::iterates_on_each_node ... ok [INFO] [stdout] test doubly_linked_list::tests::pops_a_node_from_the_list ... ok [INFO] [stdout] test doubly_linked_list::tests::retrieves_the_list_length ... ok [INFO] [stdout] test dynamic_array::tests::adds_item_at_the_end_of_the_array ... ok [INFO] [stdout] test dynamic_array::tests::extends_internal_buffer_size ... ok [INFO] [stdout] test dynamic_array::tests::gets_items_from_array ... ok [INFO] [stdout] test singly_linked_list::tests::appends_a_value_to_the_list ... ok [INFO] [stdout] test singly_linked_list::tests::create_an_empty_singly_linked_list ... ok [INFO] [stdout] test singly_linked_list::tests::pops_a_node_from_the_list ... ok [INFO] [stdout] test singly_linked_list::tests::retrieves_the_list_length ... ok [INFO] [stdout] test skip_list::tests::creates_an_empty_skip_list ... ok [INFO] [stdout] test skip_list::tests::appends_a_node_to_the_list ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests dsa-in-rust [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "deb78716fd395ff29f0c87ccf7856bb4e027347fc1b84e23df292a60a9fa63d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "deb78716fd395ff29f0c87ccf7856bb4e027347fc1b84e23df292a60a9fa63d9", kill_on_drop: false }` [INFO] [stdout] deb78716fd395ff29f0c87ccf7856bb4e027347fc1b84e23df292a60a9fa63d9