[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/71778bd920ef52cb32020b76dc03d0b8ee291117 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTygerBurning%2Faoc22" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TygerBurning/aoc22 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-4-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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.33 [INFO] [stderr] Downloaded libc v0.2.110 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07aaa603c7fda23cbce52b8e9b6181914f0f5373b1b582931e9d7e2f665c5505 [INFO] running `Command { std: "docker" "start" "-a" "07aaa603c7fda23cbce52b8e9b6181914f0f5373b1b582931e9d7e2f665c5505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07aaa603c7fda23cbce52b8e9b6181914f0f5373b1b582931e9d7e2f665c5505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07aaa603c7fda23cbce52b8e9b6181914f0f5373b1b582931e9d7e2f665c5505", kill_on_drop: false }` [INFO] [stdout] 07aaa603c7fda23cbce52b8e9b6181914f0f5373b1b582931e9d7e2f665c5505 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ae8f7d22f5d3d7abb98612897b0cfc32fc4bebf4991196ede7dc5068909e4ee [INFO] running `Command { std: "docker" "start" "-a" "0ae8f7d22f5d3d7abb98612897b0cfc32fc4bebf4991196ede7dc5068909e4ee", 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 libc v0.2.110 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.10.3 [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: `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: `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" "0ae8f7d22f5d3d7abb98612897b0cfc32fc4bebf4991196ede7dc5068909e4ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ae8f7d22f5d3d7abb98612897b0cfc32fc4bebf4991196ede7dc5068909e4ee", kill_on_drop: false }` [INFO] [stdout] 0ae8f7d22f5d3d7abb98612897b0cfc32fc4bebf4991196ede7dc5068909e4ee