[INFO] cloning repository https://github.com/sergorl/async_processing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sergorl/async_processing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsergorl%2Fasync_processing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsergorl%2Fasync_processing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab1775513892ea0a7c4ef343e956fd802dc50851 [INFO] checking sergorl/async_processing against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsergorl%2Fasync_processing" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sergorl/async_processing on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sergorl/async_processing [INFO] finished tweaking git repo https://github.com/sergorl/async_processing [INFO] tweaked toml for git repo https://github.com/sergorl/async_processing written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/sergorl/async_processing already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mio v0.6.13 [INFO] [stderr] Downloaded tokio-io v0.1.5 [INFO] [stderr] Downloaded tokio-core v0.1.12 [INFO] [stderr] Downloaded tokio v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad77d9399e813442dcd1b360bdf23461d47fee2d60d60a09f859c25d09175ce3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ad77d9399e813442dcd1b360bdf23461d47fee2d60d60a09f859c25d09175ce3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad77d9399e813442dcd1b360bdf23461d47fee2d60d60a09f859c25d09175ce3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad77d9399e813442dcd1b360bdf23461d47fee2d60d60a09f859c25d09175ce3", kill_on_drop: false }` [INFO] [stdout] ad77d9399e813442dcd1b360bdf23461d47fee2d60d60a09f859c25d09175ce3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d5bbff6344e2cb1663448414d07da6c748daee679fb0d513ecc1e7060981e2c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1d5bbff6344e2cb1663448414d07da6c748daee679fb0d513ecc1e7060981e2c", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking lazycell v0.6.0 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Checking net2 v0.2.31 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking bytes v0.4.6 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking tokio-io v0.1.5 [INFO] [stderr] Checking mio v0.6.13 [INFO] [stderr] Checking tokio-core v0.1.12 [INFO] [stderr] Checking tokio v0.1.0 [INFO] [stderr] Checking tokio-proto v0.1.1 [INFO] [stderr] Checking async_processing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `timeout` in this scope [INFO] [stdout] --> src/lib.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | let timeout = timeout(Duration::new(time_out, 0)).map(Err); [INFO] [stdout] | ^^^^^^^ help: a local variable with a similar name exists: `time_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_core::reactor::Timeout` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_core::reactor::Timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/lib.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | use futures::future::{Executor, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_io::io::copy` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use tokio_io::io::copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `timeout` in this scope [INFO] [stdout] --> src/lib.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | let timeout = timeout(Duration::new(time_out, 0)).map(Err); [INFO] [stdout] | ^^^^^^^ help: a local variable with a similar name exists: `time_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_core::reactor::Timeout` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio_core::reactor::Timeout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/lib.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | use futures::future::{Executor, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_io::io::copy` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use tokio_io::io::copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `select` exists for closure `[closure@src/lib.rs:195:24: 200:18]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:204:29 [INFO] [stdout] | [INFO] [stdout] 195 | let counting = move || { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `_: futures::Future` [INFO] [stdout] | doesn't satisfy `_: futures::Stream` [INFO] [stdout] ... [INFO] [stdout] 204 | let task = counting.select(timeout).then(|result| { [INFO] [stdout] | ^^^^^^ method cannot be called on `[closure@src/lib.rs:195:24: 200:18]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: `counting` is a function, perhaps you wish to call it [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[closure@src/lib.rs:195:24: 200:18]: futures::Future` [INFO] [stdout] which is required by `&mut [closure@src/lib.rs:195:24: 200:18]: futures::Future` [INFO] [stdout] `[closure@src/lib.rs:195:24: 200:18]: futures::Stream` [INFO] [stdout] which is required by `&mut [closure@src/lib.rs:195:24: 200:18]: futures::Stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:223:21 [INFO] [stdout] | [INFO] [stdout] 205 | match result { [INFO] [stdout] | ------ this expression has type `Result<(Option<_>, _), _>` [INFO] [stdout] ... [INFO] [stdout] 223 | Ok((Err(_timeout), _other_future)) => { [INFO] [stdout] | ^^^^^^^^^^^^^ expected enum `Option`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `SplitStream` in the current scope [INFO] [stdout] --> src/lib.rs:211:32 [INFO] [stdout] | [INFO] [stdout] 211 | writer.write_all(b"Error: counting is less than thresh!\n") [INFO] [stdout] | ^^^^^^^^^ method not found in `SplitStream>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_fmt` found for struct `SplitStream` in the current scope [INFO] [stdout] --> src/lib.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 215 | ... writer.write_fmt(format_args!("Time elapsed is {} sec {} ns.\n", time_count.secs, time_count.nanos)) [INFO] [stdout] | ^^^^^^^^^ method not found in `SplitStream>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::prelude` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use futures::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_processing` due to 6 previous errors; 5 warnings emitted [INFO] [stdout] error[E0599]: the method `select` exists for closure `[closure@src/lib.rs:195:24: 200:18]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:204:29 [INFO] [stdout] | [INFO] [stdout] 195 | let counting = move || { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `_: futures::Future` [INFO] [stdout] | doesn't satisfy `_: futures::Stream` [INFO] [stdout] ... [INFO] [stdout] 204 | let task = counting.select(timeout).then(|result| { [INFO] [stdout] | ^^^^^^ method cannot be called on `[closure@src/lib.rs:195:24: 200:18]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: `counting` is a function, perhaps you wish to call it [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `[closure@src/lib.rs:195:24: 200:18]: futures::Future` [INFO] [stdout] which is required by `&mut [closure@src/lib.rs:195:24: 200:18]: futures::Future` [INFO] [stdout] `[closure@src/lib.rs:195:24: 200:18]: futures::Stream` [INFO] [stdout] which is required by `&mut [closure@src/lib.rs:195:24: 200:18]: futures::Stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:223:21 [INFO] [stdout] | [INFO] [stdout] 205 | match result { [INFO] [stdout] | ------ this expression has type `Result<(Option<_>, _), _>` [INFO] [stdout] ... [INFO] [stdout] 223 | Ok((Err(_timeout), _other_future)) => { [INFO] [stdout] | ^^^^^^^^^^^^^ expected enum `Option`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `SplitStream` in the current scope [INFO] [stdout] --> src/lib.rs:211:32 [INFO] [stdout] | [INFO] [stdout] 211 | writer.write_all(b"Error: counting is less than thresh!\n") [INFO] [stdout] | ^^^^^^^^^ method not found in `SplitStream>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_fmt` found for struct `SplitStream` in the current scope [INFO] [stdout] --> src/lib.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 215 | ... writer.write_fmt(format_args!("Time elapsed is {} sec {} ns.\n", time_count.secs, time_count.nanos)) [INFO] [stdout] | ^^^^^^^^^ method not found in `SplitStream>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::prelude` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use futures::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1d5bbff6344e2cb1663448414d07da6c748daee679fb0d513ecc1e7060981e2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d5bbff6344e2cb1663448414d07da6c748daee679fb0d513ecc1e7060981e2c", kill_on_drop: false }` [INFO] [stdout] 1d5bbff6344e2cb1663448414d07da6c748daee679fb0d513ecc1e7060981e2c