[INFO] cloning repository https://github.com/TygerBurning/aoc22 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TygerBurning/aoc22" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTygerBurning%2Faoc22", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTygerBurning%2Faoc22'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71778bd920ef52cb32020b76dc03d0b8ee291117 [INFO] checking TygerBurning/aoc22 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTygerBurning%2Faoc22" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TygerBurning/aoc22 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TygerBurning/aoc22 [INFO] finished tweaking git repo https://github.com/TygerBurning/aoc22 [INFO] tweaked toml for git repo https://github.com/TygerBurning/aoc22 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TygerBurning/aoc22 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.33 [INFO] [stderr] Downloaded structopt v0.3.25 [INFO] [stderr] Downloaded syn v1.0.82 [INFO] [stderr] Downloaded libc v0.2.110 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be589cb6030136f33a0e82f09a630f2922c0e199f9eb3ce9b0bbefd65f1d758c [INFO] running `Command { std: "docker" "start" "-a" "be589cb6030136f33a0e82f09a630f2922c0e199f9eb3ce9b0bbefd65f1d758c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be589cb6030136f33a0e82f09a630f2922c0e199f9eb3ce9b0bbefd65f1d758c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be589cb6030136f33a0e82f09a630f2922c0e199f9eb3ce9b0bbefd65f1d758c", kill_on_drop: false }` [INFO] [stdout] be589cb6030136f33a0e82f09a630f2922c0e199f9eb3ce9b0bbefd65f1d758c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7dc1137cdc835ed473ad25b611ae217e4498033683d433106a82bfdc0967fdbb [INFO] running `Command { std: "docker" "start" "-a" "7dc1137cdc835ed473ad25b611ae217e4498033683d433106a82bfdc0967fdbb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.110 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking aoc22 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: use of moved value: `opponent` [INFO] [stdout] --> src/day02.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 22 | fn contest(opponent: Choice, me: Choice) -> GameResult { [INFO] [stdout] | -------- move occurs because `opponent` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -------- value moved here [INFO] [stdout] 24 | GameResult::Draw [INFO] [stdout] 25 | } else if opponent as usize == me as usize % 3 + 1 { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `me` [INFO] [stdout] --> src/day02.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 22 | fn contest(opponent: Choice, me: Choice) -> GameResult { [INFO] [stdout] | -- move occurs because `me` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -- value moved here [INFO] [stdout] 24 | GameResult::Draw [INFO] [stdout] 25 | } else if opponent as usize == me as usize % 3 + 1 { [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `me` [INFO] [stdout] --> src/day02.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 78 | let me = Choice::from_str(&cap[2]).unwrap(); [INFO] [stdout] | -- move occurs because `me` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 79 | me as u32 + contest(opponent, me) as u32 [INFO] [stdout] | -- value moved here ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 79 | me as u32 + contest(opponent, me) as u32 [INFO] [stdout] | -- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `result` [INFO] [stdout] --> src/day02.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 86 | let result = GameResult::from_str(&cap[2]).unwrap(); [INFO] [stdout] | ------ move occurs because `result` has type `GameResult`, which does not implement the `Copy` trait [INFO] [stdout] 87 | result as u32 + i_should_pick(opponent, result) as u32 [INFO] [stdout] | ------ value moved here ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `GameResult` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum GameResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 87 | result as u32 + i_should_pick(opponent, result) as u32 [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `opponent` [INFO] [stdout] --> src/day02.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 22 | fn contest(opponent: Choice, me: Choice) -> GameResult { [INFO] [stdout] | -------- move occurs because `opponent` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -------- value moved here [INFO] [stdout] 24 | GameResult::Draw [INFO] [stdout] 25 | } else if opponent as usize == me as usize % 3 + 1 { [INFO] [stdout] | ^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `me` [INFO] [stdout] --> src/day02.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 22 | fn contest(opponent: Choice, me: Choice) -> GameResult { [INFO] [stdout] | -- move occurs because `me` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -- value moved here [INFO] [stdout] 24 | GameResult::Draw [INFO] [stdout] 25 | } else if opponent as usize == me as usize % 3 + 1 { [INFO] [stdout] | ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 23 | if opponent as usize == me as usize { [INFO] [stdout] | -- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `me` [INFO] [stdout] --> src/day02.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 78 | let me = Choice::from_str(&cap[2]).unwrap(); [INFO] [stdout] | -- move occurs because `me` has type `Choice`, which does not implement the `Copy` trait [INFO] [stdout] 79 | me as u32 + contest(opponent, me) as u32 [INFO] [stdout] | -- value moved here ^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `Choice` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum Choice { [INFO] [stdout] | ^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 79 | me as u32 + contest(opponent, me) as u32 [INFO] [stdout] | -- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `result` [INFO] [stdout] --> src/day02.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 86 | let result = GameResult::from_str(&cap[2]).unwrap(); [INFO] [stdout] | ------ move occurs because `result` has type `GameResult`, which does not implement the `Copy` trait [INFO] [stdout] 87 | result as u32 + i_should_pick(opponent, result) as u32 [INFO] [stdout] | ------ value moved here ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `GameResult` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/day02.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum GameResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 87 | result as u32 + i_should_pick(opponent, result) as u32 [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc22` (bin "aoc22") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc22` (bin "aoc22" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "7dc1137cdc835ed473ad25b611ae217e4498033683d433106a82bfdc0967fdbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dc1137cdc835ed473ad25b611ae217e4498033683d433106a82bfdc0967fdbb", kill_on_drop: false }` [INFO] [stdout] 7dc1137cdc835ed473ad25b611ae217e4498033683d433106a82bfdc0967fdbb