[INFO] cloning repository https://github.com/GKaszewski/combat_prototype_lib [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GKaszewski/combat_prototype_lib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGKaszewski%2Fcombat_prototype_lib", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGKaszewski%2Fcombat_prototype_lib'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 757bafa2d758905e1f54f38ded053fd58feebbc8 [INFO] checking GKaszewski/combat_prototype_lib/757bafa2d758905e1f54f38ded053fd58feebbc8 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGKaszewski%2Fcombat_prototype_lib" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GKaszewski/combat_prototype_lib on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GKaszewski/combat_prototype_lib [INFO] finished tweaking git repo https://github.com/GKaszewski/combat_prototype_lib [INFO] tweaked toml for git repo https://github.com/GKaszewski/combat_prototype_lib written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/GKaszewski/combat_prototype_lib 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 129c35e351b13ae4ae051745d8eaaa78c2e1e21c9d93ced5beb1fb522450cb44 [INFO] running `Command { std: "docker" "start" "-a" "129c35e351b13ae4ae051745d8eaaa78c2e1e21c9d93ced5beb1fb522450cb44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "129c35e351b13ae4ae051745d8eaaa78c2e1e21c9d93ced5beb1fb522450cb44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "129c35e351b13ae4ae051745d8eaaa78c2e1e21c9d93ced5beb1fb522450cb44", kill_on_drop: false }` [INFO] [stdout] 129c35e351b13ae4ae051745d8eaaa78c2e1e21c9d93ced5beb1fb522450cb44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a2503654ceb2021b3d9ebe9262c59c4145101e00f125820d51eb0a6abf9feec [INFO] running `Command { std: "docker" "start" "-a" "3a2503654ceb2021b3d9ebe9262c59c4145101e00f125820d51eb0a6abf9feec", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking combat_prototype_lib v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/battle/tests.rs (2 fixes) [INFO] [stderr] Fixed src/common/tests.rs (1 fix) [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_usable_units` in this scope [INFO] [stdout] --> src/battle/tests.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let usable_units = get_usable_units(&units, actions_budget); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::get_usable_units; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_usable_units` in this scope [INFO] [stdout] --> src/battle/tests.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | let usable_units = get_usable_units(&units, actions_budget); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | let usable_units = usable_units(&units, actions_budget); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::get_usable_units; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_usable_units` in this scope [INFO] [stdout] --> src/battle/tests.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | let usable_units = get_usable_units(&units, actions_budget); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 54 | let usable_units = usable_units(&units, actions_budget); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::get_usable_units; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_usable_units` in this scope [INFO] [stdout] --> src/battle/tests.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | let usable_units = get_usable_units(&units, actions_budget); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 60 | let usable_units = usable_units(&units, actions_budget); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::get_usable_units; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | let mut attacker = Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Unit` in this scope [INFO] [stdout] --> src/battle/tests.rs:83:24 [INFO] [stdout] | [INFO] [stdout] 83 | let mut defender = Unit { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::units::Unit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `attack` in this scope [INFO] [stdout] --> src/battle/tests.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | attack(&mut attacker, &mut defender); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 93 | attacker(&mut attacker, &mut defender); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::attack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `attack` in this scope [INFO] [stdout] --> src/battle/tests.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | attack(&mut attacker, &mut defender); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 100 | attacker(&mut attacker, &mut defender); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::battle::attack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SquareGrid` [INFO] [stdout] --> src/common/tests.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | let grid = SquareGrid::new(3, 3, elements); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SquareGrid` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::SquareGrid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | let position = Position(0, 0); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(neighbors[0], Position(1, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(neighbors[0], position(1, 0)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(neighbors[1], Position(0, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(neighbors[1], position(0, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(neighbors[2], Position(1, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(neighbors[2], position(1, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let position = Position(1, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 15 | let position = position(1, 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(neighbors[0], Position(0, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(neighbors[0], position(0, 0)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(neighbors[1], Position(2, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(neighbors[1], position(2, 0)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(neighbors[2], Position(1, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(neighbors[2], position(1, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(neighbors[3], Position(0, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(neighbors[3], position(0, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(neighbors[4], Position(2, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(neighbors[4], position(2, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | let position = Position(2, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 25 | let position = position(2, 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(neighbors[0], Position(1, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(neighbors[0], position(1, 0)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(neighbors[1], Position(2, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(neighbors[1], position(2, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | assert_eq!(neighbors[2], Position(1, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 31 | assert_eq!(neighbors[2], position(1, 1)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SquareGrid` [INFO] [stdout] --> src/common/tests.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | let grid = SquareGrid::new(3, 3, elements); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SquareGrid` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::SquareGrid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let position = Position(0, 0); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let position = Position(1, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | let position = position(1, 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Position` in this scope [INFO] [stdout] --> src/common/tests.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | let position = Position(2, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 57 | let position = position(2, 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 33 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `combat_prototype_lib` (lib test) due to 34 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3a2503654ceb2021b3d9ebe9262c59c4145101e00f125820d51eb0a6abf9feec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a2503654ceb2021b3d9ebe9262c59c4145101e00f125820d51eb0a6abf9feec", kill_on_drop: false }` [INFO] [stdout] 3a2503654ceb2021b3d9ebe9262c59c4145101e00f125820d51eb0a6abf9feec