[INFO] cloning repository https://github.com/t-eckert/rpn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/t-eckert/rpn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-eckert%2Frpn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-eckert%2Frpn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b3a25f61ae1ea7368929240d5ad199ba9e06ddb8 [INFO] checking t-eckert/rpn against try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-eckert%2Frpn" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: Unable to create '/workspace/builds/worker-6-tc2/source/.git/refs/remotes/origin/HEAD.lock': No such file or directory [INFO] [stderr] fatal: unable to update refs/remotes/origin/HEAD [INFO] checking t-eckert/rpn against try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft-eckert%2Frpn" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/t-eckert/rpn on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/t-eckert/rpn [INFO] finished tweaking git repo https://github.com/t-eckert/rpn [INFO] tweaked toml for git repo https://github.com/t-eckert/rpn written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/t-eckert/rpn 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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f00f2ea740f1bf9547974561f71810457b62c88e254a717b0674dee3b1955e2f [INFO] running `Command { std: "docker" "start" "-a" "f00f2ea740f1bf9547974561f71810457b62c88e254a717b0674dee3b1955e2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f00f2ea740f1bf9547974561f71810457b62c88e254a717b0674dee3b1955e2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f00f2ea740f1bf9547974561f71810457b62c88e254a717b0674dee3b1955e2f", kill_on_drop: false }` [INFO] [stdout] f00f2ea740f1bf9547974561f71810457b62c88e254a717b0674dee3b1955e2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e42969987129732104fc3add3d1abb8aaf9f78c6edf02655b8a1f4c64d3c227 [INFO] running `Command { std: "docker" "start" "-a" "4e42969987129732104fc3add3d1abb8aaf9f78c6edf02655b8a1f4c64d3c227", kill_on_drop: false }` [INFO] [stderr] Checking rpn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/evaluator.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 23 | / match instruction { [INFO] [stdout] 24 | | "+" => &self.add(), [INFO] [stdout] 25 | | "-" => &self.subtract(), [INFO] [stdout] 26 | | "*" => &self.multiply(), [INFO] [stdout] ... | [INFO] [stdout] 30 | | &self.push(value) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ expected `()`, found `&()` [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 32 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 30 - &self.push(value) [INFO] [stdout] 30 + self.push(value) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/evaluator.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 23 | / match instruction { [INFO] [stdout] 24 | | "+" => &self.add(), [INFO] [stdout] 25 | | "-" => &self.subtract(), [INFO] [stdout] 26 | | "*" => &self.multiply(), [INFO] [stdout] ... | [INFO] [stdout] 30 | | &self.push(value) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ expected `()`, found `&()` [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 32 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 30 - &self.push(value) [INFO] [stdout] 30 + self.push(value) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rpn` (bin "rpn") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0382]: borrow of moved value: `evaluator` [INFO] [stdout] --> src/evaluator.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 104 | let evaluator = Evaluator { [INFO] [stdout] | --------- move occurs because `evaluator` has type `evaluator::Evaluator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 111 | evaluator.add(); [INFO] [stdout] | ----- `evaluator` moved due to this method call [INFO] [stdout] 112 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `evaluator::Evaluator::add` takes ownership of the receiver `self`, which moves `evaluator` [INFO] [stdout] --> src/evaluator.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | fn add(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `evaluator.stack` as mutable, as `evaluator` is not declared as mutable [INFO] [stdout] --> src/evaluator.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 104 | let mut evaluator = Evaluator { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `evaluator` [INFO] [stdout] --> src/evaluator.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 121 | let evaluator = Evaluator { [INFO] [stdout] | --------- move occurs because `evaluator` has type `evaluator::Evaluator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 128 | evaluator.subtract(); [INFO] [stdout] | ---------- `evaluator` moved due to this method call [INFO] [stdout] 129 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `evaluator::Evaluator::subtract` takes ownership of the receiver `self`, which moves `evaluator` [INFO] [stdout] --> src/evaluator.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | fn subtract(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `evaluator.stack` as mutable, as `evaluator` is not declared as mutable [INFO] [stdout] --> src/evaluator.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 121 | let mut evaluator = Evaluator { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `evaluator` [INFO] [stdout] --> src/evaluator.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 138 | let evaluator = Evaluator { [INFO] [stdout] | --------- move occurs because `evaluator` has type `evaluator::Evaluator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 145 | evaluator.multiply(); [INFO] [stdout] | ---------- `evaluator` moved due to this method call [INFO] [stdout] 146 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `evaluator::Evaluator::multiply` takes ownership of the receiver `self`, which moves `evaluator` [INFO] [stdout] --> src/evaluator.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | fn multiply(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `evaluator.stack` as mutable, as `evaluator` is not declared as mutable [INFO] [stdout] --> src/evaluator.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 138 | let mut evaluator = Evaluator { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `evaluator` [INFO] [stdout] --> src/evaluator.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 155 | let evaluator = Evaluator { [INFO] [stdout] | --------- move occurs because `evaluator` has type `evaluator::Evaluator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 162 | evaluator.divide(); [INFO] [stdout] | -------- `evaluator` moved due to this method call [INFO] [stdout] 163 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `evaluator::Evaluator::divide` takes ownership of the receiver `self`, which moves `evaluator` [INFO] [stdout] --> src/evaluator.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | fn divide(mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `evaluator.stack` as mutable, as `evaluator` is not declared as mutable [INFO] [stdout] --> src/evaluator.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | let actual = evaluator.stack.pop().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 155 | let mut evaluator = Evaluator { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rpn` (bin "rpn" test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "4e42969987129732104fc3add3d1abb8aaf9f78c6edf02655b8a1f4c64d3c227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e42969987129732104fc3add3d1abb8aaf9f78c6edf02655b8a1f4c64d3c227", kill_on_drop: false }` [INFO] [stdout] 4e42969987129732104fc3add3d1abb8aaf9f78c6edf02655b8a1f4c64d3c227