[INFO] fetching crate stream_multiplexer 0.16.1... [INFO] checking stream_multiplexer-0.16.1 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] extracting crate stream_multiplexer 0.16.1 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate stream_multiplexer 0.16.1 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate stream_multiplexer 0.16.1 [INFO] finished tweaking crates.io crate stream_multiplexer 0.16.1 [INFO] tweaked toml for crates.io crate stream_multiplexer 0.16.1 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b5f5cad90dfe4e54550b1b5e85853b532995a876adde9cc5b11f54dfee4f9a6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1b5f5cad90dfe4e54550b1b5e85853b532995a876adde9cc5b11f54dfee4f9a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b5f5cad90dfe4e54550b1b5e85853b532995a876adde9cc5b11f54dfee4f9a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b5f5cad90dfe4e54550b1b5e85853b532995a876adde9cc5b11f54dfee4f9a6", kill_on_drop: false }` [INFO] [stdout] 1b5f5cad90dfe4e54550b1b5e85853b532995a876adde9cc5b11f54dfee4f9a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5ede25c5722668e52aecc15dbeb44c8b3e51356409a533f89f78ef57d80f5aa0 [INFO] running `Command { std: "docker" "start" "-a" "5ede25c5722668e52aecc15dbeb44c8b3e51356409a533f89f78ef57d80f5aa0", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking futures-io v0.3.13 [INFO] [stderr] Checking fastrand v1.4.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking async-task v3.0.0 [INFO] [stderr] Checking vec-arena v0.5.2 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking parking v1.0.6 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking easy-parallel v3.1.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking sharded-slab v0.0.9 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking multitask v0.2.0 [INFO] [stderr] Checking alto_logger v0.3.7 [INFO] [stderr] Checking futures-lite v0.1.11 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking blocking v0.5.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking polling v0.1.9 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Compiling syn v1.0.63 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking async-io v0.1.11 [INFO] [stderr] Checking async-executor v0.1.2 [INFO] [stderr] Checking smol v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking stream_multiplexer v0.16.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0453]: warn(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 78 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] ... [INFO] [stdout] 86 | unsafe_code, [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0453]: warn(unsafe_code) incompatible with previous forbid [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 78 | #![forbid(unsafe_code)] [INFO] [stdout] | ----------- `forbid` level set here [INFO] [stdout] ... [INFO] [stdout] 86 | unsafe_code, [INFO] [stdout] | ^^^^^^^^^^^ overruled by previous forbid [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:355:33 [INFO] [stdout] | [INFO] [stdout] 341 | match self.channels.get(&channel_id) { [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] 355 | self.process_add_channel(add_res)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 363 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Option>, async_mutex::Mutex>)>>` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 341 | let x = match self.channels.get(&channel_id) { [INFO] [stdout] 342 | Some(channel_guard) => { [INFO] [stdout] 343 | log::debug!("recv({}) before loop {{}}", channel_id); [INFO] [stdout] 344 | let mut channel = channel_guard.value().1.lock().await; [INFO] [stdout] 345 | loop { [INFO] [stdout] 346 | log::debug!("recv({}) awaiting the select", channel_id); [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:355:33 [INFO] [stdout] | [INFO] [stdout] 341 | match self.channels.get(&channel_id) { [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] 355 | self.process_add_channel(add_res)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 363 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Option>, async_mutex::Mutex>)>>` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 341 | let x = match self.channels.get(&channel_id) { [INFO] [stdout] 342 | Some(channel_guard) => { [INFO] [stdout] 343 | log::debug!("recv({}) before loop {{}}", channel_id); [INFO] [stdout] 344 | let mut channel = channel_guard.value().1.lock().await; [INFO] [stdout] 345 | loop { [INFO] [stdout] 346 | log::debug!("recv({}) awaiting the select", channel_id); [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn remove_channel(&mut self, channel: ChannelId) -> bool { [INFO] [stdout] | ---- expected `bool` because of return type [INFO] [stdout] 207 | // FIXME: What do we do with the sockets in that channel? [INFO] [stdout] 208 | self.channels.remove(&channel) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option<(usize, (async_channel::Sender>, async_mutex::Mutex>))>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn remove_channel(&mut self, channel: ChannelId) -> bool { [INFO] [stdout] | ---- expected `bool` because of return type [INFO] [stdout] 207 | // FIXME: What do we do with the sockets in that channel? [INFO] [stdout] 208 | self.channels.remove(&channel) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option<(usize, (async_channel::Sender>, async_mutex::Mutex>))>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0453, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stream_multiplexer` [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0308, E0453, E0502. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "5ede25c5722668e52aecc15dbeb44c8b3e51356409a533f89f78ef57d80f5aa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ede25c5722668e52aecc15dbeb44c8b3e51356409a533f89f78ef57d80f5aa0", kill_on_drop: false }` [INFO] [stdout] 5ede25c5722668e52aecc15dbeb44c8b3e51356409a533f89f78ef57d80f5aa0