[INFO] fetching crate sudoku-cli 0.2.0... [INFO] checking sudoku-cli-0.2.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate sudoku-cli 0.2.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate sudoku-cli 0.2.0 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sudoku-cli 0.2.0 [INFO] finished tweaking crates.io crate sudoku-cli 0.2.0 [INFO] tweaked toml for crates.io crate sudoku-cli 0.2.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate sudoku-cli 0.2.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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29d23a62342d38b775ca7b97bb8b5e6681b8c44639ca42128638fdd5064f4a53 [INFO] running `Command { std: "docker" "start" "-a" "29d23a62342d38b775ca7b97bb8b5e6681b8c44639ca42128638fdd5064f4a53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29d23a62342d38b775ca7b97bb8b5e6681b8c44639ca42128638fdd5064f4a53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29d23a62342d38b775ca7b97bb8b5e6681b8c44639ca42128638fdd5064f4a53", kill_on_drop: false }` [INFO] [stdout] 29d23a62342d38b775ca7b97bb8b5e6681b8c44639ca42128638fdd5064f4a53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 431094b2b81ceac79b1f9bab3466ffa568e800b0ab68deeba5bac46200e77b5a [INFO] running `Command { std: "docker" "start" "-a" "431094b2b81ceac79b1f9bab3466ffa568e800b0ab68deeba5bac46200e77b5a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Compiling rayon-core v1.6.0 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking ansi-escapes v0.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Compiling proc-macro-error v0.2.6 [INFO] [stderr] Compiling structopt-derive v0.3.3 [INFO] [stderr] Checking structopt v0.3.3 [INFO] [stderr] Checking sudoku-cli v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0500]: closure requires unique access to `self` but it is already borrowed [INFO] [stdout] --> src/sudoku/board.rs:213:45 [INFO] [stdout] | [INFO] [stdout] 213 | self.options_iter(&square).for_each(|value| { [INFO] [stdout] | ---- -------- ^^^^^^^ closure construction occurs here [INFO] [stdout] | | | [INFO] [stdout] | borrow occurs here first borrow later used by call [INFO] [stdout] 214 | self.fill(&square, value); [INFO] [stdout] | ---- second borrow occurs due to use of `self` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 285 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 286 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 285 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 286 | self.fill(&square, value); [INFO] [stdout] 287 | self.watch_find_all_seq(millis_per_frame, count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 333 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 334 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 333 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 334 | self.fill(&square, value); [INFO] [stdout] 335 | self.watch_find_one_seq(millis_per_frame, count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:365:13 [INFO] [stdout] | [INFO] [stdout] 364 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 365 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:366:41 [INFO] [stdout] | [INFO] [stdout] 364 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 365 | self.fill(&square, value); [INFO] [stdout] 366 | let (new_count, new_sols) = self.find_all_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 424 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 425 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:426:42 [INFO] [stdout] | [INFO] [stdout] 424 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 425 | self.fill(&square, value); [INFO] [stdout] 426 | let (new_count, new_sols) = &self.find_all_compact_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 484 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 488 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:489:41 [INFO] [stdout] | [INFO] [stdout] 484 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 489 | let (new_count, new_sols) = self.find_one_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 550 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 554 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:555:42 [INFO] [stdout] | [INFO] [stdout] 550 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 555 | let (new_count, new_sols) = &self.find_one_compact_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `self` but it is already borrowed [INFO] [stdout] --> src/sudoku/board.rs:213:45 [INFO] [stdout] | [INFO] [stdout] 213 | self.options_iter(&square).for_each(|value| { [INFO] [stdout] | ---- -------- ^^^^^^^ closure construction occurs here [INFO] [stdout] | | | [INFO] [stdout] | borrow occurs here first borrow later used by call [INFO] [stdout] 214 | self.fill(&square, value); [INFO] [stdout] | ---- second borrow occurs due to use of `self` in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 285 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 286 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 285 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 286 | self.fill(&square, value); [INFO] [stdout] 287 | self.watch_find_all_seq(millis_per_frame, count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 333 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 334 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 333 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 334 | self.fill(&square, value); [INFO] [stdout] 335 | self.watch_find_one_seq(millis_per_frame, count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:365:13 [INFO] [stdout] | [INFO] [stdout] 364 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 365 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:366:41 [INFO] [stdout] | [INFO] [stdout] 364 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 365 | self.fill(&square, value); [INFO] [stdout] 366 | let (new_count, new_sols) = self.find_all_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 424 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 425 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:426:42 [INFO] [stdout] | [INFO] [stdout] 424 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 425 | self.fill(&square, value); [INFO] [stdout] 426 | let (new_count, new_sols) = &self.find_all_compact_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 484 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 488 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:489:41 [INFO] [stdout] | [INFO] [stdout] 484 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 489 | let (new_count, new_sols) = self.find_one_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 550 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 554 | self.fill(&square, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/sudoku/board.rs:555:42 [INFO] [stdout] | [INFO] [stdout] 550 | for value in self.options_iter(&square) { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 555 | let (new_count, new_sols) = &self.find_one_compact_seq(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sudoku-cli` (bin "sudoku-cli") due to 14 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sudoku-cli` (bin "sudoku-cli" test) due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "431094b2b81ceac79b1f9bab3466ffa568e800b0ab68deeba5bac46200e77b5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "431094b2b81ceac79b1f9bab3466ffa568e800b0ab68deeba5bac46200e77b5a", kill_on_drop: false }` [INFO] [stdout] 431094b2b81ceac79b1f9bab3466ffa568e800b0ab68deeba5bac46200e77b5a