[INFO] cloning repository https://github.com/kenta7777/mini-c-compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kenta7777/mini-c-compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenta7777%2Fmini-c-compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenta7777%2Fmini-c-compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 712272bd6bf02f5b86cd652aea244bbb9fb90fc0 [INFO] checking kenta7777/mini-c-compiler against try#a75eafceea413a1b40c0e0769db85e08ec17160b for pr-133925 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenta7777%2Fmini-c-compiler" "/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/kenta7777/mini-c-compiler on toolchain a75eafceea413a1b40c0e0769db85e08ec17160b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kenta7777/mini-c-compiler [INFO] finished tweaking git repo https://github.com/kenta7777/mini-c-compiler [INFO] tweaked toml for git repo https://github.com/kenta7777/mini-c-compiler written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kenta7777/mini-c-compiler 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" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "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-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85fb640abac4a574ec5c16a65805abe35c2205e1e5a86776d416d8d8fe6b4532 [INFO] running `Command { std: "docker" "start" "-a" "85fb640abac4a574ec5c16a65805abe35c2205e1e5a86776d416d8d8fe6b4532", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85fb640abac4a574ec5c16a65805abe35c2205e1e5a86776d416d8d8fe6b4532", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85fb640abac4a574ec5c16a65805abe35c2205e1e5a86776d416d8d8fe6b4532", kill_on_drop: false }` [INFO] [stdout] 85fb640abac4a574ec5c16a65805abe35c2205e1e5a86776d416d8d8fe6b4532 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a75eafceea413a1b40c0e0769db85e08ec17160b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 517eda377e3c6d210535165c4fb08e1c57b21e2b6aabcff0b210e37e780d0387 [INFO] running `Command { std: "docker" "start" "-a" "517eda377e3c6d210535165c4fb08e1c57b21e2b6aabcff0b210e37e780d0387", kill_on_drop: false }` [INFO] [stderr] Checking mini-c-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/parser.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/parser.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/parser.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/parser.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `node` [INFO] [stdout] --> src/parser.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 46 | let node = mul(); [INFO] [stdout] | ---- move occurs because `node` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 49 | while let Some(&token) = tokens.peek() { [INFO] [stdout] | -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ^^^^ value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ---- value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `new_node` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/parser.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_node(kind: NodeKind, lhs: Box, rhs: Box) -> Box { [INFO] [stdout] | -------- in this function ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: consider changing this parameter type in function `new_node` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/parser.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_node(kind: NodeKind, lhs: Box, rhs: Box) -> Box { [INFO] [stdout] | -------- in this function ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 49 ~ let mut value = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] 50 ~ while let Some(&token) = tokens.peek() { [INFO] [stdout] 51 | match *token { [INFO] [stdout] ... [INFO] [stdout] 55 | TokenKind::Minus => { [INFO] [stdout] 56 ~ let node = value; [INFO] [stdout] | [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 49 ~ let mut value = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] 50 ~ while let Some(&token) = tokens.peek() { [INFO] [stdout] 51 | match *token { [INFO] [stdout] 52 | TokenKind::Plus => { [INFO] [stdout] 53 ~ let node = value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `node` [INFO] [stdout] --> src/parser.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 46 | let node = mul(); [INFO] [stdout] | ---- move occurs because `node` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 49 | while let Some(&token) = tokens.peek() { [INFO] [stdout] | -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | inside of this loop [INFO] [stdout] | inside of this loop [INFO] [stdout] ... [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ^^^^ value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ---- value moved here, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `new_node` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/parser.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_node(kind: NodeKind, lhs: Box, rhs: Box) -> Box { [INFO] [stdout] | -------- in this function ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: consider changing this parameter type in function `new_node` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/parser.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_node(kind: NodeKind, lhs: Box, rhs: Box) -> Box { [INFO] [stdout] | -------- in this function ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 49 ~ let mut value = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] 50 ~ while let Some(&token) = tokens.peek() { [INFO] [stdout] 51 | match *token { [INFO] [stdout] ... [INFO] [stdout] 55 | TokenKind::Minus => { [INFO] [stdout] 56 ~ let node = value; [INFO] [stdout] | [INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 49 ~ let mut value = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] 50 ~ while let Some(&token) = tokens.peek() { [INFO] [stdout] 51 | match *token { [INFO] [stdout] 52 | TokenKind::Plus => { [INFO] [stdout] 53 ~ let node = value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-c-compiler` (bin "mini-c-compiler") due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mini-c-compiler` (bin "mini-c-compiler" test) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "517eda377e3c6d210535165c4fb08e1c57b21e2b6aabcff0b210e37e780d0387", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "517eda377e3c6d210535165c4fb08e1c57b21e2b6aabcff0b210e37e780d0387", kill_on_drop: false }` [INFO] [stdout] 517eda377e3c6d210535165c4fb08e1c57b21e2b6aabcff0b210e37e780d0387