[INFO] cloning repository https://github.com/James1404/Kilt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/James1404/Kilt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJames1404%2FKilt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJames1404%2FKilt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28deb55aa473ce16df8cb02df640f7f4b9791957 [INFO] checking James1404/Kilt against try#3ec2a775459d36c7d90654e47c56ff7bb0d542ab for pr-139087 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJames1404%2FKilt" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/James1404/Kilt on toolchain 3ec2a775459d36c7d90654e47c56ff7bb0d542ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/James1404/Kilt [INFO] finished tweaking git repo https://github.com/James1404/Kilt [INFO] tweaked toml for git repo https://github.com/James1404/Kilt written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/James1404/Kilt 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" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec7230641bd0a9a503e7bb23e8f416fcc6e4cad27534e661135eaf31e6fc244d [INFO] running `Command { std: "docker" "start" "-a" "ec7230641bd0a9a503e7bb23e8f416fcc6e4cad27534e661135eaf31e6fc244d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec7230641bd0a9a503e7bb23e8f416fcc6e4cad27534e661135eaf31e6fc244d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec7230641bd0a9a503e7bb23e8f416fcc6e4cad27534e661135eaf31e6fc244d", kill_on_drop: false }` [INFO] [stdout] ec7230641bd0a9a503e7bb23e8f416fcc6e4cad27534e661135eaf31e6fc244d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+3ec2a775459d36c7d90654e47c56ff7bb0d542ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74df72db3b69e2f2ef20c87127f22b9d45015569d055a40ba2ee3300f7af7d47 [INFO] running `Command { std: "docker" "start" "-a" "74df72db3b69e2f2ef20c87127f22b9d45015569d055a40ba2ee3300f7af7d47", kill_on_drop: false }` [INFO] [stderr] Checking RustCompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/main.rs:212:26 [INFO] [stdout] | [INFO] [stdout] 210 | let mut start = self.current().clone(); [INFO] [stdout] | --------- move occurs because `start` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] 211 | [INFO] [stdout] 212 | while precedence(start) >= min_precedence { [INFO] [stdout] | -----------------^^^^^------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here, in previous iteration of loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 212 ~ let mut value = precedence(start); [INFO] [stdout] 213 ~ while precedence(start) >= min_precedence { [INFO] [stdout] 214 | let op = start; [INFO] [stdout] ... [INFO] [stdout] 217 | start = self.current(); [INFO] [stdout] 218 ~ while value > precedence(op) { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 217 | while precedence(start.clone()) > precedence(op) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/main.rs:212:26 [INFO] [stdout] | [INFO] [stdout] 210 | let mut start = self.current().clone(); [INFO] [stdout] | --------- move occurs because `start` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] 211 | [INFO] [stdout] 212 | while precedence(start) >= min_precedence { [INFO] [stdout] | -----------------^^^^^------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here, in previous iteration of loop [INFO] [stdout] | inside of this loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 212 ~ let mut value = precedence(start); [INFO] [stdout] 213 ~ while precedence(start) >= min_precedence { [INFO] [stdout] 214 | let op = start; [INFO] [stdout] ... [INFO] [stdout] 217 | start = self.current(); [INFO] [stdout] 218 ~ while value > precedence(op) { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 217 | while precedence(start.clone()) > precedence(op) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/main.rs:213:22 [INFO] [stdout] | [INFO] [stdout] 210 | let mut start = self.current().clone(); [INFO] [stdout] | --------- move occurs because `start` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] 211 | [INFO] [stdout] 212 | while precedence(start) >= min_precedence { [INFO] [stdout] | ----------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here [INFO] [stdout] | inside of this loop [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 212 ~ let mut value = precedence(start); [INFO] [stdout] 213 ~ while value >= min_precedence { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 212 | while precedence(start.clone()) >= min_precedence { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `start` [INFO] [stdout] --> src/main.rs:213:22 [INFO] [stdout] | [INFO] [stdout] 210 | let mut start = self.current().clone(); [INFO] [stdout] | --------- move occurs because `start` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] 211 | [INFO] [stdout] 212 | while precedence(start) >= min_precedence { [INFO] [stdout] | ----------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here [INFO] [stdout] | inside of this loop [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 212 ~ let mut value = precedence(start); [INFO] [stdout] 213 ~ while value >= min_precedence { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 212 | while precedence(start.clone()) >= min_precedence { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:217:50 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- ----- this reinitialization might get skipped [INFO] [stdout] | | [INFO] [stdout] | move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | -------------------------------------^^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | inside of this loop [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | -- value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > precedence(op) { [INFO] [stdout] 219 | right = self.number(right, precedence(op) + [INFO] [stdout] 220 ~ if precedence(self.current()) > value { 1 } else { 0 }); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op.clone()) { 1 } else { 0 }); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:217:50 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- ----- this reinitialization might get skipped [INFO] [stdout] | | [INFO] [stdout] | move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | -------------------------------------^^- [INFO] [stdout] | | | [INFO] [stdout] | | value used here after move [INFO] [stdout] | inside of this loop [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | -- value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > precedence(op) { [INFO] [stdout] 219 | right = self.number(right, precedence(op) + [INFO] [stdout] 220 ~ if precedence(self.current()) > value { 1 } else { 0 }); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op.clone()) { 1 } else { 0 }); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | ---- ------ first borrow later used by call [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] help: try adding a local storing this argument... [INFO] [stdout] --> src/main.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: ...and then using that local as the argument to this call [INFO] [stdout] --> src/main.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | _________________________^ [INFO] [stdout] 219 | | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | |____________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | ---- ------ first borrow later used by call [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] help: try adding a local storing this argument... [INFO] [stdout] --> src/main.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: ...and then using that local as the argument to this call [INFO] [stdout] --> src/main.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | _________________________^ [INFO] [stdout] 219 | | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | |____________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:219:64 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- inside of this loop [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | -- value moved here [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > precedence(op) { [INFO] [stdout] 219 ~ right = self.number(right, value + [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op.clone()) + [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:219:64 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- inside of this loop [INFO] [stdout] 218 | right = self.number(right, precedence(op) + [INFO] [stdout] | -- value moved here [INFO] [stdout] 219 | if precedence(self.current()) > precedence(op) { 1 } else { 0 }); [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > precedence(op) { [INFO] [stdout] 219 ~ right = self.number(right, value + [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 218 | right = self.number(right, precedence(op.clone()) + [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 222 | left = Box::new(AstNode::BinaryNode(left, op, right)); [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > value { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 217 | while precedence(start) > precedence(op.clone()) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `op` [INFO] [stdout] --> src/main.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 213 | let op = start; [INFO] [stdout] | -- move occurs because `op` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 217 | while precedence(start) > precedence(op) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | value moved here [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 222 | left = Box::new(AstNode::BinaryNode(left, op, right)); [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `precedence` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | fn precedence(token: Token) -> i64 { [INFO] [stdout] | ---------- ^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 217 ~ let mut value = precedence(op); [INFO] [stdout] 218 ~ while precedence(start) > value { [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 217 | while precedence(start) > precedence(op.clone()) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0499. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0499. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `RustCompiler` (bin "RustCompiler" test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `RustCompiler` (bin "RustCompiler") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "74df72db3b69e2f2ef20c87127f22b9d45015569d055a40ba2ee3300f7af7d47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74df72db3b69e2f2ef20c87127f22b9d45015569d055a40ba2ee3300f7af7d47", kill_on_drop: false }` [INFO] [stdout] 74df72db3b69e2f2ef20c87127f22b9d45015569d055a40ba2ee3300f7af7d47