[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] testing orkunkilic/rust-voting-app against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Forkunkilic%2Frust-voting-app" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/orkunkilic/rust-voting-app on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-11/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 359f4782f25a75722f1016c15dc0e60acdd699ad1e87eb2cef05195b3a0b66d3 [INFO] running `Command { std: "docker" "start" "-a" "359f4782f25a75722f1016c15dc0e60acdd699ad1e87eb2cef05195b3a0b66d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "359f4782f25a75722f1016c15dc0e60acdd699ad1e87eb2cef05195b3a0b66d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "359f4782f25a75722f1016c15dc0e60acdd699ad1e87eb2cef05195b3a0b66d3", kill_on_drop: false }` [INFO] [stdout] 359f4782f25a75722f1016c15dc0e60acdd699ad1e87eb2cef05195b3a0b66d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff355b0ed9d82ba7d2d77c9898c2c96feebacb65580bd05a08fa8312704625aa [INFO] running `Command { std: "docker" "start" "-a" "ff355b0ed9d82ba7d2d77c9898c2c96feebacb65580bd05a08fa8312704625aa", kill_on_drop: false }` [INFO] [stderr] Compiling 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] 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] 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] [INFO] [stdout] error[E0596]: cannot borrow `auction` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 92 | fn give_vote(auction: Auction, voter_id: u32, vote: String) -> bool { [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut auction` [INFO] [stdout] ... [INFO] [stdout] 99 | return auction.vote(vote); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `voting` due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ff355b0ed9d82ba7d2d77c9898c2c96feebacb65580bd05a08fa8312704625aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff355b0ed9d82ba7d2d77c9898c2c96feebacb65580bd05a08fa8312704625aa", kill_on_drop: false }` [INFO] [stdout] ff355b0ed9d82ba7d2d77c9898c2c96feebacb65580bd05a08fa8312704625aa