[INFO] fetching crate poke-engine 0.0.45... [INFO] testing poke-engine-0.0.45 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate poke-engine 0.0.45 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate poke-engine 0.0.45 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate poke-engine 0.0.45 [INFO] tweaked toml for crates.io crate poke-engine 0.0.45 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate poke-engine 0.0.45 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate poke-engine 0.0.45 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f009c62b4a83a403547ab668901050446fe5046524e1b5260de0625784496c8a [INFO] running `Command { std: "docker" "start" "-a" "f009c62b4a83a403547ab668901050446fe5046524e1b5260de0625784496c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f009c62b4a83a403547ab668901050446fe5046524e1b5260de0625784496c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f009c62b4a83a403547ab668901050446fe5046524e1b5260de0625784496c8a", kill_on_drop: false }` [INFO] [stdout] f009c62b4a83a403547ab668901050446fe5046524e1b5260de0625784496c8a [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 467c73b65c8b4eae4ea350fffce961be06fc8f4a1d2054fba38b54d9a129023e [INFO] running `Command { std: "docker" "start" "-a" "467c73b65c8b4eae4ea350fffce961be06fc8f4a1d2054fba38b54d9a129023e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling strsim v0.11.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling anstream v0.6.13 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling getrandom v0.2.15 [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 clap_derive v4.5.4 [INFO] [stderr] Compiling clap v4.5.4 [INFO] [stderr] Compiling poke-engine v0.0.45 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:895:54 [INFO] [stdout] | [INFO] [stdout] 895 | new_weather_turns_remaining: WEATHER_ABILITY_TURNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:900:49 [INFO] [stdout] | [INFO] [stdout] 900 | state.weather.turns_remaining = WEATHER_ABILITY_TURNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1523:54 [INFO] [stdout] | [INFO] [stdout] 1523 | new_weather_turns_remaining: WEATHER_ABILITY_TURNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1528:49 [INFO] [stdout] | [INFO] [stdout] 1528 | state.weather.turns_remaining = WEATHER_ABILITY_TURNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1565:54 [INFO] [stdout] | [INFO] [stdout] 1565 | new_weather_turns_remaining: WEATHER_ABILITY_TURNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1570:49 [INFO] [stdout] | [INFO] [stdout] 1570 | state.weather.turns_remaining = WEATHER_ABILITY_TURNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1786:54 [INFO] [stdout] | [INFO] [stdout] 1786 | new_weather_turns_remaining: WEATHER_ABILITY_TURNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1791:49 [INFO] [stdout] | [INFO] [stdout] 1791 | state.weather.turns_remaining = WEATHER_ABILITY_TURNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1814:54 [INFO] [stdout] | [INFO] [stdout] 1814 | new_weather_turns_remaining: WEATHER_ABILITY_TURNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:1819:49 [INFO] [stdout] | [INFO] [stdout] 1819 | state.weather.turns_remaining = WEATHER_ABILITY_TURNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TYPE_MATCHUP_DAMAGE_MULTIPICATION` in this scope [INFO] [stdout] --> src/genx/damage_calc.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 117 | * TYPE_MATCHUP_DAMAGE_MULTIPICATION[attacking_type_index] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TYPE_MATCHUP_DAMAGE_MULTIPICATION` in this scope [INFO] [stdout] --> src/genx/damage_calc.rs:120:11 [INFO] [stdout] | [INFO] [stdout] 120 | * TYPE_MATCHUP_DAMAGE_MULTIPICATION[attacking_type_index] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CRIT_MULTIPLIER` in this scope [INFO] [stdout] --> src/genx/damage_calc.rs:615:20 [INFO] [stdout] | [INFO] [stdout] 615 | crit_damage *= CRIT_MULTIPLIER; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_SLEEP_TURNS` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | 1.0 / (1 + MAX_SLEEP_TURNS - turns_asleep) as f32 [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `healing_wish_consumed` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:354:13 [INFO] [stdout] | [INFO] [stdout] 354 | healing_wish_consumed = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 354 | let healing_wish_consumed = true; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `healing_wish_consumed` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | healing_wish_consumed = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 363 | let healing_wish_consumed = true; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `healing_wish_consumed` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | if healing_wish_consumed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIT_SELF_IN_CONFUSION_CHANCE` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:1833:52 [INFO] [stdout] | [INFO] [stdout] 1833 | hit_yourself_instruction.update_percentage(HIT_SELF_IN_CONFUSION_CHANCE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HIT_SELF_IN_CONFUSION_CHANCE` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:1861:55 [INFO] [stdout] | [INFO] [stdout] 1861 | incoming_instructions.update_percentage(1.0 - HIT_SELF_IN_CONFUSION_CHANCE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CONSECUTIVE_PROTECT_CHANCE` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:1868:21 [INFO] [stdout] | [INFO] [stdout] 1868 | CONSECUTIVE_PROTECT_CHANCE.powi(attacking_side.side_conditions.protect as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BASE_CRIT_CHANCE` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:2284:17 [INFO] [stdout] | [INFO] [stdout] 2284 | BASE_CRIT_CHANCE [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BASE_CRIT_CHANCE` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:2307:17 [INFO] [stdout] | [INFO] [stdout] 2307 | BASE_CRIT_CHANCE [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `damage_factor` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:2958:21 [INFO] [stdout] | [INFO] [stdout] 2958 | damage_factor /= 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `damage_factor` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:2962:53 [INFO] [stdout] | [INFO] [stdout] 2962 | (active_pkmn.maxhp as f32 * damage_factor) as i16, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `damage_amount` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:3355:21 [INFO] [stdout] | [INFO] [stdout] 3355 | damage_amount, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `damage_amount` in this scope [INFO] [stdout] --> src/genx/generate_instructions.rs:3357:31 [INFO] [stdout] | [INFO] [stdout] 3357 | active_pkmn.hp -= damage_amount; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/genx/choice_effects.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | PokemonType, Side, SideReference, State, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `destinybond_before_move` in this scope [INFO] [stdout] --> src/genx/choice_effects.rs:877:5 [INFO] [stdout] | [INFO] [stdout] 877 | destinybond_before_move(attacking_side, attacking_side_ref, choice, instructions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `defending_stat` is assigned to, but never used [INFO] [stdout] --> src/genx/damage_calc.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | let defending_stat; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_defending_stat` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `defending_stat` is never read [INFO] [stdout] --> src/genx/damage_calc.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | defending_stat = PokemonBoostableStat::Defense; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `defending_stat` is never read [INFO] [stdout] --> src/genx/damage_calc.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | defending_stat = PokemonBoostableStat::Defense; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `defending_stat` is never read [INFO] [stdout] --> src/genx/damage_calc.rs:464:17 [INFO] [stdout] | [INFO] [stdout] 464 | defending_stat = PokemonBoostableStat::SpecialDefense; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/genx/damage_calc.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | state: &State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/genx/damage_calc.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 346 | mut defending_final_stat, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `poke-engine` (lib) due to 27 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "467c73b65c8b4eae4ea350fffce961be06fc8f4a1d2054fba38b54d9a129023e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "467c73b65c8b4eae4ea350fffce961be06fc8f4a1d2054fba38b54d9a129023e", kill_on_drop: false }` [INFO] [stdout] 467c73b65c8b4eae4ea350fffce961be06fc8f4a1d2054fba38b54d9a129023e