[INFO] cloning repository https://github.com/herzrasen/herzrasen-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/herzrasen/herzrasen-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherzrasen%2Fherzrasen-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherzrasen%2Fherzrasen-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 57cbcbad536945b359445b56546d92875eb7f874 [INFO] checking herzrasen/herzrasen-rs against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fherzrasen%2Fherzrasen-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/herzrasen/herzrasen-rs on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/herzrasen/herzrasen-rs [INFO] finished tweaking git repo https://github.com/herzrasen/herzrasen-rs [INFO] tweaked toml for git repo https://github.com/herzrasen/herzrasen-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/herzrasen/herzrasen-rs 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded struct_iterable v0.1.1 [INFO] [stderr] Downloaded struct_iterable_internal v0.1.1 [INFO] [stderr] Downloaded struct_iterable_derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c34d2a32e86621e49510db95a9b2458fea83eb1bc41f92d44272167711aef801 [INFO] running `Command { std: "docker" "start" "-a" "c34d2a32e86621e49510db95a9b2458fea83eb1bc41f92d44272167711aef801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c34d2a32e86621e49510db95a9b2458fea83eb1bc41f92d44272167711aef801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c34d2a32e86621e49510db95a9b2458fea83eb1bc41f92d44272167711aef801", kill_on_drop: false }` [INFO] [stdout] c34d2a32e86621e49510db95a9b2458fea83eb1bc41f92d44272167711aef801 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1374642a6541fc5d691915b1a7e886ed38ac29ea531a4af71cf018285a20bfb0 [INFO] running `Command { std: "docker" "start" "-a" "1374642a6541fc5d691915b1a7e886ed38ac29ea531a4af71cf018285a20bfb0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling struct_iterable_internal v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking nanoid v0.4.0 [INFO] [stderr] Compiling erased-serde v0.3.31 [INFO] [stderr] Compiling struct_iterable_derive v0.1.0 [INFO] [stderr] Checking struct_iterable v0.1.1 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: the item `Random` is imported redundantly [INFO] [stdout] --> common/src/active_player.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::Random; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 70 | [INFO] [stdout] 71 | use super::*; [INFO] [stdout] | -------- the item `Random` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Random` is imported redundantly [INFO] [stdout] --> common/src/active_team.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use crate::Random; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 72 | [INFO] [stdout] 73 | use super::*; [INFO] [stdout] | -------- the item `Random` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> common/src/active_team.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ActiveTeam { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | fn new(lineup: Vec) -> ActiveTeam { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `location`, `desired_location`, `controlled_by`, `action`, `pace`, and `coin_toss_winner` are never read [INFO] [stdout] --> common/src/ball.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Ball { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | location: Location, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | desired_location: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | controlled_by: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | action: BallAction, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pace: BallPace, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | coin_toss_winner: TeamType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ball` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Team` is never constructed [INFO] [stdout] --> common/src/team.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Team { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_player` are never used [INFO] [stdout] --> common/src/team.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Team { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | fn new(name: String) -> Team { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn with_player(self, new_player: Player) -> Team { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GRAM` is never constructed [INFO] [stdout] --> common/src/weight.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Unit { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 17 | KILOGRAM, [INFO] [stdout] 18 | GRAM, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `convert_to` is never used [INFO] [stdout] --> common/src/weight.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Weight { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 33 | fn convert_to(&self, unit: Unit) -> Weight { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking engine v0.1.0 (/opt/rustwide/workdir/engine) [INFO] [stdout] warning: field `desired_location` is never read [INFO] [stdout] --> common/src/ball.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Ball { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 24 | location: Location, [INFO] [stdout] 25 | desired_location: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ball` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> common/src/team.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Team { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | id: String, [INFO] [stdout] 5 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team` [INFO] [stdout] --> engine/src/match.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | ThrowIn(team) => Match { ..self }, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_team` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> engine/src/match.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | let home_team = ActiveTeam::random(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-- an argument of type `TeamType` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/common/src/active_team.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random(team_type: TeamType) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 89 | let home_team = ActiveTeam::random(/* TeamType */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> engine/src/match.rs:90:25 [INFO] [stdout] | [INFO] [stdout] 90 | let away_team = ActiveTeam::random(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-- an argument of type `TeamType` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/common/src/active_team.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random(team_type: TeamType) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 90 | let away_team = ActiveTeam::random(/* TeamType */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> engine/src/match.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | let home_team = ActiveTeam::random(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-- an argument of type `TeamType` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/common/src/active_team.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random(team_type: TeamType) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 97 | let home_team = ActiveTeam::random(/* TeamType */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> engine/src/match.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 98 | let away_team = ActiveTeam::random(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-- an argument of type `TeamType` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/common/src/active_team.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn random(team_type: TeamType) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 98 | let away_team = ActiveTeam::random(/* TeamType */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common::Random` [INFO] [stdout] --> engine/src/match.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | use common::Random; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Match` is never constructed [INFO] [stdout] --> engine/src/match.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Match { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `tick`, `next`, `eval_next_action`, `kickoff`, and `select` are never used [INFO] [stdout] --> engine/src/match.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Match { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 25 | fn new(home_team: ActiveTeam, away_team: ActiveTeam) -> Match { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn tick(self) -> Match { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn next(self) -> Match { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn eval_next_action(self) -> Match { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn kickoff(self, team_type: TeamType) -> Match { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn select(&self, team_type: TeamType) -> &ActiveTeam { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Kickoff` and `ThrowIn` are never constructed [INFO] [stdout] --> engine/src/action.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 5 | Kickoff(TeamType), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | ThrowIn(TeamType), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `KickoffExecuted` is never constructed [INFO] [stdout] --> engine/src/event.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Event { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 5 | KickoffExecuted(ActivePlayer), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `teamType` should have a snake case name [INFO] [stdout] --> engine/src/match.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | Kickoff(teamType) => self.kickoff(teamType), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `team_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team` [INFO] [stdout] --> engine/src/match.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | ThrowIn(team) => Match { ..self }, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_team` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `engine` (bin "engine" test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1374642a6541fc5d691915b1a7e886ed38ac29ea531a4af71cf018285a20bfb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1374642a6541fc5d691915b1a7e886ed38ac29ea531a4af71cf018285a20bfb0", kill_on_drop: false }` [INFO] [stdout] 1374642a6541fc5d691915b1a7e886ed38ac29ea531a4af71cf018285a20bfb0