[INFO] cloning repository https://github.com/Amethystix/rust-bst
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Amethystix/rust-bst" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmethystix%2Frust-bst", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmethystix%2Frust-bst'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9a59562230a3e1288aba9f53289eb89836327fe7
[INFO] checking Amethystix/rust-bst against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmethystix%2Frust-bst" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Amethystix/rust-bst
[INFO] finished tweaking git repo https://github.com/Amethystix/rust-bst
[INFO] tweaked toml for git repo https://github.com/Amethystix/rust-bst written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Amethystix/rust-bst on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Amethystix/rust-bst 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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d718bb7e1e2b80a27e94f42d4e68c0c0bfb4a140682762d56b131de67836d5a4
[INFO] running `Command { std: "docker" "start" "-a" "d718bb7e1e2b80a27e94f42d4e68c0c0bfb4a140682762d56b131de67836d5a4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d718bb7e1e2b80a27e94f42d4e68c0c0bfb4a140682762d56b131de67836d5a4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d718bb7e1e2b80a27e94f42d4e68c0c0bfb4a140682762d56b131de67836d5a4", kill_on_drop: false }`
[INFO] [stdout] d718bb7e1e2b80a27e94f42d4e68c0c0bfb4a140682762d56b131de67836d5a4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3a658b4457143de5c6c47bb8f770706e21473b6a25bfb7551692508f774cf5e8
[INFO] running `Command { std: "docker" "start" "-a" "3a658b4457143de5c6c47bb8f770706e21473b6a25bfb7551692508f774cf5e8", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-bst v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0507]: cannot move out of `self.root` as enum variant `Some` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:22:25
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ----    ^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 data moved here
[INFO] [stdout]    |                 move occurs because `root` has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = &self.root {
[INFO] [stdout]    |                         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `self.root` because it is borrowed
[INFO] [stdout]   --> src/bst.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 21 |   pub fn add(&mut self, value: i32) {
[INFO] [stdout]    |              --------- binding `self` declared here
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout] 23 |       self.root = self.addRec(self.root, value);
[INFO] [stdout]    |                   ---- ------ ^^^^^^^^^ move out of `self.root` occurs here
[INFO] [stdout]    |                   |    |
[INFO] [stdout]    |                   |    borrow later used by call
[INFO] [stdout]    |                   borrow of `*self` occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` as enum variant `Some` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:22:25
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ----    ^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 data moved here
[INFO] [stdout]    |                 move occurs because `root` has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = &self.root {
[INFO] [stdout]    |                         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `self.root` because it is borrowed
[INFO] [stdout]   --> src/bst.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 21 |   pub fn add(&mut self, value: i32) {
[INFO] [stdout]    |              --------- binding `self` declared here
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout] 23 |       self.root = self.addRec(self.root, value);
[INFO] [stdout]    |                   ---- ------ ^^^^^^^^^ move out of `self.root` occurs here
[INFO] [stdout]    |                   |    |
[INFO] [stdout]    |                   |    borrow later used by call
[INFO] [stdout]    |                   borrow of `*self` occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |       self.root = self.addRec(self.root, value);
[INFO] [stdout]    |                               ^^^^^^^^^ move occurs because `self.root` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 23 |       self.root = self.addRec(self.root.clone(), value);
[INFO] [stdout]    |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `root`
[INFO] [stdout]   --> src/bst.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ^^^^ help: if this is intentional, prefix it with an underscore: `_root`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `curr.right`, as `curr` is not declared as mutable
[INFO] [stdout]   --> src/bst.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         curr.right = self.addRec(curr.right, value);
[INFO] [stdout]    |         ^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(mut curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `curr.left`, as `curr` is not declared as mutable
[INFO] [stdout]   --> src/bst.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         curr.left = self.addRec(curr.left, value);
[INFO] [stdout]    |         ^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(mut curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of partially moved value: `current`
[INFO] [stdout]   --> src/bst.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(curr) = current {
[INFO] [stdout]    |                 ---- value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 47 |     return current;
[INFO] [stdout]    |            ^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(ref curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |       self.root = self.addRec(self.root, value);
[INFO] [stdout]    |                               ^^^^^^^^^ move occurs because `self.root` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 23 |       self.root = self.addRec(self.root.clone(), value);
[INFO] [stdout]    |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `root`
[INFO] [stdout]   --> src/bst.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ^^^^ help: if this is intentional, prefix it with an underscore: `_root`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `curr.right`, as `curr` is not declared as mutable
[INFO] [stdout]   --> src/bst.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         curr.right = self.addRec(curr.right, value);
[INFO] [stdout]    |         ^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(mut curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `curr.left`, as `curr` is not declared as mutable
[INFO] [stdout]   --> src/bst.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         curr.left = self.addRec(curr.left, value);
[INFO] [stdout]    |         ^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(mut curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` as enum variant `Some` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:51:25
[INFO] [stdout]    |
[INFO] [stdout] 51 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ----    ^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 data moved here
[INFO] [stdout]    |                 move occurs because `root` has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 51 |     if let Some(root) = &self.root {
[INFO] [stdout]    |                         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of partially moved value: `current`
[INFO] [stdout]   --> src/bst.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(curr) = current {
[INFO] [stdout]    |                 ---- value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 47 |     return current;
[INFO] [stdout]    |            ^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 34 |     if let Some(ref curr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` as enum variant `Some` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:51:25
[INFO] [stdout]    |
[INFO] [stdout] 51 |     if let Some(root) = self.root {
[INFO] [stdout]    |                 ----    ^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 data moved here
[INFO] [stdout]    |                 move occurs because `root` has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 51 |     if let Some(root) = &self.root {
[INFO] [stdout]    |                         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of partially moved value: `curr.left`
[INFO] [stdout]   --> src/bst.rs:73:45
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(left) = curr.left {
[INFO] [stdout]    |                            ---- value partially moved here
[INFO] [stdout] 72 |           if let Some(right) = curr.right {
[INFO] [stdout] 73 |             let ancestor = self.getAncestor(curr.left);
[INFO] [stdout]    |                                             ^^^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(ref left) = curr.left {
[INFO] [stdout]    |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `curr.left`
[INFO] [stdout]   --> src/bst.rs:75:42
[INFO] [stdout]    |
[INFO] [stdout] 73 |             let ancestor = self.getAncestor(curr.left);
[INFO] [stdout]    |                                             --------- value moved here
[INFO] [stdout] 74 |             if let Some(someAncestor) = ancestor {
[INFO] [stdout] 75 |               curr.left = self.removeRec(curr.left, (*someAncestor).data);
[INFO] [stdout]    |                                          ^^^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout]    = note: move occurs because `curr.left` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of partially moved value: `current`
[INFO] [stdout]   --> src/bst.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 57 |     if let Some(optCurr) = current {
[INFO] [stdout]    |                 ------- value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 82 |     return current
[INFO] [stdout]    |            ^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 57 |     if let Some(ref optCurr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `left`
[INFO] [stdout]   --> src/bst.rs:71:28
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(left) = curr.left {
[INFO] [stdout]    |                            ^^^^ help: if this is intentional, prefix it with an underscore: `_left`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `right`
[INFO] [stdout]   --> src/bst.rs:72:23
[INFO] [stdout]    |
[INFO] [stdout] 72 |           if let Some(right) = curr.right {
[INFO] [stdout]    |                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_right`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `self.root` because it is borrowed
[INFO] [stdout]   --> src/bst.rs:97:26
[INFO] [stdout]    |
[INFO] [stdout] 96 |   pub fn printInOrder(&mut self) {
[INFO] [stdout]    |                       --------- binding `self` declared here
[INFO] [stdout] 97 |     self.printInOrderRec(self.root)
[INFO] [stdout]    |     ---- --------------- ^^^^^^^^^ move out of `self.root` occurs here
[INFO] [stdout]    |     |    |
[INFO] [stdout]    |     |    borrow later used by call
[INFO] [stdout]    |     borrow of `*self` occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of partially moved value: `curr.left`
[INFO] [stdout]   --> src/bst.rs:73:45
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(left) = curr.left {
[INFO] [stdout]    |                            ---- value partially moved here
[INFO] [stdout] 72 |           if let Some(right) = curr.right {
[INFO] [stdout] 73 |             let ancestor = self.getAncestor(curr.left);
[INFO] [stdout]    |                                             ^^^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(ref left) = curr.left {
[INFO] [stdout]    |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:97:26
[INFO] [stdout]    |
[INFO] [stdout] 97 |     self.printInOrderRec(self.root)
[INFO] [stdout]    |                          ^^^^^^^^^ move occurs because `self.root` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 97 |     self.printInOrderRec(self.root.clone())
[INFO] [stdout]    |                                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `curr.left`
[INFO] [stdout]   --> src/bst.rs:75:42
[INFO] [stdout]    |
[INFO] [stdout] 73 |             let ancestor = self.getAncestor(curr.left);
[INFO] [stdout]    |                                             --------- value moved here
[INFO] [stdout] 74 |             if let Some(someAncestor) = ancestor {
[INFO] [stdout] 75 |               curr.left = self.removeRec(curr.left, (*someAncestor).data);
[INFO] [stdout]    |                                          ^^^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout]    = note: move occurs because `curr.left` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-bst` (bin "rust-bst") due to 12 previous errors; 3 warnings emitted
[INFO] [stdout] error[E0382]: use of partially moved value: `current`
[INFO] [stdout]   --> src/bst.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 57 |     if let Some(optCurr) = current {
[INFO] [stdout]    |                 ------- value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 82 |     return current
[INFO] [stdout]    |            ^^^^^^^ value used here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Box<Node>`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 57 |     if let Some(ref optCurr) = current {
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `left`
[INFO] [stdout]   --> src/bst.rs:71:28
[INFO] [stdout]    |
[INFO] [stdout] 71 |         } else if let Some(left) = curr.left {
[INFO] [stdout]    |                            ^^^^ help: if this is intentional, prefix it with an underscore: `_left`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `right`
[INFO] [stdout]   --> src/bst.rs:72:23
[INFO] [stdout]    |
[INFO] [stdout] 72 |           if let Some(right) = curr.right {
[INFO] [stdout]    |                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_right`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `self.root` because it is borrowed
[INFO] [stdout]   --> src/bst.rs:97:26
[INFO] [stdout]    |
[INFO] [stdout] 96 |   pub fn printInOrder(&mut self) {
[INFO] [stdout]    |                       --------- binding `self` declared here
[INFO] [stdout] 97 |     self.printInOrderRec(self.root)
[INFO] [stdout]    |     ---- --------------- ^^^^^^^^^ move out of `self.root` occurs here
[INFO] [stdout]    |     |    |
[INFO] [stdout]    |     |    borrow later used by call
[INFO] [stdout]    |     borrow of `*self` occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.root` which is behind a mutable reference
[INFO] [stdout]   --> src/bst.rs:97:26
[INFO] [stdout]    |
[INFO] [stdout] 97 |     self.printInOrderRec(self.root)
[INFO] [stdout]    |                          ^^^^^^^^^ move occurs because `self.root` has type `Option<Box<Node>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 97 |     self.printInOrderRec(self.root.clone())
[INFO] [stdout]    |                                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0505, E0507, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0505, E0507, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-bst` (bin "rust-bst" test) due to 12 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "3a658b4457143de5c6c47bb8f770706e21473b6a25bfb7551692508f774cf5e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3a658b4457143de5c6c47bb8f770706e21473b6a25bfb7551692508f774cf5e8", kill_on_drop: false }`
[INFO] [stdout] 3a658b4457143de5c6c47bb8f770706e21473b6a25bfb7551692508f774cf5e8
