[INFO] cloning repository https://github.com/CCBTony/rust_datastruct [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CCBTony/rust_datastruct" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCCBTony%2Frust_datastruct", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCCBTony%2Frust_datastruct'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25b0fc476ee391f5c4a90961f1ea540285622ffe [INFO] checking CCBTony/rust_datastruct against master#7c4ac0603e9ee5295bc802c90575391288a69a8a for pr-124728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCCBTony%2Frust_datastruct" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CCBTony/rust_datastruct on toolchain 7c4ac0603e9ee5295bc802c90575391288a69a8a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7c4ac0603e9ee5295bc802c90575391288a69a8a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CCBTony/rust_datastruct [INFO] finished tweaking git repo https://github.com/CCBTony/rust_datastruct [INFO] tweaked toml for git repo https://github.com/CCBTony/rust_datastruct written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CCBTony/rust_datastruct already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7c4ac0603e9ee5295bc802c90575391288a69a8a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding getset v0.0.7 (latest: v0.1.2) [INFO] [stderr] Updating `https://mirrors.ustc.edu.cn/crates.io-index/` index [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking CCBTony/rust_datastruct against try#98ebbae35138252af77610c20ea5a5e8bf68d639 for pr-124728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCCBTony%2Frust_datastruct" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CCBTony/rust_datastruct on toolchain 98ebbae35138252af77610c20ea5a5e8bf68d639 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CCBTony/rust_datastruct [INFO] finished tweaking git repo https://github.com/CCBTony/rust_datastruct [INFO] tweaked toml for git repo https://github.com/CCBTony/rust_datastruct written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CCBTony/rust_datastruct already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding getset v0.0.7 (latest: v0.1.2) [INFO] [stderr] Updating `https://mirrors.ustc.edu.cn/crates.io-index/` index [INFO] [stderr] Adding proc-macro2 v0.4.30 (latest: v1.0.82) [INFO] [stderr] Adding quote v0.6.13 (latest: v1.0.36) [INFO] [stderr] Adding syn v0.15.44 (latest: v2.0.63) [INFO] [stderr] Adding unicode-xid v0.1.0 (latest: v0.2.4) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45c3c744da581ac26717313dc5ce77d6945f3525133f8c796cd83eb6b4f2f56c [INFO] running `Command { std: "docker" "start" "-a" "45c3c744da581ac26717313dc5ce77d6945f3525133f8c796cd83eb6b4f2f56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45c3c744da581ac26717313dc5ce77d6945f3525133f8c796cd83eb6b4f2f56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45c3c744da581ac26717313dc5ce77d6945f3525133f8c796cd83eb6b4f2f56c", kill_on_drop: false }` [INFO] [stdout] 45c3c744da581ac26717313dc5ce77d6945f3525133f8c796cd83eb6b4f2f56c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01a2ddbc2479c0d2bb077cec604868dff4700120bf9cd7fe37ebe04141a093ed [INFO] running `Command { std: "docker" "start" "-a" "01a2ddbc2479c0d2bb077cec604868dff4700120bf9cd7fe37ebe04141a093ed", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling getset v0.0.7 [INFO] [stderr] Checking rust_study v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tree::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tree::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::search::*` [INFO] [stdout] --> src/tree.rs:655:13 [INFO] [stdout] | [INFO] [stdout] 655 | use super::search::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tree::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tree::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::search` [INFO] [stdout] --> src/tree.rs:623:13 [INFO] [stdout] | [INFO] [stdout] 623 | use super::search::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cur_p` [INFO] [stdout] --> src/tree.rs:434:21 [INFO] [stdout] | [INFO] [stdout] 434 | let cur_p = cur.as_ptr(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cur_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:555:25 [INFO] [stdout] | [INFO] [stdout] 555 | let mut k1 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:556:25 [INFO] [stdout] | [INFO] [stdout] 556 | let mut k2 = link_right(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:557:25 [INFO] [stdout] | [INFO] [stdout] 557 | let mut y = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:567:25 [INFO] [stdout] | [INFO] [stdout] 567 | let mut k1 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:568:25 [INFO] [stdout] | [INFO] [stdout] 568 | let mut k3 = link_left(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:569:25 [INFO] [stdout] | [INFO] [stdout] 569 | let mut k2 = link_right(Rc::clone(&k3), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:570:25 [INFO] [stdout] | [INFO] [stdout] 570 | let mut b = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:571:25 [INFO] [stdout] | [INFO] [stdout] 571 | let mut c = link_right(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | let mut k2 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:584:25 [INFO] [stdout] | [INFO] [stdout] 584 | let mut k1 = link_left(Rc::clone(&k2), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:585:25 [INFO] [stdout] | [INFO] [stdout] 585 | let mut y = link_left(Rc::clone(&k1), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:595:25 [INFO] [stdout] | [INFO] [stdout] 595 | let mut k3 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:596:25 [INFO] [stdout] | [INFO] [stdout] 596 | let mut k1 = link_left(Rc::clone(&k3), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:597:25 [INFO] [stdout] | [INFO] [stdout] 597 | let mut k2 = link_right(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:598:25 [INFO] [stdout] | [INFO] [stdout] 598 | let mut b = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:599:25 [INFO] [stdout] | [INFO] [stdout] 599 | let mut c = link_right(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/tree.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct BinaryNode [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | value: Rc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `depth` are never used [INFO] [stdout] --> src/tree.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 45 | impl BinaryNode { [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] 46 | pub fn new(key: String, value: V) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn depth(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/tree.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub trait SearchTree { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 242 | fn root(&self) -> &Option>>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 243 | fn add_node(&mut self, node_rc: Rc>>); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | fn find_node(&self, key: &String) -> Option>>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn find(&self, key: &String) -> Option>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | fn find_and_clone(&self, key: &String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | fn add(&mut self, key: String, value: V) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | fn update(&mut self, key: &String, value: V) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn depth(&self) -> i32 { self.height() } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cur_p` [INFO] [stdout] --> src/tree.rs:434:21 [INFO] [stdout] | [INFO] [stdout] 434 | let cur_p = cur.as_ptr(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cur_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dumps` is never used [INFO] [stdout] --> src/tree.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn dumps(node: Rc>>, level: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `min_val`, `min_val_clone`, `max_val`, `max_val_clone`, and `height` are never used [INFO] [stdout] --> src/tree.rs:473:16 [INFO] [stdout] | [INFO] [stdout] 472 | impl AVLTree { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 473 | pub fn new() -> Self { Self { root: None } } [INFO] [stdout] | ^^^ [INFO] [stdout] 474 | [INFO] [stdout] 475 | pub fn min_val(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 493 | pub fn min_val_clone(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 500 | pub fn max_val(&self) -> Option>> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | pub fn max_val_clone(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 525 | pub fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:555:25 [INFO] [stdout] | [INFO] [stdout] 555 | let mut k1 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:556:25 [INFO] [stdout] | [INFO] [stdout] 556 | let mut k2 = link_right(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:557:25 [INFO] [stdout] | [INFO] [stdout] 557 | let mut y = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:567:25 [INFO] [stdout] | [INFO] [stdout] 567 | let mut k1 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:568:25 [INFO] [stdout] | [INFO] [stdout] 568 | let mut k3 = link_left(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:569:25 [INFO] [stdout] | [INFO] [stdout] 569 | let mut k2 = link_right(Rc::clone(&k3), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:570:25 [INFO] [stdout] | [INFO] [stdout] 570 | let mut b = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:571:25 [INFO] [stdout] | [INFO] [stdout] 571 | let mut c = link_right(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | let mut k2 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:584:25 [INFO] [stdout] | [INFO] [stdout] 584 | let mut k1 = link_left(Rc::clone(&k2), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:585:25 [INFO] [stdout] | [INFO] [stdout] 585 | let mut y = link_left(Rc::clone(&k1), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:595:25 [INFO] [stdout] | [INFO] [stdout] 595 | let mut k3 = Rc::clone(&root); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:596:25 [INFO] [stdout] | [INFO] [stdout] 596 | let mut k1 = link_left(Rc::clone(&k3), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:597:25 [INFO] [stdout] | [INFO] [stdout] 597 | let mut k2 = link_right(Rc::clone(&k1), None).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:598:25 [INFO] [stdout] | [INFO] [stdout] 598 | let mut b = link_left(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree.rs:599:25 [INFO] [stdout] | [INFO] [stdout] 599 | let mut c = link_right(Rc::clone(&k2), None); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_node`, `find`, `find_and_clone`, `update`, `height`, and `depth` are never used [INFO] [stdout] --> src/tree.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub trait SearchTree { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 246 | fn find_node(&self, key: &String) -> Option>>> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn find(&self, key: &String) -> Option>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | fn find_and_clone(&self, key: &String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | fn update(&mut self, key: &String, value: V) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn height(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn depth(&self) -> i32 { self.height() } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.27s [INFO] running `Command { std: "docker" "inspect" "01a2ddbc2479c0d2bb077cec604868dff4700120bf9cd7fe37ebe04141a093ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01a2ddbc2479c0d2bb077cec604868dff4700120bf9cd7fe37ebe04141a093ed", kill_on_drop: false }` [INFO] [stdout] 01a2ddbc2479c0d2bb077cec604868dff4700120bf9cd7fe37ebe04141a093ed