[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 against try#db4e1d23234d93b5e96ecc768b35d9090c32cddf for pr-149901 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephTLyons%2Fsolitaire" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [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-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JosephTLyons/solitaire on toolchain db4e1d23234d93b5e96ecc768b35d9090c32cddf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49f54c131aab856a7c109436a82fa6aeb3f30265c682c362f01a7b51847c1da8 [INFO] running `Command { std: "docker" "start" "-a" "49f54c131aab856a7c109436a82fa6aeb3f30265c682c362f01a7b51847c1da8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49f54c131aab856a7c109436a82fa6aeb3f30265c682c362f01a7b51847c1da8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49f54c131aab856a7c109436a82fa6aeb3f30265c682c362f01a7b51847c1da8", kill_on_drop: false }` [INFO] [stdout] 49f54c131aab856a7c109436a82fa6aeb3f30265c682c362f01a7b51847c1da8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b47dece32a31a42bbd82ee3bcf8ca3a4cb3ffc15cd5a18e0476ea2e816f5e526 [INFO] running `Command { std: "docker" "start" "-a" "b47dece32a31a42bbd82ee3bcf8ca3a4cb3ffc15cd5a18e0476ea2e816f5e526", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [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 `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 `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] 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)]` (part of `#[warn(unused)]`) 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: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)]` (part of `#[warn(unused)]`) 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] 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] warning: unused variable: `Deposit` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Deposit` [INFO] [stdout] | [INFO] [stdout] 198 | game::pile::PileType::Deposit => { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 198 | _Deposit => { [INFO] [stdout] | + [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Flip` [INFO] [stdout] | [INFO] [stdout] 203 | game::pile::PileType::Flip => { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 203 | _Flip => { [INFO] [stdout] | + [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] warning: unused variable: `Deck` [INFO] [stdout] --> src/game.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Deck => {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Deck` [INFO] [stdout] | [INFO] [stdout] 208 | game::pile::PileType::Deck => {}, [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 208 | _Deck => {}, [INFO] [stdout] | + [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] warning: unused variable: `Deposit` [INFO] [stdout] --> src/game.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Deposit => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Deposit` [INFO] [stdout] | [INFO] [stdout] 198 | game::pile::PileType::Deposit => { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 198 | _Deposit => { [INFO] [stdout] | + [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Flip` [INFO] [stdout] | [INFO] [stdout] 203 | game::pile::PileType::Flip => { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 203 | _Flip => { [INFO] [stdout] | + [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Deck` [INFO] [stdout] | [INFO] [stdout] 208 | game::pile::PileType::Deck => {}, [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 208 | _Deck => {}, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0502. [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] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `solitaire` (bin "solitaire" test) due to 5 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") due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b47dece32a31a42bbd82ee3bcf8ca3a4cb3ffc15cd5a18e0476ea2e816f5e526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b47dece32a31a42bbd82ee3bcf8ca3a4cb3ffc15cd5a18e0476ea2e816f5e526", kill_on_drop: false }` [INFO] [stdout] b47dece32a31a42bbd82ee3bcf8ca3a4cb3ffc15cd5a18e0476ea2e816f5e526