[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] building FaZeBunger/Algorithm-Practice against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFaZeBunger%2FAlgorithm-Practice" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/FaZeBunger/Algorithm-Practice on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-4-tc2/source/Cargo.toml
[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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 940c3d697daf6cb5e653b88bc3858eeb50848d93cddf27a4ac4915983b3ce698
[INFO] running `Command { std: "docker" "start" "-a" "940c3d697daf6cb5e653b88bc3858eeb50848d93cddf27a4ac4915983b3ce698", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "940c3d697daf6cb5e653b88bc3858eeb50848d93cddf27a4ac4915983b3ce698", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "940c3d697daf6cb5e653b88bc3858eeb50848d93cddf27a4ac4915983b3ce698", kill_on_drop: false }`
[INFO] [stdout] 940c3d697daf6cb5e653b88bc3858eeb50848d93cddf27a4ac4915983b3ce698
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c8289d3b3bb5ee201d60a00939a0638dadc91cca81837b1135572cf1dcc6cf1b
[INFO] running `Command { std: "docker" "start" "-a" "c8289d3b3bb5ee201d60a00939a0638dadc91cca81837b1135572cf1dcc6cf1b", kill_on_drop: false }`
[INFO] [stderr]    Compiling 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/334963c956d25708feab489a3816ae63f639355d/library/core/src/option.rs:975: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/334963c956d25708feab489a3816ae63f639355d/library/core/src/option.rs:975: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] [stderr] error: could not compile `algo` (bin "algo") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "c8289d3b3bb5ee201d60a00939a0638dadc91cca81837b1135572cf1dcc6cf1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c8289d3b3bb5ee201d60a00939a0638dadc91cca81837b1135572cf1dcc6cf1b", kill_on_drop: false }`
[INFO] [stdout] c8289d3b3bb5ee201d60a00939a0638dadc91cca81837b1135572cf1dcc6cf1b
