[INFO] cloning repository https://github.com/orkunkilic/rust-voting-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/orkunkilic/rust-voting-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Forkunkilic%2Frust-voting-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Forkunkilic%2Frust-voting-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66df5f06b5eaa0b6b2d0aef518478622f74e2ebd [INFO] checking orkunkilic/rust-voting-app against master#4e1f5d90bca45207605a88e39b1f76abcdb85d2f for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Forkunkilic%2Frust-voting-app" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/orkunkilic/rust-voting-app on toolchain 4e1f5d90bca45207605a88e39b1f76abcdb85d2f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/orkunkilic/rust-voting-app [INFO] finished tweaking git repo https://github.com/orkunkilic/rust-voting-app [INFO] tweaked toml for git repo https://github.com/orkunkilic/rust-voting-app written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/orkunkilic/rust-voting-app 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" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking orkunkilic/rust-voting-app against try#035f40fb95ac1c79b50f07e65650460f3d11e207 for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Forkunkilic%2Frust-voting-app" "/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/orkunkilic/rust-voting-app on toolchain 035f40fb95ac1c79b50f07e65650460f3d11e207 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/orkunkilic/rust-voting-app [INFO] finished tweaking git repo https://github.com/orkunkilic/rust-voting-app [INFO] tweaked toml for git repo https://github.com/orkunkilic/rust-voting-app written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/orkunkilic/rust-voting-app 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" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "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-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9b16a120d66c28f61eb93763776d84ae18d0aab2c1e7539ac5d8e1640e64cf2 [INFO] running `Command { std: "docker" "start" "-a" "c9b16a120d66c28f61eb93763776d84ae18d0aab2c1e7539ac5d8e1640e64cf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9b16a120d66c28f61eb93763776d84ae18d0aab2c1e7539ac5d8e1640e64cf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9b16a120d66c28f61eb93763776d84ae18d0aab2c1e7539ac5d8e1640e64cf2", kill_on_drop: false }` [INFO] [stdout] c9b16a120d66c28f61eb93763776d84ae18d0aab2c1e7539ac5d8e1640e64cf2 [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4447bef031ae9fc0f784ea786248cc71980225ae4ca56cb66d10cec883a8173 [INFO] running `Command { std: "docker" "start" "-a" "e4447bef031ae9fc0f784ea786248cc71980225ae4ca56cb66d10cec883a8173", kill_on_drop: false }` [INFO] [stderr] Checking voting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (input == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (input == 0) { [INFO] [stdout] 21 + if input == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | } else if (input == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - } else if (input == 1) { [INFO] [stdout] 23 + } else if input == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | } else if (input == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - } else if (input == 2) { [INFO] [stdout] 36 + } else if input == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | } else if (input == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - } else if (input == 3) { [INFO] [stdout] 60 + } else if input == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (input == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (input == 0) { [INFO] [stdout] 21 + if input == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | } else if (input == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - } else if (input == 1) { [INFO] [stdout] 23 + } else if input == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | } else if (input == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - } else if (input == 2) { [INFO] [stdout] 36 + } else if input == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | } else if (input == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - } else if (input == 3) { [INFO] [stdout] 60 + } else if input == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/main.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | let result = give_vote(auctions[1], vote_array[1].trim().parse().unwrap(), vote_array[2].trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because value has type `structs::Auction`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `structs::Auction` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/voting.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Auction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | let enum_vote = match vote.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 95 ~ "DOWN" => VoteType::DOWNVOTE, [INFO] [stdout] 96 ~ &_ => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/main.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | let result = give_vote(auctions[1], vote_array[1].trim().parse().unwrap(), vote_array[2].trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because value has type `structs::Auction`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `structs::Auction` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/voting.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Auction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/main.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | let enum_vote = match vote.as_str() { [INFO] [stdout] | ^^^^^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] = note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 95 ~ "DOWN" => VoteType::DOWNVOTE, [INFO] [stdout] 96 ~ &_ => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `voting` (bin "voting") due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `voting` (bin "voting" test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e4447bef031ae9fc0f784ea786248cc71980225ae4ca56cb66d10cec883a8173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4447bef031ae9fc0f784ea786248cc71980225ae4ca56cb66d10cec883a8173", kill_on_drop: false }` [INFO] [stdout] e4447bef031ae9fc0f784ea786248cc71980225ae4ca56cb66d10cec883a8173