[INFO] cloning repository https://github.com/sevenshi/async_examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sevenshi/async_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevenshi%2Fasync_examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevenshi%2Fasync_examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99c0f864073b318d50378b943551d6982d628043 [INFO] checking sevenshi/async_examples against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevenshi%2Fasync_examples" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sevenshi/async_examples on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sevenshi/async_examples [INFO] finished tweaking git repo https://github.com/sevenshi/async_examples [INFO] tweaked toml for git repo https://github.com/sevenshi/async_examples written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sevenshi/async_examples 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-ident v1.0.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.40 [INFO] [stderr] Downloaded quote v1.0.20 [INFO] [stderr] Downloaded syn v1.0.98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2431f78f2c04f0aa51e37c4dc9903f3bcfb3d3431b05c472730d0bee4293564c [INFO] running `Command { std: "docker" "start" "-a" "2431f78f2c04f0aa51e37c4dc9903f3bcfb3d3431b05c472730d0bee4293564c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2431f78f2c04f0aa51e37c4dc9903f3bcfb3d3431b05c472730d0bee4293564c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2431f78f2c04f0aa51e37c4dc9903f3bcfb3d3431b05c472730d0bee4293564c", kill_on_drop: false }` [INFO] [stdout] 2431f78f2c04f0aa51e37c4dc9903f3bcfb3d3431b05c472730d0bee4293564c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1efaeb778b921fd0a99adc8d57a9442cfb6ee1ed514ef79d39e9d39aa5d96a70 [INFO] running `Command { std: "docker" "start" "-a" "1efaeb778b921fd0a99adc8d57a9442cfb6ee1ed514ef79d39e9d39aa5d96a70", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking _02_02_future_trait v0.1.0 (/opt/rustwide/workdir/_02_02_future_trait) [INFO] [stderr] Checking _01_02_why_async v0.1.0 (/opt/rustwide/workdir/_01_02_why_async) [INFO] [stdout] error: associated type in `impl` without body [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Vec; [INFO] [stdout] | ^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the type: `= ;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'a` [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | impl SimpleFuture for SocketRead<'a> { [INFO] [stdout] | - ^^ undeclared lifetime [INFO] [stdout] | | [INFO] [stdout] | help: consider introducing lifetime `'a` here: `<'a>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Vec` is not a member of trait `SimpleFuture` [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ not a member of trait `SimpleFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^ expected 0 generic arguments [INFO] [stdout] | [INFO] [stdout] help: replace the generic bound with the associated type [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `Output` in `std::future::Future` must be specified [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^^^^ associated type `Output` must be specified [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: associated type in `impl` without body [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Vec; [INFO] [stdout] | ^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the type: `= ;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'a` [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | impl SimpleFuture for SocketRead<'a> { [INFO] [stdout] | - ^^ undeclared lifetime [INFO] [stdout] | | [INFO] [stdout] | help: consider introducing lifetime `'a` here: `<'a>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Vec` is not a member of trait `SimpleFuture` [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ not a member of trait `SimpleFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^ expected 0 generic arguments [INFO] [stdout] | [INFO] [stdout] help: replace the generic bound with the associated type [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `Output` in `std::future::Future` must be specified [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^^^^ associated type `Output` must be specified [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 95 | / if let Some(first) = &mut self.first { [INFO] [stdout] 96 | | match first.poll(wake){ [INFO] [stdout] 97 | | // We've completed the first future -- remove it and start on [INFO] [stdout] 98 | | // the second! [INFO] [stdout] 99 | | Poll::Ready(()) => self.first.take(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ expected `()`, found `Option` [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 102 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 103 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for dyn RealFuture { [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `Future` for all types that also implement `RealFuture` [INFO] [stdout] | [INFO] [stdout] 128 | impl> Future for T { [INFO] [stdout] | ++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0191, E0261, E0308, E0437, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 95 | / if let Some(first) = &mut self.first { [INFO] [stdout] 96 | | match first.poll(wake){ [INFO] [stdout] 97 | | // We've completed the first future -- remove it and start on [INFO] [stdout] 98 | | // the second! [INFO] [stdout] 99 | | Poll::Ready(()) => self.first.take(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ expected `()`, found `Option` [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 102 | }; [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 103 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `_02_02_future_trait` (lib) due to 8 previous errors [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> _02_02_future_trait/src/lib.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for RealFuture { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 128 | impl Future for dyn RealFuture { [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `Future` for all types that also implement `RealFuture` [INFO] [stdout] | [INFO] [stdout] 128 | impl> Future for T { [INFO] [stdout] | ++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0191, E0261, E0308, E0437, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `_02_02_future_trait` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "1efaeb778b921fd0a99adc8d57a9442cfb6ee1ed514ef79d39e9d39aa5d96a70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1efaeb778b921fd0a99adc8d57a9442cfb6ee1ed514ef79d39e9d39aa5d96a70", kill_on_drop: false }` [INFO] [stdout] 1efaeb778b921fd0a99adc8d57a9442cfb6ee1ed514ef79d39e9d39aa5d96a70