[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] checking EstebanBorai/data-structures-and-algorithms-with-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [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-27/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-27/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/EstebanBorai/data-structures-and-algorithms-with-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-27/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 120677a5ba6c5d5ffa8494d5777e68f5a302652dc1646217490fadda7a1254e6 [INFO] running `Command { std: "docker" "start" "-a" "120677a5ba6c5d5ffa8494d5777e68f5a302652dc1646217490fadda7a1254e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "120677a5ba6c5d5ffa8494d5777e68f5a302652dc1646217490fadda7a1254e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "120677a5ba6c5d5ffa8494d5777e68f5a302652dc1646217490fadda7a1254e6", kill_on_drop: false }` [INFO] [stdout] 120677a5ba6c5d5ffa8494d5777e68f5a302652dc1646217490fadda7a1254e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d291512f7ba2ae19de8b1e3c5557ab339910b7292c2783d1cca59707a14a3095 [INFO] running `Command { std: "docker" "start" "-a" "d291512f7ba2ae19de8b1e3c5557ab339910b7292c2783d1cca59707a14a3095", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [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] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking dsa-in-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] warning: error applying suggestions to `src/binary_search_tree.rs` [INFO] [stderr] [INFO] [stderr] The full error message was: [INFO] [stderr] [INFO] [stderr] > Could not replace range 295...327 in file -- maybe parts of it were already replaced? [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `dsa_in_rust` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/binary_search_tree.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected one of `,`, `:`, `=`, or `>`, found `+` [INFO] [stderr] --> src/binary_search_tree.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | type Tree = Option>>; [INFO] [stderr] | ^ expected one of `,`, `:`, `=`, or `>` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [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] = note: `#[warn(dead_code)]` on by default [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: 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: 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: 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: 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: 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: 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: 35 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: 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.81s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking dsa-in-rust v0.1.0 (/tmp/fixit) [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] = note: `#[warn(dead_code)]` on by default [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: 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: 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: 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: 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: 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: 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: 35 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: 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "d291512f7ba2ae19de8b1e3c5557ab339910b7292c2783d1cca59707a14a3095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d291512f7ba2ae19de8b1e3c5557ab339910b7292c2783d1cca59707a14a3095", kill_on_drop: false }` [INFO] [stdout] d291512f7ba2ae19de8b1e3c5557ab339910b7292c2783d1cca59707a14a3095