[INFO] cloning repository https://github.com/levjj/rustsweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/levjj/rustsweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevjj%2Frustsweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevjj%2Frustsweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f7ac027074b1995f2bd7193e5fb31b34d6dbb42b [INFO] checking levjj/rustsweeper against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevjj%2Frustsweeper" "/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/levjj/rustsweeper 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/levjj/rustsweeper [INFO] finished tweaking git repo https://github.com/levjj/rustsweeper [INFO] tweaked toml for git repo https://github.com/levjj/rustsweeper written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/levjj/rustsweeper 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-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a2274caaf7b3afc3398efe5aa81ac042f4993871c46c3a57ff2fe8b3374d58a [INFO] running `Command { std: "docker" "start" "-a" "5a2274caaf7b3afc3398efe5aa81ac042f4993871c46c3a57ff2fe8b3374d58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a2274caaf7b3afc3398efe5aa81ac042f4993871c46c3a57ff2fe8b3374d58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a2274caaf7b3afc3398efe5aa81ac042f4993871c46c3a57ff2fe8b3374d58a", kill_on_drop: false }` [INFO] [stdout] 5a2274caaf7b3afc3398efe5aa81ac042f4993871c46c3a57ff2fe8b3374d58a [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3d77f08d2959adb88d989357deed9b1364e09c0e7d690e84a082f127c592877 [INFO] running `Command { std: "docker" "start" "-a" "c3d77f08d2959adb88d989357deed9b1364e09c0e7d690e84a082f127c592877", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling stdweb-internal-runtime v0.1.4 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Compiling base-x v0.2.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking discard v1.0.4 [INFO] [stderr] Compiling yew v0.7.0 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Compiling stdweb v0.4.18 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Checking getrandom v0.1.7 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking rand_core v0.5.0 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.0 [INFO] [stderr] Checking http v0.1.18 [INFO] [stderr] Checking backtrace v0.3.34 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling proc-macro-hack v0.5.8 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Compiling yew-macro v0.7.0 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking bincode v1.0.1 [INFO] [stderr] Compiling stdweb-derive v0.5.1 [INFO] [stderr] Compiling stdweb-internal-macros v0.2.7 [INFO] [stderr] Checking rustsweeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/model.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 168 | for neighbor in self.iter_neighbors(pos) { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 169 | if self[neighbor].state == CellState::Unmarked { [INFO] [stdout] 170 | self[neighbor].state = CellState::Revealed; [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/model.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 168 | for neighbor in self.iter_neighbors(pos) { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 169 | if self[neighbor].state == CellState::Unmarked { [INFO] [stdout] 170 | self[neighbor].state = CellState::Revealed; [INFO] [stdout] | ^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/model.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | x += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/model.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | x += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/model.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | x += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/model.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | x += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/model.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | x += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/model.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | y += 1; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 293 | assert_neighbors!(field, (2, 2, 1), (2, 2, 2), (3, 2, 2), (1, 1, 1), (0, 0, 0)) [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: this warning originates in the macro `assert_neighbors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustsweeper` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustsweeper` (lib test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3d77f08d2959adb88d989357deed9b1364e09c0e7d690e84a082f127c592877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3d77f08d2959adb88d989357deed9b1364e09c0e7d690e84a082f127c592877", kill_on_drop: false }` [INFO] [stdout] c3d77f08d2959adb88d989357deed9b1364e09c0e7d690e84a082f127c592877