[INFO] cloning repository https://github.com/hwchen/example-wrap-stream [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hwchen/example-wrap-stream" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhwchen%2Fexample-wrap-stream", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhwchen%2Fexample-wrap-stream'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5096fbe05b89a3df201efe37048f62b034865139 [INFO] checking hwchen/example-wrap-stream against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhwchen%2Fexample-wrap-stream" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hwchen/example-wrap-stream on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hwchen/example-wrap-stream [INFO] finished tweaking git repo https://github.com/hwchen/example-wrap-stream [INFO] tweaked toml for git repo https://github.com/hwchen/example-wrap-stream written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hwchen/example-wrap-stream 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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking hwchen/example-wrap-stream against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhwchen%2Fexample-wrap-stream" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hwchen/example-wrap-stream on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hwchen/example-wrap-stream [INFO] finished tweaking git repo https://github.com/hwchen/example-wrap-stream [INFO] tweaked toml for git repo https://github.com/hwchen/example-wrap-stream written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hwchen/example-wrap-stream 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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arc-swap v0.4.5 [INFO] [stderr] Downloaded tokio v0.2.18 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45ffbc58c60d0fefe6180d5207c9a268d2dd1f40c5984b861dc5e1922d0b7a49 [INFO] running `Command { std: "docker" "start" "-a" "45ffbc58c60d0fefe6180d5207c9a268d2dd1f40c5984b861dc5e1922d0b7a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45ffbc58c60d0fefe6180d5207c9a268d2dd1f40c5984b861dc5e1922d0b7a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45ffbc58c60d0fefe6180d5207c9a268d2dd1f40c5984b861dc5e1922d0b7a49", kill_on_drop: false }` [INFO] [stdout] 45ffbc58c60d0fefe6180d5207c9a268d2dd1f40c5984b861dc5e1922d0b7a49 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc608bca56848e231a3a632fad32fba398de1aa9ab06b55ab7d0445f9907d225 [INFO] running `Command { std: "docker" "start" "-a" "bc608bca56848e231a3a632fad32fba398de1aa9ab06b55ab7d0445f9907d225", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking arc-swap v0.4.5 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.18 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking example-wrap-stream v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tokio02AsyncWriteCompatExt` [INFO] [stdout] --> src/main.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_util::compat::{Compat, Tokio02AsyncReadCompatExt, Tokio02AsyncWriteCompatExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tokio02AsyncWriteCompatExt` [INFO] [stdout] --> src/main.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_util::compat::{Compat, Tokio02AsyncReadCompatExt, Tokio02AsyncWriteCompatExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_read` found for struct `Compat` in the current scope [INFO] [stdout] --> src/main.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | (*self.0).poll_read(cx, buf) [INFO] [stdout] | ^^^^^^^^^ method not found in `Compat` [INFO] [stdout] | [INFO] [stdout] help: consider pinning the expression [INFO] [stdout] | [INFO] [stdout] 39 ~ let mut pinned = std::pin::pin!((*self.0)); [INFO] [stdout] 40 ~ pinned.as_mut().poll_read(cx, buf) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_write` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | Pin::new(&mut &*self.0).poll_write(cx, buf) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | / fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) [INFO] [stdout] 155 | | -> Poll>; [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_flush` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Pin::new(&mut &*self.0).poll_flush(cx) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_close` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | Pin::new(&mut &*self.0).poll_close(cx) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let stream = WrapStream(Arc::new(stream)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `listener` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let mut incoming = listener.incoming(); [INFO] [stdout] | ^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | let mut listener = TcpListener::bind(("127.0.0.1", 8080)).await?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_read` found for struct `Compat` in the current scope [INFO] [stdout] --> src/main.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | (*self.0).poll_read(cx, buf) [INFO] [stdout] | ^^^^^^^^^ method not found in `Compat` [INFO] [stdout] | [INFO] [stdout] help: consider pinning the expression [INFO] [stdout] | [INFO] [stdout] 39 ~ let mut pinned = std::pin::pin!((*self.0)); [INFO] [stdout] 40 ~ pinned.as_mut().poll_read(cx, buf) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_write` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | Pin::new(&mut &*self.0).poll_write(cx, buf) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | / fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) [INFO] [stdout] 155 | | -> Poll>; [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `example-wrap-stream` (bin "example-wrap-stream" test) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `poll_flush` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | Pin::new(&mut &*self.0).poll_flush(cx) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll_close` found for struct `Pin<&mut &Compat>` in the current scope [INFO] [stdout] --> src/main.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | Pin::new(&mut &*self.0).poll_close(cx) [INFO] [stdout] | ^^^^^^^^^^ method not found in `Pin<&mut &Compat>` [INFO] [stdout] | [INFO] [stdout] note: method is available for `Pin<&mut Compat>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.4/src/lib.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let stream = WrapStream(Arc::new(stream)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `listener` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let mut incoming = listener.incoming(); [INFO] [stdout] | ^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | let mut listener = TcpListener::bind(("127.0.0.1", 8080)).await?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `example-wrap-stream` (bin "example-wrap-stream") due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bc608bca56848e231a3a632fad32fba398de1aa9ab06b55ab7d0445f9907d225", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc608bca56848e231a3a632fad32fba398de1aa9ab06b55ab7d0445f9907d225", kill_on_drop: false }` [INFO] [stdout] bc608bca56848e231a3a632fad32fba398de1aa9ab06b55ab7d0445f9907d225