[INFO] cloning repository https://github.com/kaans/rumqttc_websocket_error [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kaans/rumqttc_websocket_error" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaans%2Frumqttc_websocket_error", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaans%2Frumqttc_websocket_error'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed2186cab7ffd098a1262eec7c0d32f3a0588610 [INFO] testing kaans/rumqttc_websocket_error against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaans%2Frumqttc_websocket_error" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kaans/rumqttc_websocket_error [INFO] finished tweaking git repo https://github.com/kaans/rumqttc_websocket_error [INFO] tweaked toml for git repo https://github.com/kaans/rumqttc_websocket_error written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kaans/rumqttc_websocket_error on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kaans/rumqttc_websocket_error 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-tungstenite v0.23.0 [INFO] [stderr] Downloaded rumqttc v0.23.0 [INFO] [stderr] Downloaded ws_stream_tungstenite v0.11.0 [INFO] [stderr] Downloaded syn v2.0.41 [INFO] [stderr] Downloaded tokio v1.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64760d2d0dd017854d5a97696a3211141edca2200227400094496ff6963ce5c7 [INFO] running `Command { std: "docker" "start" "-a" "64760d2d0dd017854d5a97696a3211141edca2200227400094496ff6963ce5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64760d2d0dd017854d5a97696a3211141edca2200227400094496ff6963ce5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64760d2d0dd017854d5a97696a3211141edca2200227400094496ff6963ce5c7", kill_on_drop: false }` [INFO] [stdout] 64760d2d0dd017854d5a97696a3211141edca2200227400094496ff6963ce5c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0646ff7e033ffee01f2a955643b0e8cda2ac966dc3389fd1096a73dfbe7ddb30 [INFO] running `Command { std: "docker" "start" "-a" "0646ff7e033ffee01f2a955643b0e8cda2ac966dc3389fd1096a73dfbe7ddb30", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling pharos v0.5.3 [INFO] [stderr] Compiling async_io_stream v0.3.3 [INFO] [stderr] Compiling ws_stream_tungstenite v0.11.0 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio v1.35.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling async-tungstenite v0.23.0 [INFO] [stderr] Compiling rumqttc v0.23.0 [INFO] [stderr] Compiling websocket_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / tokio::task::spawn(async move { [INFO] [stdout] 25 | | loop { [INFO] [stdout] 26 | | match event_loop.poll().await { [INFO] [stdout] 27 | | Ok(event) => { [INFO] [stdout] ... | [INFO] [stdout] 40 | | }) [INFO] [stdout] | |______^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn Fn(Request<()>) -> Pin>>>` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | match event_loop.poll().await { [INFO] [stdout] | ^^^^^^^^^^ has type `rumqttc::v5::EventLoop` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.0/src/task/spawn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 165 | where [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/websocket_test-8b7418a91080c2ec.long-type-1244153125247004945.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / tokio::task::spawn(async move { [INFO] [stdout] 25 | | loop { [INFO] [stdout] 26 | | match event_loop.poll().await { [INFO] [stdout] 27 | | Ok(event) => { [INFO] [stdout] ... | [INFO] [stdout] 40 | | }) [INFO] [stdout] | |______^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Send` is not implemented for `dyn Fn(Request<()>) -> Pin>>>` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | match event_loop.poll().await { [INFO] [stdout] | ^^^^^^^^^^ has type `rumqttc::v5::EventLoop` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.0/src/task/spawn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 165 | where [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/websocket_test-8b7418a91080c2ec.long-type-1244153125247004945.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn Future>` cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / tokio::task::spawn(async move { [INFO] [stdout] 25 | | loop { [INFO] [stdout] 26 | | match event_loop.poll().await { [INFO] [stdout] 27 | | Ok(event) => { [INFO] [stdout] ... | [INFO] [stdout] 40 | | }) [INFO] [stdout] | |______^ `dyn Future>` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Send` is not implemented for `dyn Future>` [INFO] [stdout] = note: required for `std::ptr::Unique>>` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box>>` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `Pin>>>` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/pin.rs:1092:11 [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rumqttc-0.23.0/src/v5/eventloop.rs:269:85 [INFO] [stdout] | [INFO] [stdout] 269 | async fn network_connect(options: &MqttOptions) -> Result { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 270 | | let mut max_incoming_pkt_size = Some(options.default_max_incoming_size); [INFO] [stdout] ... | [INFO] [stdout] 373 | | Ok(network) [INFO] [stdout] 374 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rumqttc-0.23.0/src/v5/eventloop.rs:254:93 [INFO] [stdout] | [INFO] [stdout] 254 | async fn connect(options: &mut MqttOptions) -> Result<(Network, Incoming), ConnectionError> { [INFO] [stdout] | _____________________________________________________________________________________________^ [INFO] [stdout] 255 | | // connect to the broker [INFO] [stdout] 256 | | let mut network = network_connect(options).await?; [INFO] [stdout] ... | [INFO] [stdout] 266 | | Ok((network, packet)) [INFO] [stdout] 267 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: required because it appears within the type `Timeout>>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.0/src/time/timeout.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | pub struct Timeout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rumqttc-0.23.0/src/v5/eventloop.rs:129:68 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn poll(&mut self) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 130 | | if self.network.is_none() { [INFO] [stdout] 131 | | let (network, connack) = time::timeout( [INFO] [stdout] 132 | | Duration::from_secs(self.options.connection_timeout()), [INFO] [stdout] ... | [INFO] [stdout] 152 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/main.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | tokio::task::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.0/src/task/spawn.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 165 | where [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/websocket_test-8b7418a91080c2ec.long-type-1749517839994055846.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `websocket_test` (bin "websocket_test") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "0646ff7e033ffee01f2a955643b0e8cda2ac966dc3389fd1096a73dfbe7ddb30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0646ff7e033ffee01f2a955643b0e8cda2ac966dc3389fd1096a73dfbe7ddb30", kill_on_drop: false }` [INFO] [stdout] 0646ff7e033ffee01f2a955643b0e8cda2ac966dc3389fd1096a73dfbe7ddb30