[INFO] updating cached repository https://github.com/cauebs/secret-hitler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 871a9eaac2449b1c29c298d16160607155846d7e [INFO] checking cauebs/secret-hitler/871a9eaac2449b1c29c298d16160607155846d7e against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcauebs%2Fsecret-hitler" "/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/cauebs/secret-hitler 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/cauebs/secret-hitler [INFO] finished tweaking git repo https://github.com/cauebs/secret-hitler [INFO] tweaked toml for git repo https://github.com/cauebs/secret-hitler written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cauebs/secret-hitler 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] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6aa16890b47d1a125da5e52c6202dfee65f0a862fa54399d89b50cfecd17873b [INFO] running `Command { std: "docker" "start" "-a" "6aa16890b47d1a125da5e52c6202dfee65f0a862fa54399d89b50cfecd17873b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6aa16890b47d1a125da5e52c6202dfee65f0a862fa54399d89b50cfecd17873b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aa16890b47d1a125da5e52c6202dfee65f0a862fa54399d89b50cfecd17873b", kill_on_drop: false }` [INFO] [stdout] 6aa16890b47d1a125da5e52c6202dfee65f0a862fa54399d89b50cfecd17873b [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=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] b3c5119f63063ec798f8ec3d2221e1975ebad5228133be0640de51f04411b0a0 [INFO] running `Command { std: "docker" "start" "-a" "b3c5119f63063ec798f8ec3d2221e1975ebad5228133be0640de51f04411b0a0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking secret-hitler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | 0...4 => Err(Error::TooFewPlayers), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 5...10 => Ok(Self { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | (2, 7...8) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | (3, 5...6) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | (3, 7...8) => (Some(CallSpecialElection), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | (3, 9...10) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | 0...4 => Err(Error::TooFewPlayers), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 5...10 => Ok(Self { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | (2, 7...8) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | (3, 5...6) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | (3, 7...8) => (Some(CallSpecialElection), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | (3, 9...10) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/game.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for (mut player, role) in self.players.iter_mut().zip(roles) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: method `is_liberal` is private [INFO] [stdout] --> src/core/policy_deck.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(all_cards.filter(Policy::is_liberal).count(), 11); [INFO] [stdout] | ^^^^^^^^^^ private method [INFO] [stdout] | [INFO] [stdout] ::: src/core/policy.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn is_liberal(&self) -> bool { [INFO] [stdout] | ---------------------------- private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `policy_deck`, `policy_tracker`, `government_tracker`, and `election_tracker` are never read [INFO] [stdout] --> src/core/game.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 15 | pub players: Vec, [INFO] [stdout] 16 | policy_deck: PolicyDeck, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | policy_tracker: PolicyTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | government_tracker: GovernmentTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | election_tracker: ElectionTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/core/government.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GovernmentTracker { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 9 | history: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_count` and `consecutive_fails` are never read [INFO] [stdout] --> src/core/government.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ElectionTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | player_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | current_poll: HashMap, [INFO] [stdout] 34 | consecutive_fails: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_liberal` and `is_fascist` are never used [INFO] [stdout] --> src/core/policy.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Policy { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 8 | fn is_liberal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn is_fascist(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/game.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for (mut player, role) in self.players.iter_mut().zip(roles) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0624`. [INFO] [stdout] [INFO] [stderr] error: could not compile `secret-hitler` (lib test) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | 0...4 => Err(Error::TooFewPlayers), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 5...10 => Ok(Self { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | (2, 7...8) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | (3, 5...6) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | (3, 7...8) => (Some(CallSpecialElection), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | (3, 9...10) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | 0...4 => Err(Error::TooFewPlayers), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/game.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | 5...10 => Ok(Self { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | (1...2, 9...10) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | (2, 7...8) => (Some(InvestigateLoyalty), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:38:26 [INFO] [stdout] | [INFO] [stdout] 38 | (3, 5...6) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | (3, 7...8) => (Some(CallSpecialElection), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/core/policy_tracker.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | (3, 9...10) => (Some(PolicyPeek), None), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/game.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for (mut player, role) in self.players.iter_mut().zip(roles) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: method `is_liberal` is private [INFO] [stdout] --> src/core/policy_deck.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(all_cards.filter(Policy::is_liberal).count(), 11); [INFO] [stdout] | ^^^^^^^^^^ private method [INFO] [stdout] | [INFO] [stdout] ::: src/core/policy.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn is_liberal(&self) -> bool { [INFO] [stdout] | ---------------------------- private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut players = (0..10).map(|i| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `policy_deck`, `policy_tracker`, `government_tracker`, and `election_tracker` are never read [INFO] [stdout] --> src/core/game.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 15 | pub players: Vec, [INFO] [stdout] 16 | policy_deck: PolicyDeck, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | policy_tracker: PolicyTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | government_tracker: GovernmentTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | election_tracker: ElectionTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/core/government.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GovernmentTracker { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 9 | history: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_count` and `consecutive_fails` are never read [INFO] [stdout] --> src/core/government.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ElectionTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | player_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | current_poll: HashMap, [INFO] [stdout] 34 | consecutive_fails: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_liberal` and `is_fascist` are never used [INFO] [stdout] --> src/core/policy.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Policy { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 8 | fn is_liberal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn is_fascist(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/game.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for (mut player, role) in self.players.iter_mut().zip(roles) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut players = (0..10).map(|i| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0624`. [INFO] [stdout] [INFO] [stderr] error: could not compile `secret-hitler` (bin "secret-hitler" test) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b3c5119f63063ec798f8ec3d2221e1975ebad5228133be0640de51f04411b0a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3c5119f63063ec798f8ec3d2221e1975ebad5228133be0640de51f04411b0a0", kill_on_drop: false }` [INFO] [stdout] b3c5119f63063ec798f8ec3d2221e1975ebad5228133be0640de51f04411b0a0