[INFO] cloning repository https://github.com/FaZeBunger/Algorithm-Practice
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FaZeBunger/Algorithm-Practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFaZeBunger%2FAlgorithm-Practice", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFaZeBunger%2FAlgorithm-Practice'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 336246997a313a6d5d4403f7eee98480d4291483
[INFO] checking FaZeBunger/Algorithm-Practice against master#8f21a5c92ea55c348c275a1bc4fedbdf181e0d64 for pr-143011
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFaZeBunger%2FAlgorithm-Practice" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FaZeBunger/Algorithm-Practice
[INFO] finished tweaking git repo https://github.com/FaZeBunger/Algorithm-Practice
[INFO] tweaked toml for git repo https://github.com/FaZeBunger/Algorithm-Practice written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FaZeBunger/Algorithm-Practice on toolchain 8f21a5c92ea55c348c275a1bc4fedbdf181e0d64
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FaZeBunger/Algorithm-Practice 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" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] aa0e2b377a30aba9ae7ab70b286d2d0696068c1235c51503a3a36ad7b9c63f96
[INFO] running `Command { std: "docker" "start" "-a" "aa0e2b377a30aba9ae7ab70b286d2d0696068c1235c51503a3a36ad7b9c63f96", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aa0e2b377a30aba9ae7ab70b286d2d0696068c1235c51503a3a36ad7b9c63f96", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aa0e2b377a30aba9ae7ab70b286d2d0696068c1235c51503a3a36ad7b9c63f96", kill_on_drop: false }`
[INFO] [stdout] aa0e2b377a30aba9ae7ab70b286d2d0696068c1235c51503a3a36ad7b9c63f96
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8e3bf4bdf0848468215b18ac812f16d51f0ea8ec23ea2bf4f673cb699e9e4a0a
[INFO] running `Command { std: "docker" "start" "-a" "8e3bf4bdf0848468215b18ac812f16d51f0ea8ec23ea2bf4f673cb699e9e4a0a", kill_on_drop: false }`
[INFO] [stderr]     Checking algo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0594]: cannot assign to `item.next`, as `item` is not declared as mutable
[INFO] [stdout]   --> src/stack.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(self.top.unwrap()));
[INFO] [stdout]    |         ^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn push(&mut self, mut item: Item<T>) {
[INFO] [stdout]    |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.top` which is behind a mutable reference
[INFO] [stdout]   --> src/stack.rs:23:35
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(self.top.unwrap()));
[INFO] [stdout]    |                                   ^^^^^^^^ -------- `self.top` moved due to this method call
[INFO] [stdout]    |                                   |
[INFO] [stdout]    |                                   help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
[INFO] [stdout]    |                                   move occurs because `self.top` has type `Option<Item<T>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `self.top`
[INFO] [stdout]   --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/option.rs:1002:25
[INFO] [stdout] help: you could `clone` the value and consume it, if the `Item<T>: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(<Option<Item<T>> as Clone>::clone(&self.top).unwrap()));
[INFO] [stdout]    |                                   +++++++++++++++++++++++++++++++++++        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/stack.rs:37:21
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let value = self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/stack.rs:17:6
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl<T> Stack<T> {
[INFO] [stdout]    |      ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 37 |         let value = self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     -------------------------------- you could clone this value
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let value = &self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.top` which is behind a mutable reference
[INFO] [stdout]   --> src/stack.rs:38:26
[INFO] [stdout]    |
[INFO] [stdout] 38 |         self.top = Some(*self.top.unwrap().next.unwrap());
[INFO] [stdout]    |                          ^^^^^^^^ -------- `self.top` moved due to this method call
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
[INFO] [stdout]    |                          move occurs because `self.top` has type `Option<Item<T>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `self.top`
[INFO] [stdout]   --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/option.rs:1002:25
[INFO] [stdout] help: you could `clone` the value and consume it, if the `Item<T>: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 38 |         self.top = Some(*<Option<Item<T>> as Clone>::clone(&self.top).unwrap().next.unwrap());
[INFO] [stdout]    |                          +++++++++++++++++++++++++++++++++++        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0507, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0507`.
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `item.next`, as `item` is not declared as mutable
[INFO] [stdout]   --> src/stack.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(self.top.unwrap()));
[INFO] [stdout]    |         ^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub fn push(&mut self, mut item: Item<T>) {
[INFO] [stdout]    |                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.top` which is behind a mutable reference
[INFO] [stdout]   --> src/stack.rs:23:35
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(self.top.unwrap()));
[INFO] [stdout]    |                                   ^^^^^^^^ -------- `self.top` moved due to this method call
[INFO] [stdout]    |                                   |
[INFO] [stdout]    |                                   help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
[INFO] [stdout]    |                                   move occurs because `self.top` has type `Option<Item<T>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `self.top`
[INFO] [stdout]   --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/option.rs:1002:25
[INFO] [stdout] help: you could `clone` the value and consume it, if the `Item<T>: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 23 |         item.next = Some(Box::new(<Option<Item<T>> as Clone>::clone(&self.top).unwrap()));
[INFO] [stdout]    |                                   +++++++++++++++++++++++++++++++++++        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of a shared reference
[INFO] [stdout]   --> src/stack.rs:37:21
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let value = self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/stack.rs:17:6
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl<T> Stack<T> {
[INFO] [stdout]    |      ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 37 |         let value = self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     -------------------------------- you could clone this value
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let value = &self.top.as_ref().unwrap().value;
[INFO] [stdout]    |                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.top` which is behind a mutable reference
[INFO] [stdout]   --> src/stack.rs:38:26
[INFO] [stdout]    |
[INFO] [stdout] 38 |         self.top = Some(*self.top.unwrap().next.unwrap());
[INFO] [stdout]    |                          ^^^^^^^^ -------- `self.top` moved due to this method call
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
[INFO] [stdout]    |                          move occurs because `self.top` has type `Option<Item<T>>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `self.top`
[INFO] [stdout]   --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/option.rs:1002:25
[INFO] [stdout] help: you could `clone` the value and consume it, if the `Item<T>: Clone` trait bound could be satisfied
[INFO] [stdout]    |
[INFO] [stdout] 38 |         self.top = Some(*<Option<Item<T>> as Clone>::clone(&self.top).unwrap().next.unwrap());
[INFO] [stdout]    |                          +++++++++++++++++++++++++++++++++++        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `algo` (bin "algo" test) due to 4 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0507, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0507`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `algo` (bin "algo") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "8e3bf4bdf0848468215b18ac812f16d51f0ea8ec23ea2bf4f673cb699e9e4a0a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8e3bf4bdf0848468215b18ac812f16d51f0ea8ec23ea2bf4f673cb699e9e4a0a", kill_on_drop: false }`
[INFO] [stdout] 8e3bf4bdf0848468215b18ac812f16d51f0ea8ec23ea2bf4f673cb699e9e4a0a
