[INFO] cloning repository https://github.com/Sumit0673/chat_with_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sumit0673/chat_with_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSumit0673%2Fchat_with_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSumit0673%2Fchat_with_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39777b9ee4ad773c18c50b070640791821b8bbf5 [INFO] checking Sumit0673/chat_with_rust/39777b9ee4ad773c18c50b070640791821b8bbf5 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSumit0673%2Fchat_with_rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sumit0673/chat_with_rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sumit0673/chat_with_rust [INFO] finished tweaking git repo https://github.com/Sumit0673/chat_with_rust [INFO] tweaked toml for git repo https://github.com/Sumit0673/chat_with_rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Sumit0673/chat_with_rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf-8 v0.7.5 [INFO] [stderr] Downloaded headers-core v0.2.0 [INFO] [stderr] Downloaded warp v0.3.3 [INFO] [stderr] Downloaded rustls-pemfile v0.2.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded base64 v0.12.1 [INFO] [stderr] Downloaded buf_redux v0.8.4 [INFO] [stderr] Downloaded headers v0.3.2 [INFO] [stderr] Downloaded multipart v0.18.0 [INFO] [stderr] Downloaded twoway v0.1.8 [INFO] [stderr] Downloaded serde_derive v1.0.111 [INFO] [stderr] Downloaded bytes v1.2.0 [INFO] [stderr] Downloaded h2 v0.3.17 [INFO] [stderr] Downloaded hyper v0.14.5 [INFO] [stderr] Downloaded arc-swap v0.4.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5f30657682b3e7322ef2032c4b03d7207b8ec2930b9d7198b60b2f5b600f0fb [INFO] running `Command { std: "docker" "start" "-a" "b5f30657682b3e7322ef2032c4b03d7207b8ec2930b9d7198b60b2f5b600f0fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5f30657682b3e7322ef2032c4b03d7207b8ec2930b9d7198b60b2f5b600f0fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5f30657682b3e7322ef2032c4b03d7207b8ec2930b9d7198b60b2f5b600f0fb", kill_on_drop: false }` [INFO] [stdout] b5f30657682b3e7322ef2032c4b03d7207b8ec2930b9d7198b60b2f5b600f0fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34a400cb2d7763f7a4364dc3ebe2bfd10599cc86be2242cd7a37d6d04300e973 [INFO] running `Command { std: "docker" "start" "-a" "34a400cb2d7763f7a4364dc3ebe2bfd10599cc86be2242cd7a37d6d04300e973", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking arc-swap v0.4.8 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking cpufeatures v0.2.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking base64 v0.12.1 [INFO] [stderr] Checking itoa v1.0.5 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking rustls-pemfile v0.2.1 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking headers v0.3.2 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking multipart v0.18.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.4 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [INFO] [stderr] Checking h2 v0.3.17 [INFO] [stderr] Checking tokio-stream v0.1.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking uuid v1.9.1 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking hyper v0.14.5 [INFO] [stderr] Checking warp v0.3.3 [INFO] [stderr] Checking rusty-chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: the method `map` exists for struct `UnboundedReceiver<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/server.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | rx.map(|message| Ok(message)).forward(ws_sink).await.unwrap(); [INFO] [stdout] | ^^^ method cannot be called on `UnboundedReceiver<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.25.0/src/sync/mpsc/unbounded.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct UnboundedReceiver { [INFO] [stdout] | ------------------------------- doesn't satisfy 5 bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `&tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `&tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `&tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `&mut tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `&mut tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: Iterator` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | .write_output(BroadcastStream::new(output_receiver)) [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let writing = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 93 | | .write_output(BroadcastStream::new(output_receiver)) [INFO] [stdout] 94 | | .try_for_each(|message| async { [INFO] [stdout] 95 | | tx.send(Ok(message)).unwrap(); [INFO] [stdout] 96 | | Ok(()) [INFO] [stdout] 97 | | }); [INFO] [stdout] | |______________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_into` found for type `u128` in the current scope [INFO] [stdout] --> src/server.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | hub.on_disconnect(client.id.as_u128().try_into().unwrap()).await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:611:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `u128` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021 [INFO] [stdout] help: trait `TryInto` which provides `try_into` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::convert::TryInto; [INFO] [stdout] | [INFO] [stdout] help: there is a method `into` with a similar name [INFO] [stdout] | [INFO] [stdout] 106 | hub.on_disconnect(client.id.as_u128().into().unwrap()).await; [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `map` exists for struct `UnboundedReceiver<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/server.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | rx.map(|message| Ok(message)).forward(ws_sink).await.unwrap(); [INFO] [stdout] | ^^^ method cannot be called on `UnboundedReceiver<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.25.0/src/sync/mpsc/unbounded.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct UnboundedReceiver { [INFO] [stdout] | ------------------------------- doesn't satisfy 5 bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `&tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `&tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `&tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `&mut tokio::sync::mpsc::UnboundedReceiver<_>: Stream` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: futures::StreamExt` [INFO] [stdout] `&mut tokio::sync::mpsc::UnboundedReceiver<_>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: warp::Filter` [INFO] [stdout] `tokio::sync::mpsc::UnboundedReceiver<_>: Iterator` [INFO] [stdout] which is required by `&mut tokio::sync::mpsc::UnboundedReceiver<_>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | .write_output(BroadcastStream::new(output_receiver)) [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let writing = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 93 | | .write_output(BroadcastStream::new(output_receiver)) [INFO] [stdout] 94 | | .try_for_each(|message| async { [INFO] [stdout] 95 | | tx.send(Ok(message)).unwrap(); [INFO] [stdout] 96 | | Ok(()) [INFO] [stdout] 97 | | }); [INFO] [stdout] | |______________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Stream>::Item == Result` [INFO] [stdout] --> src/server.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | if let Err(err) = tokio::select! { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 100 | | result = reading => result, [INFO] [stdout] 101 | | result = writing => result, [INFO] [stdout] 102 | | } { [INFO] [stdout] | |_________^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: required by a bound in `client::Client::write_output` [INFO] [stdout] --> src/client.rs:55:61 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn write_output(&self, stream: S) -> impl Stream> [INFO] [stdout] | ------------ required by a bound in this associated function [INFO] [stdout] 54 | where [INFO] [stdout] 55 | S: TryStream + Stream>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::write_output` [INFO] [stdout] = note: this error originates in the macro `$crate::select` which comes from the expansion of the macro `tokio::select` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_into` found for type `u128` in the current scope [INFO] [stdout] --> src/server.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | hub.on_disconnect(client.id.as_u128().try_into().unwrap()).await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:611:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `u128` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021 [INFO] [stdout] help: trait `TryInto` which provides `try_into` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::convert::TryInto; [INFO] [stdout] | [INFO] [stdout] help: there is a method `into` with a similar name [INFO] [stdout] | [INFO] [stdout] 106 | hub.on_disconnect(client.id.as_u128().into().unwrap()).await; [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-chat` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-chat` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "34a400cb2d7763f7a4364dc3ebe2bfd10599cc86be2242cd7a37d6d04300e973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34a400cb2d7763f7a4364dc3ebe2bfd10599cc86be2242cd7a37d6d04300e973", kill_on_drop: false }` [INFO] [stdout] 34a400cb2d7763f7a4364dc3ebe2bfd10599cc86be2242cd7a37d6d04300e973