[INFO] fetching crate chunked 0.1.1... [INFO] checking chunked-0.1.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate chunked 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate chunked 0.1.1 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 chunked 0.1.1 [INFO] finished tweaking crates.io crate chunked 0.1.1 [INFO] tweaked toml for crates.io crate chunked 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate chunked 0.1.1 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] e522c3efb5055bddd2a1f00eccf203e7dcbf67bebab623c019531def2d4692d9 [INFO] running `Command { std: "docker" "start" "-a" "e522c3efb5055bddd2a1f00eccf203e7dcbf67bebab623c019531def2d4692d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e522c3efb5055bddd2a1f00eccf203e7dcbf67bebab623c019531def2d4692d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e522c3efb5055bddd2a1f00eccf203e7dcbf67bebab623c019531def2d4692d9", kill_on_drop: false }` [INFO] [stdout] e522c3efb5055bddd2a1f00eccf203e7dcbf67bebab623c019531def2d4692d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] fb0ad7b1f21af600a40052a38c6e6d886a8ad24fb46bd9d10283b931abbae8a2 [INFO] running `Command { std: "docker" "start" "-a" "fb0ad7b1f21af600a40052a38c6e6d886a8ad24fb46bd9d10283b931abbae8a2", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking futures-sink v0.3.14 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking futures-core v0.3.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.4 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Checking futures-channel v0.3.14 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking futures-task v0.3.14 [INFO] [stderr] Checking futures-io v0.3.14 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling tokio v1.5.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.4 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking crossbeam-queue v0.3.1 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.14 [INFO] [stderr] Checking futures-util v0.3.14 [INFO] [stderr] Checking futures-executor v0.3.14 [INFO] [stderr] Checking futures v0.3.14 [INFO] [stderr] Checking chunked v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:315:24 [INFO] [stdout] | [INFO] [stdout] 315 | if self.can_start(&locks) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:315:24 [INFO] [stdout] | [INFO] [stdout] 315 | if self.can_start(&locks) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.active_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:316:28 [INFO] [stdout] | [INFO] [stdout] 316 | if self.active_transactions.is_empty() && self.lock.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.active_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:316:28 [INFO] [stdout] | [INFO] [stdout] 316 | if self.active_transactions.is_empty() && self.lock.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.lock` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:316:67 [INFO] [stdout] | [INFO] [stdout] 316 | if self.active_transactions.is_empty() && self.lock.is_none() { [INFO] [stdout] | ^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.lock` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:316:67 [INFO] [stdout] | [INFO] [stdout] 316 | if self.active_transactions.is_empty() && self.lock.is_none() { [INFO] [stdout] | ^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.snapshot` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:317:69 [INFO] [stdout] | [INFO] [stdout] 317 | let lock = unsafe { std::mem::transmute(self.snapshot.lock().await) }; [INFO] [stdout] | ^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - mutable borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.snapshot` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:317:69 [INFO] [stdout] | [INFO] [stdout] 317 | let lock = unsafe { std::mem::transmute(self.snapshot.lock().await) }; [INFO] [stdout] | ^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - mutable borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.lock` because it is borrowed [INFO] [stdout] --> src/world/mod.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | self.lock = Some(lock); [INFO] [stdout] | ^^^^^^^^^ `self.lock` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- `self.lock` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.lock` because it is borrowed [INFO] [stdout] --> src/world/mod.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | self.lock = Some(lock); [INFO] [stdout] | ^^^^^^^^^ `self.lock` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | -------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- `self.lock` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.lock` because it is borrowed [INFO] [stdout] --> src/world/mod.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | self.lock = Some(lock); [INFO] [stdout] | ^^^^^^^^^ `self.lock` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- `self.lock` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.lock` because it is borrowed [INFO] [stdout] --> src/world/mod.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | self.lock = Some(lock); [INFO] [stdout] | ^^^^^^^^^ `self.lock` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- `self.lock` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:321:45 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:321:45 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 321 | active_futures.push(self.start_transaction((locks, f, tx))); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.pending_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:323:25 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 323 | self.pending_transactions.push_back((locks, f, tx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.pending_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:323:25 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 323 | self.pending_transactions.push_back((locks, f, tx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.active_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | self.active_transactions.retain(|t| !Arc::ptr_eq(t, &done)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 342 | if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.active_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | self.active_transactions.retain(|t| !Arc::ptr_eq(t, &done)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 342 | if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.pending_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:331:31 [INFO] [stdout] | [INFO] [stdout] 331 | while i < self.pending_transactions.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 342 | if active_futures.is_empty() { [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.pending_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:331:31 [INFO] [stdout] | [INFO] [stdout] 331 | while i < self.pending_transactions.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 342 | if active_futures.is_empty() { [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.pending_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:332:46 [INFO] [stdout] | [INFO] [stdout] 332 | let (locks, _, _) = &self.pending_transactions[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 336 | active_futures.push(f); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:333:28 [INFO] [stdout] | [INFO] [stdout] 333 | if self.can_start(locks) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] 334 | let cmd = self.pending_transactions.remove(i).unwrap(); [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 336 | active_futures.push(f); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.pending_transactions` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:332:46 [INFO] [stdout] | [INFO] [stdout] 332 | let (locks, _, _) = &self.pending_transactions[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 336 | active_futures.push(f); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.pending_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:334:39 [INFO] [stdout] | [INFO] [stdout] 334 | ... let cmd = self.pending_transactions.remove(i).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 335 | ... let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 336 | ... active_futures.push(f); [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/world/mod.rs:333:28 [INFO] [stdout] | [INFO] [stdout] 333 | if self.can_start(locks) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] 334 | let cmd = self.pending_transactions.remove(i).unwrap(); [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 336 | active_futures.push(f); [INFO] [stdout] | -------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:335:37 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow used here, in later iteration of loop [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ^^^^ `self` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.pending_transactions` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:334:39 [INFO] [stdout] | [INFO] [stdout] 334 | ... let cmd = self.pending_transactions.remove(i).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] 335 | ... let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 336 | ... active_futures.push(f); [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.lock` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 343 | self.lock.take(); [INFO] [stdout] | ^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - first borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:335:37 [INFO] [stdout] | [INFO] [stdout] 296 | let task_done = if active_futures.is_empty() { [INFO] [stdout] | -------------- first borrow used here, in later iteration of loop [INFO] [stdout] ... [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ^^^^ `self` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.lock` as mutable more than once at a time [INFO] [stdout] --> src/world/mod.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 335 | let f = self.start_transaction(cmd); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 343 | self.lock.take(); [INFO] [stdout] | ^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | } [INFO] [stdout] | - first borrow might be used here, when `active_futures` is dropped and runs the `Drop` code for type `FuturesUnordered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chunked` (lib test) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `chunked` (lib) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "fb0ad7b1f21af600a40052a38c6e6d886a8ad24fb46bd9d10283b931abbae8a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb0ad7b1f21af600a40052a38c6e6d886a8ad24fb46bd9d10283b931abbae8a2", kill_on_drop: false }` [INFO] [stdout] fb0ad7b1f21af600a40052a38c6e6d886a8ad24fb46bd9d10283b931abbae8a2