[INFO] cloning repository https://github.com/JosephTLyons/solitaire [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JosephTLyons/solitaire" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephTLyons%2Fsolitaire", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephTLyons%2Fsolitaire'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76f43ba775f944ebee2b9b422bcfad74aca0ff27 [INFO] checking JosephTLyons/solitaire/76f43ba775f944ebee2b9b422bcfad74aca0ff27 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephTLyons%2Fsolitaire" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JosephTLyons/solitaire 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/JosephTLyons/solitaire [INFO] finished tweaking git repo https://github.com/JosephTLyons/solitaire [INFO] tweaked toml for git repo https://github.com/JosephTLyons/solitaire written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JosephTLyons/solitaire 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_pcg v0.1.2 [INFO] [stderr] Downloaded rand_os v0.1.3 [INFO] [stderr] Downloaded rand_chacha v0.1.1 [INFO] [stderr] Downloaded rand_hc v0.1.0 [INFO] [stderr] Downloaded rand_isaac v0.1.1 [INFO] [stderr] Downloaded rand_jitter v0.1.4 [INFO] [stderr] Downloaded rand v0.6.5 [INFO] [stderr] Downloaded bitflags v1.1.0 [INFO] [stderr] Downloaded rand_core v0.4.0 [INFO] [stderr] Downloaded rand_xorshift v0.1.1 [INFO] [stderr] Downloaded libc v0.2.58 [INFO] [stderr] Downloaded winapi v0.3.7 [INFO] [stderr] Downloaded autocfg v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1eeda319ecdc5ed8b37de949e0e23cb52b25911b4946f0f3470c14c8a977fcb6 [INFO] running `Command { std: "docker" "start" "-a" "1eeda319ecdc5ed8b37de949e0e23cb52b25911b4946f0f3470c14c8a977fcb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1eeda319ecdc5ed8b37de949e0e23cb52b25911b4946f0f3470c14c8a977fcb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1eeda319ecdc5ed8b37de949e0e23cb52b25911b4946f0f3470c14c8a977fcb6", kill_on_drop: false }` [INFO] [stdout] 1eeda319ecdc5ed8b37de949e0e23cb52b25911b4946f0f3470c14c8a977fcb6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] e4535c9afee4f6fba283aa938fcbbcd2015fee4bc167869de8cd8a4d6e0d7bcf [INFO] running `Command { std: "docker" "start" "-a" "e4535c9afee4f6fba283aa938fcbbcd2015fee4bc167869de8cd8a4d6e0d7bcf", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking solitaire v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0170]: pattern binding `Deposit` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Deposit` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Deposit` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Deposit` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Flip` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Flip` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Deck` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Deck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Deck` is named the same as one of the variants of the type `game::pile::PileType` [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `game::pile::PileType::Deck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Deposit` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Deposit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Deposit` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Deposit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Flip` [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Deck` [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Deck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Flip` [INFO] [stdout] --> src/game.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | Flip => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Flip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Deck` [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_Deck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/game.rs:199:20 [INFO] [stdout] | [INFO] [stdout] 187 | if let Some(x) = self.get_pile_reference() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 199 | if self.move_to_deposit_pile_ok(&move_card, to.index(0)) { [INFO] [stdout] | ^^^^ immutable borrow occurs here -- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/game.rs:199:20 [INFO] [stdout] | [INFO] [stdout] 187 | if let Some(x) = self.get_pile_reference() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 199 | if self.move_to_deposit_pile_ok(&move_card, to.index(0)) { [INFO] [stdout] | ^^^^ immutable borrow occurs here -- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/game.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 187 | if let Some(x) = self.get_pile_reference() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 204 | if self.move_to_flip_pile_ok(&move_card, to.index(0)) { [INFO] [stdout] | ^^^^ immutable borrow occurs here -- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/game.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 187 | if let Some(x) = self.get_pile_reference() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 204 | if self.move_to_flip_pile_ok(&move_card, to.index(0)) { [INFO] [stdout] | ^^^^ immutable borrow occurs here -- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solitaire` (bin "solitaire") due to 6 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `solitaire` (bin "solitaire" test) due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e4535c9afee4f6fba283aa938fcbbcd2015fee4bc167869de8cd8a4d6e0d7bcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4535c9afee4f6fba283aa938fcbbcd2015fee4bc167869de8cd8a4d6e0d7bcf", kill_on_drop: false }` [INFO] [stdout] e4535c9afee4f6fba283aa938fcbbcd2015fee4bc167869de8cd8a4d6e0d7bcf