[INFO] fetching crate turbulence 0.4.0... [INFO] checking turbulence-0.4.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate turbulence 0.4.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate turbulence 0.4.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 turbulence 0.4.0 [INFO] finished tweaking crates.io crate turbulence 0.4.0 [INFO] tweaked toml for crates.io crate turbulence 0.4.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [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] 76138d9ca05e690f76fc71f5d9470fd4497287458e83b77fb1e4844ef3a39fd1 [INFO] running `Command { std: "docker" "start" "-a" "76138d9ca05e690f76fc71f5d9470fd4497287458e83b77fb1e4844ef3a39fd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76138d9ca05e690f76fc71f5d9470fd4497287458e83b77fb1e4844ef3a39fd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76138d9ca05e690f76fc71f5d9470fd4497287458e83b77fb1e4844ef3a39fd1", kill_on_drop: false }` [INFO] [stdout] 76138d9ca05e690f76fc71f5d9470fd4497287458e83b77fb1e4844ef3a39fd1 [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] a569fcd8a6977ef0174ed2f978e05fe21cd5c5b33aaeebd9e3291091c3b3ca1e [INFO] running `Command { std: "docker" "start" "-a" "a569fcd8a6977ef0174ed2f978e05fe21cd5c5b33aaeebd9e3291091c3b3ca1e", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling snap v1.1.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking thiserror v1.0.48 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking turbulence v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 85 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 89 | self.write_send_chunk().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 92 | bincode_config.serialize_into(&mut self.send_chunk, msg)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.send_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:92:39 [INFO] [stdout] | [INFO] [stdout] 85 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 92 | bincode_config.serialize_into(&mut self.send_chunk, msg)?; [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | immutable borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 85 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 89 | self.write_send_chunk().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 92 | bincode_config.serialize_into(&mut self.send_chunk, msg)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.send_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:92:39 [INFO] [stdout] | [INFO] [stdout] 85 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 92 | bincode_config.serialize_into(&mut self.send_chunk, msg)?; [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | immutable borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.read_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 124 | self.read_buffer.resize(3, 0); [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/compressed_bincode_channel.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 125 | self.finish_read().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.read_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 133 | self.read_buffer.resize(chunk_len as usize + 3, 0); [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/compressed_bincode_channel.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 134 | self.finish_read().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 141 | self.recv_chunk.resize(decompressed_len, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.decoder` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 142 | / self.decoder [INFO] [stdout] 143 | | .decompress(&self.read_buffer[3..], &mut self.recv_chunk)?; [INFO] [stdout] | |_____________________________________________________________________________^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:143:57 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 143 | .decompress(&self.read_buffer[3..], &mut self.recv_chunk)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 145 | self.recv_chunk.resize(chunk_len as usize, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 146 | self.recv_chunk.copy_from_slice(&self.read_buffer[3..]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.recv_pos` because it is borrowed [INFO] [stdout] --> src/compressed_bincode_channel.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- `self.recv_pos` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 149 | self.recv_pos = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `self.recv_pos` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.read_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 124 | self.read_buffer.resize(3, 0); [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/compressed_bincode_channel.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 125 | self.finish_read().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.read_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 133 | self.read_buffer.resize(chunk_len as usize + 3, 0); [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/compressed_bincode_channel.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 134 | self.finish_read().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 141 | self.recv_chunk.resize(decompressed_len, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.decoder` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 142 | / self.decoder [INFO] [stdout] 143 | | .decompress(&self.read_buffer[3..], &mut self.recv_chunk)?; [INFO] [stdout] | |_____________________________________________________________________________^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:143:57 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 143 | .decompress(&self.read_buffer[3..], &mut self.recv_chunk)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 145 | self.recv_chunk.resize(chunk_len as usize, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.recv_chunk` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/compressed_bincode_channel.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 146 | self.recv_chunk.copy_from_slice(&self.read_buffer[3..]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.recv_pos` because it is borrowed [INFO] [stdout] --> src/compressed_bincode_channel.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 113 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- `self.recv_pos` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 118 | let msg = bincode_config.deserialize_from(&mut reader)?; [INFO] [stdout] | -------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 149 | self.recv_pos = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `self.recv_pos` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self.write_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/reliable_bincode_channel.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 71 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 72 | let mut w = &mut self.write_buffer[2..]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 73 | bincode_config.serialize_into(&mut w, msg)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self.write_buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/reliable_bincode_channel.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 71 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 72 | let mut w = &mut self.write_buffer[2..]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 73 | bincode_config.serialize_into(&mut w, msg)?; [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self.buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/unreliable_bincode_channel.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 70 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 71 | let mut w = &mut self.buffer[..]; [INFO] [stdout] | ^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 72 | bincode_config [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.channel` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/unreliable_bincode_channel.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 95 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 96 | let msg = self.channel.recv().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 97 | bincode_config [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self.buffer` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/unreliable_bincode_channel.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 70 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 71 | let mut w = &mut self.buffer[..]; [INFO] [stdout] | ^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 72 | bincode_config [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.channel` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/unreliable_bincode_channel.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 95 | let bincode_config = self.bincode_config(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 96 | let msg = self.channel.recv().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 97 | bincode_config [INFO] [stdout] | -------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `turbulence` (lib) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `turbulence` (lib test) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "a569fcd8a6977ef0174ed2f978e05fe21cd5c5b33aaeebd9e3291091c3b3ca1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a569fcd8a6977ef0174ed2f978e05fe21cd5c5b33aaeebd9e3291091c3b3ca1e", kill_on_drop: false }` [INFO] [stdout] a569fcd8a6977ef0174ed2f978e05fe21cd5c5b33aaeebd9e3291091c3b3ca1e