[INFO] fetching crate poke-engine 0.0.46... [INFO] testing poke-engine-0.0.46 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate poke-engine 0.0.46 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate poke-engine 0.0.46 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate poke-engine 0.0.46 [INFO] tweaked toml for crates.io crate poke-engine 0.0.46 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate poke-engine 0.0.46 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate poke-engine 0.0.46 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b499e32cee3f4591ceb7f3471eac483337b74b7dcdaf234b02af453b0332cef [INFO] running `Command { std: "docker" "start" "-a" "9b499e32cee3f4591ceb7f3471eac483337b74b7dcdaf234b02af453b0332cef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b499e32cee3f4591ceb7f3471eac483337b74b7dcdaf234b02af453b0332cef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b499e32cee3f4591ceb7f3471eac483337b74b7dcdaf234b02af453b0332cef", kill_on_drop: false }` [INFO] [stdout] 9b499e32cee3f4591ceb7f3471eac483337b74b7dcdaf234b02af453b0332cef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f91f8f60fa5491912c49e0b5b4d525cc8401f8eb29314af05e07fe4b17bb08c6 [INFO] running `Command { std: "docker" "start" "-a" "f91f8f60fa5491912c49e0b5b4d525cc8401f8eb29314af05e07fe4b17bb08c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling strsim v0.11.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling anstream v0.6.13 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.76 [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.46 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `WEATHER_ABILITY_TURNS` in this scope [INFO] [stdout] --> src/genx/abilities.rs:879:54 [INFO] [stdout] | [INFO] [stdout] 879 | 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:884:49 [INFO] [stdout] | [INFO] [stdout] 884 | 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:1497:54 [INFO] [stdout] | [INFO] [stdout] 1497 | 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:1502:49 [INFO] [stdout] | [INFO] [stdout] 1502 | 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:1539:54 [INFO] [stdout] | [INFO] [stdout] 1539 | 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:1544:49 [INFO] [stdout] | [INFO] [stdout] 1544 | 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:1751:54 [INFO] [stdout] | [INFO] [stdout] 1751 | 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:1756:49 [INFO] [stdout] | [INFO] [stdout] 1756 | 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:1779:54 [INFO] [stdout] | [INFO] [stdout] 1779 | 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:1784:49 [INFO] [stdout] | [INFO] [stdout] 1784 | 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:1896:52 [INFO] [stdout] | [INFO] [stdout] 1896 | 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:1924:55 [INFO] [stdout] | [INFO] [stdout] 1924 | 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:1931:21 [INFO] [stdout] | [INFO] [stdout] 1931 | 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:2347:17 [INFO] [stdout] | [INFO] [stdout] 2347 | 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:2370:17 [INFO] [stdout] | [INFO] [stdout] 2370 | 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:3044:21 [INFO] [stdout] | [INFO] [stdout] 3044 | 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:3048:53 [INFO] [stdout] | [INFO] [stdout] 3048 | (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:3441:21 [INFO] [stdout] | [INFO] [stdout] 3441 | 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:3443:31 [INFO] [stdout] | [INFO] [stdout] 3443 | 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:896:5 [INFO] [stdout] | [INFO] [stdout] 896 | 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 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] 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] [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: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: 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] 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" "f91f8f60fa5491912c49e0b5b4d525cc8401f8eb29314af05e07fe4b17bb08c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f91f8f60fa5491912c49e0b5b4d525cc8401f8eb29314af05e07fe4b17bb08c6", kill_on_drop: false }` [INFO] [stdout] f91f8f60fa5491912c49e0b5b4d525cc8401f8eb29314af05e07fe4b17bb08c6