[INFO] cloning repository https://github.com/k-shcherb/yixian_sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/k-shcherb/yixian_sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk-shcherb%2Fyixian_sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk-shcherb%2Fyixian_sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e4e838da3ddaeb68a38f125cadc2e99cc4429b4 [INFO] testing k-shcherb/yixian_sim against 1.76.0 for beta-1.77-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk-shcherb%2Fyixian_sim" "/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/k-shcherb/yixian_sim on toolchain 1.76.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/k-shcherb/yixian_sim [INFO] finished tweaking git repo https://github.com/k-shcherb/yixian_sim [INFO] tweaked toml for git repo https://github.com/k-shcherb/yixian_sim written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/k-shcherb/yixian_sim 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" "+1.76.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing k-shcherb/yixian_sim against beta-2024-02-10 for beta-1.77-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk-shcherb%2Fyixian_sim" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/k-shcherb/yixian_sim on toolchain beta-2024-02-10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/k-shcherb/yixian_sim [INFO] finished tweaking git repo https://github.com/k-shcherb/yixian_sim [INFO] tweaked toml for git repo https://github.com/k-shcherb/yixian_sim written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/k-shcherb/yixian_sim 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" "+beta-2024-02-10" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fd9ad73dbdfb49bb9a9ad726d25effef80d52dad72f2b2380cee01253fc54aa [INFO] running `Command { std: "docker" "start" "-a" "9fd9ad73dbdfb49bb9a9ad726d25effef80d52dad72f2b2380cee01253fc54aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fd9ad73dbdfb49bb9a9ad726d25effef80d52dad72f2b2380cee01253fc54aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fd9ad73dbdfb49bb9a9ad726d25effef80d52dad72f2b2380cee01253fc54aa", kill_on_drop: false }` [INFO] [stdout] 9fd9ad73dbdfb49bb9a9ad726d25effef80d52dad72f2b2380cee01253fc54aa [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2024-02-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 079ac8e16b3d359db416f9a73fb58761e40a2c25565397b737b21cc211405cc1 [INFO] running `Command { std: "docker" "start" "-a" "079ac8e16b3d359db416f9a73fb58761e40a2c25565397b737b21cc211405cc1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.49 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling yixian_sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/bin/damage_calc.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::alloc::handle_alloc_error` [INFO] [stdout] --> src/bin/damage_calc.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::alloc::handle_alloc_error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:125:99 [INFO] [stdout] | [INFO] [stdout] 125 | CardAction::Attack { hits, damage, opponent} => self.attack(hits, damage, player, opponent), [INFO] [stdout] | ------ ^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Character` [INFO] [stdout] found reference `&Player` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/main.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn attack(&self, hits: &i32, damage: &i32, player: &mut Character, opponent: &mut Character) { [INFO] [stdout] | ^^^^^^ ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `yixian_sim` (bin "yixian_sim") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `additional_effects` [INFO] [stdout] --> src/bin/damage_calc.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | CardAction::Attack { hits, damage, additional_effects } => total_dmg += &self.attack(hits, damage), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `additional_effects: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:117:38 [INFO] [stdout] | [INFO] [stdout] 117 | CardAction::Defend { amount, additional_effects } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `additional_effects` [INFO] [stdout] --> src/bin/damage_calc.rs:117:46 [INFO] [stdout] | [INFO] [stdout] 117 | CardAction::Defend { amount, additional_effects } => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `additional_effects: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | CardAction::ApplyFlaw { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:119:41 [INFO] [stdout] | [INFO] [stdout] 119 | CardAction::ApplyWeak { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:120:43 [INFO] [stdout] | [INFO] [stdout] 120 | CardAction::ApplyInjury { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:121:45 [INFO] [stdout] | [INFO] [stdout] 121 | CardAction::ApplyHexagram { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:122:36 [INFO] [stdout] | [INFO] [stdout] 122 | CardAction::Heal { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:123:40 [INFO] [stdout] | [INFO] [stdout] 123 | CardAction::AddMaxHp { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | CardAction::AddQi { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:125:44 [INFO] [stdout] | [INFO] [stdout] 125 | CardAction::AddIgnoreDef { amount } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bin/damage_calc.rs:126:46 [INFO] [stdout] | [INFO] [stdout] 126 | CardAction::AddSwordIntent { amount, additional_effects } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `amount: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `additional_effects` [INFO] [stdout] --> src/bin/damage_calc.rs:126:54 [INFO] [stdout] | [INFO] [stdout] 126 | CardAction::AddSwordIntent { amount, additional_effects } => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `additional_effects: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `you` [INFO] [stdout] --> src/bin/damage_calc.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut you = Character::from(100, Player::One); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_you` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dummy` [INFO] [stdout] --> src/bin/damage_calc.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut dummy = Character::from(100, Player::Two); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dummy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/damage_calc.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut you = Character::from(100, Player::One); [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/damage_calc.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let mut dummy = Character::from(100, Player::Two); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "079ac8e16b3d359db416f9a73fb58761e40a2c25565397b737b21cc211405cc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "079ac8e16b3d359db416f9a73fb58761e40a2c25565397b737b21cc211405cc1", kill_on_drop: false }` [INFO] [stdout] 079ac8e16b3d359db416f9a73fb58761e40a2c25565397b737b21cc211405cc1