[INFO] cloning repository https://github.com/avp/gridsolve [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/avp/gridsolve" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favp%2Fgridsolve", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favp%2Fgridsolve'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ffbd9251ce266c2fd3767ed42bd2aa531538f03 [INFO] checking avp/gridsolve against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favp%2Fgridsolve" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/avp/gridsolve 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 git repo https://github.com/avp/gridsolve [INFO] finished tweaking git repo https://github.com/avp/gridsolve [INFO] tweaked toml for git repo https://github.com/avp/gridsolve written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/avp/gridsolve 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] 744e1303ad53287ed3dbf42ba49cfc1377afd2705e2a940b4af4b09173e2284b [INFO] running `Command { std: "docker" "start" "-a" "744e1303ad53287ed3dbf42ba49cfc1377afd2705e2a940b4af4b09173e2284b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "744e1303ad53287ed3dbf42ba49cfc1377afd2705e2a940b4af4b09173e2284b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "744e1303ad53287ed3dbf42ba49cfc1377afd2705e2a940b4af4b09173e2284b", kill_on_drop: false }` [INFO] [stdout] 744e1303ad53287ed3dbf42ba49cfc1377afd2705e2a940b4af4b09173e2284b [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] c9466710d99b4aef198ec96b26e35d51d215f580174d2f45858838c9334be771 [INFO] running `Command { std: "docker" "start" "-a" "c9466710d99b4aef198ec96b26e35d51d215f580174d2f45858838c9334be771", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.72 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.10.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling io-lifetimes v1.0.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking bimap v0.5.3 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling rustix v0.36.8 [INFO] [stderr] Compiling wasm-bindgen v0.2.72 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking linux-raw-sys v0.1.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking encode_unicode v1.0.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking is-terminal v0.4.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.72 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.72 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.72 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking bstr v0.2.14 [INFO] [stderr] Checking gridsolve v0.1.0 (/opt/rustwide/workdir/crates/gridsolve) [INFO] [stdout] error[E0502]: cannot borrow `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:229:28 [INFO] [stdout] | [INFO] [stdout] 224 | for w in grid.labels() { [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] 229 | changed |= grid.set_with_callback(x, w, Cell::No, || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 230 | | format!( [INFO] [stdout] 231 | | " Constraint {} => {} ({}) must be either {} ({}) or {} ({}), \ [INFO] [stdout] 232 | | conflicts with {} ({}) which is with neither\n", [INFO] [stdout] ... | [INFO] [stdout] 242 | | ) [INFO] [stdout] 243 | | })?; [INFO] [stdout] | |__________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 262 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:229:28 [INFO] [stdout] | [INFO] [stdout] 224 | for w in grid.labels() { [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] 229 | changed |= grid.set_with_callback(x, w, Cell::No, || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 230 | | format!( [INFO] [stdout] 231 | | " Constraint {} => {} ({}) must be either {} ({}) or {} ({}), \ [INFO] [stdout] 232 | | conflicts with {} ({}) which is with neither\n", [INFO] [stdout] ... | [INFO] [stdout] 242 | | ) [INFO] [stdout] 243 | | })?; [INFO] [stdout] | |__________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 262 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 224 | for w in grid.labels() { [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] 246 | changed |= grid.set_with_callback(x, w, Cell::No, || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 247 | | format!( [INFO] [stdout] 248 | | " Constraint {} => {} ({}) must be one of {} ({}) or {} ({}), \ [INFO] [stdout] 249 | | conflicts with {} ({}) which is with both\n", [INFO] [stdout] ... | [INFO] [stdout] 259 | | ) [INFO] [stdout] 260 | | })?; [INFO] [stdout] | |__________________^ mutable borrow occurs here [INFO] [stdout] 261 | } [INFO] [stdout] 262 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 224 | for w in grid.labels() { [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] 246 | changed |= grid.set_with_callback(x, w, Cell::No, || { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 247 | | format!( [INFO] [stdout] 248 | | " Constraint {} => {} ({}) must be one of {} ({}) or {} ({}), \ [INFO] [stdout] 249 | | conflicts with {} ({}) which is with both\n", [INFO] [stdout] ... | [INFO] [stdout] 259 | | ) [INFO] [stdout] 260 | | })?; [INFO] [stdout] | |__________________^ mutable borrow occurs here [INFO] [stdout] 261 | } [INFO] [stdout] 262 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:527:36 [INFO] [stdout] | [INFO] [stdout] 521 | for attempt in grid.labels() { [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] 527 | changed |= grid.set(attempt, x, Cell::No)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 528 | } [INFO] [stdout] 529 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/constraint.rs:527:36 [INFO] [stdout] | [INFO] [stdout] 521 | for attempt in grid.labels() { [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] 527 | changed |= grid.set(attempt, x, Cell::No)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 528 | } [INFO] [stdout] 529 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 17 | for (l1, l2) in grid.cells() { [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] 27 | changed |= grid.set_with_callback(l1, l3, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 28 | | format!( [INFO] [stdout] 29 | | " {} ({}) is already set to {} ({}), eliminating {} ({})\n", [INFO] [stdout] 30 | | puzzle.lookup_label(l1), [INFO] [stdout] ... | [INFO] [stdout] 36 | | ) [INFO] [stdout] 37 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 17 | for (l1, l2) in grid.cells() { [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] 27 | changed |= grid.set_with_callback(l1, l3, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 28 | | format!( [INFO] [stdout] 29 | | " {} ({}) is already set to {} ({}), eliminating {} ({})\n", [INFO] [stdout] 30 | | puzzle.lookup_label(l1), [INFO] [stdout] ... | [INFO] [stdout] 36 | | ) [INFO] [stdout] 37 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 17 | for (l1, l2) in grid.cells() { [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] 47 | changed |= grid.set_with_callback(l3, l2, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 48 | | format!( [INFO] [stdout] 49 | | " {} ({}) is already set to {} ({}), eliminating {} ({})\n", [INFO] [stdout] 50 | | puzzle.lookup_label(l2), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ) [INFO] [stdout] 57 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 17 | for (l1, l2) in grid.cells() { [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] 47 | changed |= grid.set_with_callback(l3, l2, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 48 | | format!( [INFO] [stdout] 49 | | " {} ({}) is already set to {} ({}), eliminating {} ({})\n", [INFO] [stdout] 50 | | puzzle.lookup_label(l2), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ) [INFO] [stdout] 57 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 90 | changed |= grid.set_with_callback(l1, l2, Cell::Yes, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 91 | | format!( [INFO] [stdout] 92 | | " {} ({}) is the only possibility for {} ({})\n", [INFO] [stdout] 93 | | puzzle.lookup_label(l2), [INFO] [stdout] ... | [INFO] [stdout] 97 | | ) [INFO] [stdout] 98 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 90 | changed |= grid.set_with_callback(l1, l2, Cell::Yes, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 91 | | format!( [INFO] [stdout] 92 | | " {} ({}) is the only possibility for {} ({})\n", [INFO] [stdout] 93 | | puzzle.lookup_label(l2), [INFO] [stdout] ... | [INFO] [stdout] 97 | | ) [INFO] [stdout] 98 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:118:32 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 118 | changed |= grid.set(l1, l2, Cell::Yes)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:118:32 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 118 | changed |= grid.set(l1, l2, Cell::Yes)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 119 | / grid.set_with_callback(l1, l2, Cell::Yes, || { [INFO] [stdout] 120 | | format!( [INFO] [stdout] 121 | | " {} ({}) is the only possibility for {} ({})\n", [INFO] [stdout] 122 | | puzzle.lookup_label(l1), [INFO] [stdout] ... | [INFO] [stdout] 126 | | ) [INFO] [stdout] 127 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 72 | for (l1, l2) in grid.cells() { [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] 119 | / grid.set_with_callback(l1, l2, Cell::Yes, || { [INFO] [stdout] 120 | | format!( [INFO] [stdout] 121 | | " {} ({}) is the only possibility for {} ({})\n", [INFO] [stdout] 122 | | puzzle.lookup_label(l1), [INFO] [stdout] ... | [INFO] [stdout] 126 | | ) [INFO] [stdout] 127 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 131 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:148:36 [INFO] [stdout] | [INFO] [stdout] 143 | for (x, y) in grid.cells() { [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] 148 | changed |= grid.set_with_callback(y, z, Cell::Yes, || { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 149 | | format!( [INFO] [stdout] 150 | | " {} ({}) and {} ({}) share {} ({})\n", [INFO] [stdout] 151 | | puzzle.lookup_label(y), [INFO] [stdout] ... | [INFO] [stdout] 157 | | ) [INFO] [stdout] 158 | | })?; [INFO] [stdout] | |__________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 175 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:148:36 [INFO] [stdout] | [INFO] [stdout] 143 | for (x, y) in grid.cells() { [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] 148 | changed |= grid.set_with_callback(y, z, Cell::Yes, || { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 149 | | format!( [INFO] [stdout] 150 | | " {} ({}) and {} ({}) share {} ({})\n", [INFO] [stdout] 151 | | puzzle.lookup_label(y), [INFO] [stdout] ... | [INFO] [stdout] 157 | | ) [INFO] [stdout] 158 | | })?; [INFO] [stdout] | |__________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 175 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:161:36 [INFO] [stdout] | [INFO] [stdout] 143 | for (x, y) in grid.cells() { [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] 161 | changed |= grid.set_with_callback(x, z, Cell::Yes, || { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 162 | | format!( [INFO] [stdout] 163 | | " {} ({}) and {} ({}) share {} ({})\n", [INFO] [stdout] 164 | | puzzle.lookup_label(x), [INFO] [stdout] ... | [INFO] [stdout] 170 | | ) [INFO] [stdout] 171 | | })?; [INFO] [stdout] | |__________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 175 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:161:36 [INFO] [stdout] | [INFO] [stdout] 143 | for (x, y) in grid.cells() { [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] 161 | changed |= grid.set_with_callback(x, z, Cell::Yes, || { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 162 | | format!( [INFO] [stdout] 163 | | " {} ({}) and {} ({}) share {} ({})\n", [INFO] [stdout] 164 | | puzzle.lookup_label(x), [INFO] [stdout] ... | [INFO] [stdout] 170 | | ) [INFO] [stdout] 171 | | })?; [INFO] [stdout] | |__________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 175 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 191 | for (x, y) in grid.cells() { [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] 215 | changed |= grid.set_with_callback(x, y, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 216 | | format!( [INFO] [stdout] 217 | | " {} ({}) is irreconcilable with {} ({}): cannot share ({})\n", [INFO] [stdout] 218 | | puzzle.lookup_label(x), [INFO] [stdout] ... | [INFO] [stdout] 223 | | ) [INFO] [stdout] 224 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 228 | } [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 `*grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> crates/gridsolve/src/rule.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 191 | for (x, y) in grid.cells() { [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] 215 | changed |= grid.set_with_callback(x, y, Cell::No, || { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 216 | | format!( [INFO] [stdout] 217 | | " {} ({}) is irreconcilable with {} ({}): cannot share ({})\n", [INFO] [stdout] 218 | | puzzle.lookup_label(x), [INFO] [stdout] ... | [INFO] [stdout] 223 | | ) [INFO] [stdout] 224 | | })?; [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 228 | } [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 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gridsolve` (lib) due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `gridsolve` (lib test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "c9466710d99b4aef198ec96b26e35d51d215f580174d2f45858838c9334be771", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9466710d99b4aef198ec96b26e35d51d215f580174d2f45858838c9334be771", kill_on_drop: false }` [INFO] [stdout] c9466710d99b4aef198ec96b26e35d51d215f580174d2f45858838c9334be771