[INFO] cloning repository https://github.com/tachibanayui/stream-strainer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tachibanayui/stream-strainer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftachibanayui%2Fstream-strainer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftachibanayui%2Fstream-strainer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c82f125d44bb5ff6380027b45a1ddbcb7c2eb83 [INFO] checking tachibanayui/stream-strainer against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftachibanayui%2Fstream-strainer" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tachibanayui/stream-strainer [INFO] finished tweaking git repo https://github.com/tachibanayui/stream-strainer [INFO] tweaked toml for git repo https://github.com/tachibanayui/stream-strainer written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tachibanayui/stream-strainer on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tachibanayui/stream-strainer 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--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] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking tachibanayui/stream-strainer against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftachibanayui%2Fstream-strainer" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tachibanayui/stream-strainer [INFO] finished tweaking git repo https://github.com/tachibanayui/stream-strainer [INFO] tweaked toml for git repo https://github.com/tachibanayui/stream-strainer written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tachibanayui/stream-strainer on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tachibanayui/stream-strainer 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "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 extension-trait v1.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 998a68d728a7110b3e2c1ffb15994c4559629eecc0a1de34872355f7874fda00 [INFO] running `Command { std: "docker" "start" "-a" "998a68d728a7110b3e2c1ffb15994c4559629eecc0a1de34872355f7874fda00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "998a68d728a7110b3e2c1ffb15994c4559629eecc0a1de34872355f7874fda00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "998a68d728a7110b3e2c1ffb15994c4559629eecc0a1de34872355f7874fda00", kill_on_drop: false }` [INFO] [stdout] 998a68d728a7110b3e2c1ffb15994c4559629eecc0a1de34872355f7874fda00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d76ae26319210b8189364621a6904eb3c09c17ca221f5563f5079cbfcd660322 [INFO] running `Command { std: "docker" "start" "-a" "d76ae26319210b8189364621a6904eb3c09c17ca221f5563f5079cbfcd660322", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling extension-trait v1.0.2 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking stream-strainer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ErrorKind`, `SeekFrom`, and `self` [INFO] [stdout] --> src/lib.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, ErrorKind, SeekFrom}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PollFn` and `poll_fn` [INFO] [stdout] --> src/reader/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | future::{poll_fn, Future, PollFn}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/utils.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | io::{self, ErrorKind, Seek, SeekFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `SeekFrom`, and `self` [INFO] [stdout] --> src/lib.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, ErrorKind, SeekFrom}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `buf` and `reader::overlay_once::OverlayOnce` [INFO] [stdout] --> src/reader/overlay_list.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | use crate::{buf, reader::overlay_once::OverlayOnce}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/reader/overlay_list.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PollFn` and `poll_fn` [INFO] [stdout] --> src/reader/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | future::{poll_fn, Future, PollFn}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/utils.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | io::{self, ErrorKind, Seek, SeekFrom}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `pin_deref_mut` has been stable since 1.84.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(pin_deref_mut)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `pin_deref_mut` has been stable since 1.84.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(pin_deref_mut)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/limit.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 26 | | cx: &mut Context<'_>, [INFO] [stdout] 27 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 28 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/overlay_list.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | mut self: Pin<&mut Self>, [INFO] [stdout] | ___________________^ [INFO] [stdout] 34 | | cx: &mut Context<'_>, [INFO] [stdout] 35 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 36 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/overlay_list.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | mut self: Pin<&mut Self>, [INFO] [stdout] | ___________________^ [INFO] [stdout] 102 | | cx: &mut Context<'_>, [INFO] [stdout] 103 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 104 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/limit.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 26 | | cx: &mut Context<'_>, [INFO] [stdout] 27 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 28 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/shift.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 26 | | cx: &mut Context<'_>, [INFO] [stdout] 27 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 28 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/shift.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | ________________^ [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 56 | | pos: usize, [INFO] [stdout] | |___________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/overlay_list.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | mut self: Pin<&mut Self>, [INFO] [stdout] | ___________________^ [INFO] [stdout] 34 | | cx: &mut Context<'_>, [INFO] [stdout] 35 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 36 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/mod.rs:151:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] ... [INFO] [stdout] 151 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 152 | | cx: &mut Context<'_>, [INFO] [stdout] 153 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 154 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/overlay_list.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | mut self: Pin<&mut Self>, [INFO] [stdout] | ___________________^ [INFO] [stdout] 102 | | cx: &mut Context<'_>, [INFO] [stdout] 103 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 104 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/shift.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 26 | | cx: &mut Context<'_>, [INFO] [stdout] 27 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 28 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/shift.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | ________________^ [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 56 | | pos: usize, [INFO] [stdout] | |___________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] ::: src/reader/mod.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `poll_read` has 4 parameters but the declaration in trait `AsyncDataRead::poll_read` has 3 [INFO] [stdout] --> src/reader/mod.rs:151:15 [INFO] [stdout] | [INFO] [stdout] 53 | self: Pin<&mut Self>, [INFO] [stdout] | _______________- [INFO] [stdout] 54 | | cx: &mut Context<'_>, [INFO] [stdout] 55 | | buf: &mut impl DataReadBuf, [INFO] [stdout] | |_____________________________________________________- trait requires 3 parameters [INFO] [stdout] ... [INFO] [stdout] 151 | self: Pin<&mut Self>, [INFO] [stdout] | _______________^ [INFO] [stdout] 152 | | cx: &mut Context<'_>, [INFO] [stdout] 153 | | buf: &mut impl DataReadBuf, [INFO] [stdout] 154 | | pos: usize, [INFO] [stdout] | |__________________^ expected 3 parameters, found 4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/limit.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] | ^^^^^^^^^ --- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 32 - let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] 32 + let poll = ready!(this.0.poll_read(cx, &mut new_buf))?.filter(|x| x < this.1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/limit.rs:32:84 [INFO] [stdout] | [INFO] [stdout] 32 | let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] | ^^^^^^ expected `&u64`, found `&mut usize` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&u64` [INFO] [stdout] found mutable reference `&mut usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/limit.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] | ^^^^^^^^^ --- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 32 - let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] 32 + let poll = ready!(this.0.poll_read(cx, &mut new_buf))?.filter(|x| x < this.1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/limit.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/limit.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/limit.rs:32:84 [INFO] [stdout] | [INFO] [stdout] 32 | let poll = ready!(this.0.poll_read(cx, &mut new_buf, pos))?.filter(|x| x < this.1); [INFO] [stdout] | ^^^^^^ expected `&u64`, found `&mut usize` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&u64` [INFO] [stdout] found mutable reference `&mut usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/limit.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/limit.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/overlay_list.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | let next = ready!(r.poll_read(cx, &mut temp_buf, pos))?; [INFO] [stdout] | ^^^^^^^^^ --- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 43 - let next = ready!(r.poll_read(cx, &mut temp_buf, pos))?; [INFO] [stdout] 43 + let next = ready!(r.poll_read(cx, &mut temp_buf))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/limit.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/limit.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ---------------- ^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce::::new` [INFO] [stdout] --> src/reader/overlay_once.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> OverlayOnce { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce::::new` [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/limit.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------------------- unexpected argument #2 of type `[{integer}; 10]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 48 - let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] 48 + let source = OverlayOnce::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/limit.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/limit.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ss = Limit::new(source, 3); [INFO] [stdout] | ^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/limit.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ss = Limit::new(source, 3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:31:34 [INFO] [stdout] | [INFO] [stdout] 31 | let poll = ready!(this.0.poll_read(cx, buf, pos + *this.1))? [INFO] [stdout] | ^^^^^^^^^ ------------- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 31 - let poll = ready!(this.0.poll_read(cx, buf, pos + *this.1))? [INFO] [stdout] 31 + let poll = ready!(this.0.poll_read(cx, buf))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read_single_pass` exists for struct `limit::Limit>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/reader/limit.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Limit(#[pin] S, usize); [INFO] [stdout] | ------------------- method `read_single_pass` not found for this struct because it doesn't satisfy `_: AsyncDataRead` [INFO] [stdout] ... [INFO] [stdout] 51 | let next = ss [INFO] [stdout] | ____________________- [INFO] [stdout] 52 | | .read_single_pass(0, &mut buf) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^ method cannot be called on `limit::Limit>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/reader/overlay_once.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ----------------------------------------- doesn't satisfy `OverlayOnce<_, {integer}>: AsyncDataRead` [INFO] [stdout] | [INFO] [stdout] note: trait bound `OverlayOnce<_, {integer}>: AsyncDataRead` was not satisfied [INFO] [stdout] --> src/reader/limit.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl AsyncDataRead for Limit { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- -------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `AsyncDataRead` must be implemented [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsyncDataRead` defines an item `read_single_pass`, perhaps you need to implement it [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | .map(|x| x.checked_sub(*this.1).unwrap_or(0)); [INFO] [stdout] | ----------- ^^^^^^^ expected `u64`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/num/mod.rs:1151:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 32 | .map(|x| x.checked_sub((*this.1).try_into().unwrap()).unwrap_or(0)); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/shift.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:63:34 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^^^^^^^^^ ------ unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 63 - let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] 63 + let poll = ready!(this.0.poll_read(cx, buf))?.map(|x| x + *this.1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:63:75 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^^^^^^^ expected `u64`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/overlay_list.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | let next = ready!(r.poll_read(cx, &mut temp_buf, pos))?; [INFO] [stdout] | ^^^^^^^^^ --- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 43 - let next = ready!(r.poll_read(cx, &mut temp_buf, pos))?; [INFO] [stdout] 43 + let next = ready!(r.poll_read(cx, &mut temp_buf))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `usize` to `u64` [INFO] [stdout] --> src/reader/shift.rs:63:73 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^ no implementation for `u64 + usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `&u64` implements `Add` [INFO] [stdout] `&u64` implements `Add` [INFO] [stdout] `u64` implements `Add<&u64>` [INFO] [stdout] `u64` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/shift.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:103:22 [INFO] [stdout] | [INFO] [stdout] 103 | self.overlay(OverlayOnce::new(pos, data)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --- unexpected argument #1 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 103 - self.overlay(OverlayOnce::new(pos, data)) [INFO] [stdout] 103 + self.overlay(OverlayOnce::new(data)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] | ^^^^^^^^^^^^ --- unexpected argument #4 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 157 - S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] 157 + S::poll_read(pin_deref, cx, buf) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | ) -> Poll, Self::Err>> { [INFO] [stdout] | -------------------------------------- expected `Poll, ::Err>>` because of return type [INFO] [stdout] 156 | let pin_deref = Pin::as_deref_mut(self); [INFO] [stdout] 157 | S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Poll, ...>>`, found `Poll, ...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Poll, _>>` [INFO] [stdout] found enum `Poll, _>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:31:34 [INFO] [stdout] | [INFO] [stdout] 31 | let poll = ready!(this.0.poll_read(cx, buf, pos + *this.1))? [INFO] [stdout] | ^^^^^^^^^ ------------- unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 31 - let poll = ready!(this.0.poll_read(cx, buf, pos + *this.1))? [INFO] [stdout] 31 + let poll = ready!(this.0.poll_read(cx, buf))? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:190:24 [INFO] [stdout] | [INFO] [stdout] 190 | let poll = pin.poll_read(cx, fd.buf, fd.pos); [INFO] [stdout] | ^^^^^^^^^ ------ unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 190 - let poll = pin.poll_read(cx, fd.buf, fd.pos); [INFO] [stdout] 190 + let poll = pin.poll_read(cx, fd.buf); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/mod.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 181 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ------------------ expected `Poll, ::Err>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 195 | return poll; [INFO] [stdout] | ^^^^ expected `Poll, ...>>`, found `Poll, ...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Poll, _>>` [INFO] [stdout] found enum `Poll, _>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | .map(|x| x.checked_sub(*this.1).unwrap_or(0)); [INFO] [stdout] | ----------- ^^^^^^^ expected `u64`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/num/mod.rs:1151:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 32 | .map(|x| x.checked_sub((*this.1).try_into().unwrap()).unwrap_or(0)); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/shift.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:63:34 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^^^^^^^^^ ------ unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 63 - let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] 63 + let poll = ready!(this.0.poll_read(cx, buf))?.map(|x| x + *this.1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:63:75 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^^^^^^^ expected `u64`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `usize` to `u64` [INFO] [stdout] --> src/reader/shift.rs:63:73 [INFO] [stdout] | [INFO] [stdout] 63 | let poll = ready!(this.0.poll_read(cx, buf, offset))?.map(|x| x + *this.1); [INFO] [stdout] | ^ no implementation for `u64 + usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `&u64` implements `Add` [INFO] [stdout] `&u64` implements `Add` [INFO] [stdout] `u64` implements `Add<&u64>` [INFO] [stdout] `u64` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/shift.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | Poll::Ready(Ok(poll)) [INFO] [stdout] | -- ^^^^ expected `Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: the type constructed contains `Option` due to the type of the argument passed [INFO] [stdout] --> src/reader/shift.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | Poll::Ready(Ok(poll)) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fafe42c59556a4233f03dd0d900b575a9afeece8/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ---------------- ^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce::::new` [INFO] [stdout] --> src/reader/overlay_once.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> OverlayOnce { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce::::new` [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------------------- unexpected argument #2 of type `[{integer}; 10]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 80 - let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] 80 + let source = OverlayOnce::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unused_buf` [INFO] [stdout] --> src/reader/overlay_list.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | let mut unused_buf = buf.take(buf.capacity()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/reader/overlay_list.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | cx: &mut Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/reader/overlay_list.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pos: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader/overlay_list.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | mut self: Pin<&mut Self>, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader/overlay_list.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut unused_buf = buf.take(buf.capacity()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | let mut ss = ShiftLeft::new(source, 1); [INFO] [stdout] | ^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 81 | let mut ss = ShiftLeft::new(source, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read_single_pass` exists for struct `shift::ShiftLeft>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/reader/shift.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ShiftLeft(#[pin] S, usize); [INFO] [stdout] | ----------------------- method `read_single_pass` not found for this struct because it doesn't satisfy `_: AsyncDataRead` [INFO] [stdout] ... [INFO] [stdout] 83 | let next = ss [INFO] [stdout] | ____________________- [INFO] [stdout] 84 | | .read_single_pass(0, &mut buf) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^ method cannot be called on `shift::ShiftLeft>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/reader/overlay_once.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ----------------------------------------- doesn't satisfy `OverlayOnce<_, {integer}>: AsyncDataRead` [INFO] [stdout] | [INFO] [stdout] note: trait bound `OverlayOnce<_, {integer}>: AsyncDataRead` was not satisfied [INFO] [stdout] --> src/reader/shift.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl AsyncDataRead for ShiftLeft { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- ------------ [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `AsyncDataRead` must be implemented [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsyncDataRead` defines an item `read_single_pass`, perhaps you need to implement it [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | let source = OverlayOnce::new(10, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | let source = OverlayOnce::new(10, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ---------------- ^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce::::new` [INFO] [stdout] --> src/reader/overlay_once.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> OverlayOnce { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce::::new` [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | let source = OverlayOnce::new(10, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------------------- unexpected argument #2 of type `[{integer}; 10]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 94 - let source = OverlayOnce::new(10, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] 94 + let source = OverlayOnce::new(10); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | let source = OverlayOnce::new(10, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ss = ShiftLeft::new(source, 1); [INFO] [stdout] | ^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | let mut ss = ShiftLeft::new(source, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let rx = x as &dyn DataReadBuf; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read_single_pass` exists for struct `shift::ShiftLeft>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/reader/shift.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ShiftLeft(#[pin] S, usize); [INFO] [stdout] | ----------------------- method `read_single_pass` not found for this struct because it doesn't satisfy `_: AsyncDataRead` [INFO] [stdout] ... [INFO] [stdout] 97 | let next = ss [INFO] [stdout] | ____________________- [INFO] [stdout] 98 | | .read_single_pass(0, &mut buf) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^ method cannot be called on `shift::ShiftLeft>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/reader/overlay_once.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ----------------------------------------- doesn't satisfy `OverlayOnce<_, {integer}>: AsyncDataRead` [INFO] [stdout] | [INFO] [stdout] note: trait bound `OverlayOnce<_, {integer}>: AsyncDataRead` was not satisfied [INFO] [stdout] --> src/reader/shift.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | impl AsyncDataRead for ShiftLeft { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- ------------ [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `AsyncDataRead` must be implemented [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsyncDataRead` defines an item `read_single_pass`, perhaps you need to implement it [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 108 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:108:39 [INFO] [stdout] | [INFO] [stdout] 108 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ---------------- ^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce::::new` [INFO] [stdout] --> src/reader/overlay_once.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl> OverlayOnce { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce::::new` [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/shift.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 108 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ------------------------------- unexpected argument #2 of type `[{integer}; 10]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 108 - let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] 108 + let source = OverlayOnce::new(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0050, E0061, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0050`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 108 | let source = OverlayOnce::new(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | let mut ss = ShiftRight::new(source, 1); [INFO] [stdout] | ^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: Borrow<[_]>` is not satisfied [INFO] [stdout] --> src/reader/shift.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | let mut ss = ShiftRight::new(source, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Borrow<[_]>` is not implemented for `{integer}` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `OverlayOnce` [INFO] [stdout] --> src/reader/overlay_once.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `OverlayOnce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `read_single_pass` exists for struct `shift::ShiftRight>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/reader/shift.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct ShiftRight(#[pin] S, usize); [INFO] [stdout] | ------------------------ method `read_single_pass` not found for this struct because it doesn't satisfy `_: AsyncDataRead` [INFO] [stdout] ... [INFO] [stdout] 111 | let next = ss [INFO] [stdout] | ____________________- [INFO] [stdout] 112 | | .read_single_pass(0, &mut buf) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^ method cannot be called on `shift::ShiftRight>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/reader/overlay_once.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct OverlayOnce> { [INFO] [stdout] | ----------------------------------------- doesn't satisfy `OverlayOnce<_, {integer}>: AsyncDataRead` [INFO] [stdout] | [INFO] [stdout] note: trait bound `OverlayOnce<_, {integer}>: AsyncDataRead` was not satisfied [INFO] [stdout] --> src/reader/shift.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | impl AsyncDataRead for ShiftRight { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- ------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `AsyncDataRead` must be implemented [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsyncDataRead` defines an item `read_single_pass`, perhaps you need to implement it [INFO] [stdout] --> src/reader/mod.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait AsyncDataRead { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:103:22 [INFO] [stdout] | [INFO] [stdout] 103 | self.overlay(OverlayOnce::new(pos, data)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --- unexpected argument #1 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reader/overlay_once.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(data: C) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 103 - self.overlay(OverlayOnce::new(pos, data)) [INFO] [stdout] 103 + self.overlay(OverlayOnce::new(data)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] | ^^^^^^^^^^^^ --- unexpected argument #4 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 157 - S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] 157 + S::poll_read(pin_deref, cx, buf) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | ) -> Poll, Self::Err>> { [INFO] [stdout] | -------------------------------------- expected `Poll, ::Err>>` because of return type [INFO] [stdout] 156 | let pin_deref = Pin::as_deref_mut(self); [INFO] [stdout] 157 | S::poll_read(pin_deref, cx, buf, pos) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Poll, ...>>`, found `Poll, ...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Poll, _>>` [INFO] [stdout] found enum `Poll, _>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stream-strainer` (lib) due to 22 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0061]: this method takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/reader/mod.rs:190:24 [INFO] [stdout] | [INFO] [stdout] 190 | let poll = pin.poll_read(cx, fd.buf, fd.pos); [INFO] [stdout] | ^^^^^^^^^ ------ unexpected argument #3 of type `usize` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/reader/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn poll_read( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 190 - let poll = pin.poll_read(cx, fd.buf, fd.pos); [INFO] [stdout] 190 + let poll = pin.poll_read(cx, fd.buf); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/reader/mod.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 181 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ------------------ expected `Poll, ::Err>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 195 | return poll; [INFO] [stdout] | ^^^^ expected `Poll, ...>>`, found `Poll, ...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Poll, _>>` [INFO] [stdout] found enum `Poll, _>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unused_buf` [INFO] [stdout] --> src/reader/overlay_list.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | let mut unused_buf = buf.take(buf.capacity()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/reader/overlay_list.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | cx: &mut Context<'_>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/reader/overlay_list.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pos: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader/overlay_list.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | mut self: Pin<&mut Self>, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader/overlay_list.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut unused_buf = buf.take(buf.capacity()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let rx = x as &dyn DataReadBuf; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0050, E0061, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0050`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stream-strainer` (lib test) due to 50 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d76ae26319210b8189364621a6904eb3c09c17ca221f5563f5079cbfcd660322", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d76ae26319210b8189364621a6904eb3c09c17ca221f5563f5079cbfcd660322", kill_on_drop: false }` [INFO] [stdout] d76ae26319210b8189364621a6904eb3c09c17ca221f5563f5079cbfcd660322