[INFO] fetching crate ricochetrobots 0.0.0... [INFO] checking ricochetrobots-0.0.0 against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] extracting crate ricochetrobots 0.0.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate ricochetrobots 0.0.0 on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ricochetrobots 0.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ricochetrobots 0.0.0 [INFO] tweaked toml for crates.io crate ricochetrobots 0.0.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate ricochetrobots 0.0.0 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" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anstyle v1.0.2 [INFO] [stderr] Downloaded anstream v0.5.0 [INFO] [stderr] Downloaded ciborium-io v0.2.1 [INFO] [stderr] Downloaded clap v4.4.0 [INFO] [stderr] Downloaded ciborium-ll v0.2.1 [INFO] [stderr] Downloaded rustix v0.38.9 [INFO] [stderr] Downloaded ciborium v0.2.1 [INFO] [stderr] Downloaded anstyle-wincon v2.1.0 [INFO] [stderr] Downloaded clap_builder v4.4.0 [INFO] [stderr] Downloaded clap_derive v4.4.0 [INFO] [stderr] Downloaded serde_json v1.0.79 [INFO] [stderr] Downloaded bumpalo v3.9.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2f0938a5b714c5f791f4966cb2f6f202b0653c6fdaf01beb5656fb4b9423399 [INFO] running `Command { std: "docker" "start" "-a" "b2f0938a5b714c5f791f4966cb2f6f202b0653c6fdaf01beb5656fb4b9423399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2f0938a5b714c5f791f4966cb2f6f202b0653c6fdaf01beb5656fb4b9423399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2f0938a5b714c5f791f4966cb2f6f202b0653c6fdaf01beb5656fb4b9423399", kill_on_drop: false }` [INFO] [stdout] b2f0938a5b714c5f791f4966cb2f6f202b0653c6fdaf01beb5656fb4b9423399 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ba94ef1019d763f773480abdc911e45fc6fc508289e4035e542a44a7a78f1e7 [INFO] running `Command { std: "docker" "start" "-a" "6ba94ef1019d763f773480abdc911e45fc6fc508289e4035e542a44a7a78f1e7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling rustix v0.38.9 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking ciborium-io v0.2.1 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking clap_builder v4.4.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking ciborium-ll v0.2.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking regex-automata v0.3.7 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking regex v1.9.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling clap_derive v4.4.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Checking clap v4.4.0 [INFO] [stderr] Checking ciborium v0.2.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Checking serde-wasm-bindgen v0.5.0 [INFO] [stderr] Checking ricochetrobots v0.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.64s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "6ba94ef1019d763f773480abdc911e45fc6fc508289e4035e542a44a7a78f1e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ba94ef1019d763f773480abdc911e45fc6fc508289e4035e542a44a7a78f1e7", kill_on_drop: false }` [INFO] [stdout] 6ba94ef1019d763f773480abdc911e45fc6fc508289e4035e542a44a7a78f1e7 [INFO] checking ricochetrobots-0.0.0 against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] extracting crate ricochetrobots 0.0.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate ricochetrobots 0.0.0 on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ricochetrobots 0.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ricochetrobots 0.0.0 [INFO] tweaked toml for crates.io crate ricochetrobots 0.0.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate ricochetrobots 0.0.0 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" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5338ad327c457f7cc45adc99ab5ca92492ac768b84a3d03774eaf70fa99e95c0 [INFO] running `Command { std: "docker" "start" "-a" "5338ad327c457f7cc45adc99ab5ca92492ac768b84a3d03774eaf70fa99e95c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5338ad327c457f7cc45adc99ab5ca92492ac768b84a3d03774eaf70fa99e95c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5338ad327c457f7cc45adc99ab5ca92492ac768b84a3d03774eaf70fa99e95c0", kill_on_drop: false }` [INFO] [stdout] 5338ad327c457f7cc45adc99ab5ca92492ac768b84a3d03774eaf70fa99e95c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5b5544c95a0cca44fe9ea00e5d02c2a0563dbf7b3bfd1347fc1c2cc9fb88f2e [INFO] running `Command { std: "docker" "start" "-a" "c5b5544c95a0cca44fe9ea00e5d02c2a0563dbf7b3bfd1347fc1c2cc9fb88f2e", 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] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling once_cell v1.14.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling rustix v0.38.9 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking ciborium-io v0.2.1 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking clap_builder v4.4.0 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking ciborium-ll v0.2.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking regex-automata v0.3.7 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking regex v1.9.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling clap_derive v4.4.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Checking clap v4.4.0 [INFO] [stderr] Checking ciborium v0.2.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Checking serde-wasm-bindgen v0.5.0 [INFO] [stderr] Checking ricochetrobots v0.0.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/solve.rs from 2021 edition to 2024 [INFO] [stderr] Migrating benches/quick.rs from 2021 edition to 2024 [INFO] [stderr] Migrating benches/solve.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/solutions.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/ricochetrobots-debug-precompute.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/solutions.rs (1 fix) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.52s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ricochetrobots v0.0.0 (/tmp/fixit) [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:248:6 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 248 | game.set_robots(new_state); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 260 | game.set_robots(robots); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `game` because it is borrowed [INFO] [stdout] --> src/solver.rs:265:34 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn solve(mut game: crate::Game) -> crate::Solution { [INFO] [stdout] | -------- binding `game` declared here [INFO] [stdout] ... [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow of `game` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 265 | return crate::Solution::new(game, diffs, states, robot_map); [INFO] [stdout] | ^^^^ move out of `game` occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.clone().moves_for(robot) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 268 | game.set_robot(robot, m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | let score = estimate(&mut game) as usize + history.depth() as usize; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 165 | for new_pos in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 174 | game.set_robot(robot, new_pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 165 | for new_pos in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 175 | if search_path(game, precompute, next_score, robot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ricochetrobots` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:248:6 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 248 | game.set_robots(new_state); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:260:7 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 260 | game.set_robots(robots); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `game` because it is borrowed [INFO] [stdout] --> src/solver.rs:265:34 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn solve(mut game: crate::Game) -> crate::Solution { [INFO] [stdout] | -------- binding `game` declared here [INFO] [stdout] ... [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow of `game` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 265 | return crate::Solution::new(game, diffs, states, robot_map); [INFO] [stdout] | ^^^^ move out of `game` occurs here [INFO] [stdout] ... [INFO] [stdout] 271 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.clone().moves_for(robot) { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 268 | game.set_robot(robot, m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 234 | for m in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | let score = estimate(&mut game) as usize + history.depth() as usize; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 165 | for new_pos in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 174 | game.set_robot(robot, new_pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*game` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solver.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 165 | for new_pos in game.moves_for(robot) { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 175 | if search_path(game, precompute, next_score, robot) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ricochetrobots` (lib test) due to 8 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c5b5544c95a0cca44fe9ea00e5d02c2a0563dbf7b3bfd1347fc1c2cc9fb88f2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5b5544c95a0cca44fe9ea00e5d02c2a0563dbf7b3bfd1347fc1c2cc9fb88f2e", kill_on_drop: false }` [INFO] [stdout] c5b5544c95a0cca44fe9ea00e5d02c2a0563dbf7b3bfd1347fc1c2cc9fb88f2e