[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#fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 for pr-145108-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenta7777%2Fmini-c-compiler" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kenta7777/mini-c-compiler on toolchain fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43ffee1cc206d90bcf308a9134da7e48deb8deffedd8711d93f4a07d7cdea4ce [INFO] running `Command { std: "docker" "start" "-a" "43ffee1cc206d90bcf308a9134da7e48deb8deffedd8711d93f4a07d7cdea4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43ffee1cc206d90bcf308a9134da7e48deb8deffedd8711d93f4a07d7cdea4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43ffee1cc206d90bcf308a9134da7e48deb8deffedd8711d93f4a07d7cdea4ce", kill_on_drop: false }` [INFO] [stdout] 43ffee1cc206d90bcf308a9134da7e48deb8deffedd8711d93f4a07d7cdea4ce [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 280eec9dedff87d534168e819159c4aab1aab600149a270910c4fbf74da6287d [INFO] running `Command { std: "docker" "start" "-a" "280eec9dedff87d534168e819159c4aab1aab600149a270910c4fbf74da6287d", kill_on_drop: false }` [INFO] [stderr] Checking mini-c-compiler v0.1.0 (/opt/rustwide/workdir) [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: if `Node` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Node { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ---- you could clone this 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] note: if `Node` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Node { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ---- you could clone this 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] 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)]` (part of `#[warn(unused)]`) 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] For more information about this error, try `rustc --explain E0382`. [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: if `Node` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Node { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 55 | let node = new_node(NodeKind::Sub, node, mul()); [INFO] [stdout] | ---- you could clone this 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] note: if `Node` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Node { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 52 | let node = new_node(NodeKind::Add, node, mul()); [INFO] [stdout] | ---- you could clone this 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] 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)]` (part of `#[warn(unused)]`) 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] 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" "280eec9dedff87d534168e819159c4aab1aab600149a270910c4fbf74da6287d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "280eec9dedff87d534168e819159c4aab1aab600149a270910c4fbf74da6287d", kill_on_drop: false }` [INFO] [stdout] 280eec9dedff87d534168e819159c4aab1aab600149a270910c4fbf74da6287d