[INFO] fetching crate derive-io 0.5.0... [INFO] testing derive-io-0.5.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate derive-io 0.5.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate derive-io 0.5.0 [INFO] finished tweaking crates.io crate derive-io 0.5.0 [INFO] tweaked toml for crates.io crate derive-io 0.5.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate derive-io 0.5.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate derive-io 0.5.0 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-io-macros v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5eb0451038aa44ed3e20d1dae1a4d2b93778ffd8ad7b6146c6aa5cdb2a0380a1 [INFO] running `Command { std: "docker" "start" "-a" "5eb0451038aa44ed3e20d1dae1a4d2b93778ffd8ad7b6146c6aa5cdb2a0380a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5eb0451038aa44ed3e20d1dae1a4d2b93778ffd8ad7b6146c6aa5cdb2a0380a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5eb0451038aa44ed3e20d1dae1a4d2b93778ffd8ad7b6146c6aa5cdb2a0380a1", kill_on_drop: false }` [INFO] [stdout] 5eb0451038aa44ed3e20d1dae1a4d2b93778ffd8ad7b6146c6aa5cdb2a0380a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5db5a621bd9096c09ca2d015069f5110471ae4db22eb16a3c83297ed53fbce33 [INFO] running `Command { std: "docker" "start" "-a" "5db5a621bd9096c09ca2d015069f5110471ae4db22eb16a3c83297ed53fbce33", kill_on_drop: false }` [INFO] [stderr] Compiling derive-io-macros v0.5.0 [INFO] [stderr] Compiling derive-io v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "5db5a621bd9096c09ca2d015069f5110471ae4db22eb16a3c83297ed53fbce33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5db5a621bd9096c09ca2d015069f5110471ae4db22eb16a3c83297ed53fbce33", kill_on_drop: false }` [INFO] [stdout] 5db5a621bd9096c09ca2d015069f5110471ae4db22eb16a3c83297ed53fbce33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07051959001d1ed88cfe93439b18a87acb77174df901aea931b3c1d8b8ecb426 [INFO] running `Command { std: "docker" "start" "-a" "07051959001d1ed88cfe93439b18a87acb77174df901aea931b3c1d8b8ecb426", kill_on_drop: false }` [INFO] [stderr] Compiling derive-io v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "07051959001d1ed88cfe93439b18a87acb77174df901aea931b3c1d8b8ecb426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07051959001d1ed88cfe93439b18a87acb77174df901aea931b3c1d8b8ecb426", kill_on_drop: false }` [INFO] [stdout] 07051959001d1ed88cfe93439b18a87acb77174df901aea931b3c1d8b8ecb426 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c86bcea08ef42c2e6d811db446d28b943df5a0794cb5cc88ac4c9baa6e250deb [INFO] running `Command { std: "docker" "start" "-a" "c86bcea08ef42c2e6d811db446d28b943df5a0794cb5cc88ac4c9baa6e250deb", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/derive_io-f979395134531b93) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests derive_io [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - (line 105) ... FAILED [INFO] [stdout] test src/lib.rs - (line 134) ... FAILED [INFO] [stdout] test src/lib.rs - (line 166) ... FAILED [INFO] [stdout] test src/lib.rs - (line 55) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 153) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `derive_io::AsyncRead`, `derive_io::AsyncWrite` [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `AsyncWrite` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AsyncRead` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `read` in this scope [INFO] [stdout] --> src/lib.rs:159:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[read] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `read` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `write` in this scope [INFO] [stdout] --> src/lib.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[write] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `write` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] = note: `write` is in scope, but it is a function-like macro [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 105) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `derive_io::AsyncRead`, `derive_io::AsyncWrite` [INFO] [stdout] --> src/lib.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `AsyncWrite` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AsyncRead` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `duck` in this scope [INFO] [stdout] --> src/lib.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[duck(poll_read, poll_write, poll_flush, poll_shutdown, poll_write_vectored, is_write_vectored)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `duck` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead` and `AsyncWrite`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `read` in this scope [INFO] [stdout] --> src/lib.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[read(duck)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `read` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `write` in this scope [INFO] [stdout] --> src/lib.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[write(duck)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `write` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] = note: `write` is in scope, but it is a function-like macro [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 20 | buf: &mut tokio::io::ReadBuf<'_>, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 13 | inner: tokio::net::TcpStream, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::net; [INFO] [stdout] | [INFO] [stdout] help: if you import `net`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 13 - inner: tokio::net::TcpStream, [INFO] [stdout] 13 + inner: net::TcpStream, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 134) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::net::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `derive_io::AsyncRead`, `derive_io::AsyncWrite` [INFO] [stdout] --> src/lib.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 6 | use derive_io::{AsyncRead, AsyncWrite, AsSocketDescriptor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `AsyncWrite` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AsyncRead` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 14 | #[read] #[descriptor(as_ref)] read: tokio::net::tcp::OwnedReadHalf, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 15 | #[write] write: tokio::net::tcp::OwnedWriteHalf, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stdout] --> src/lib.rs:141:40 [INFO] [stdout] | [INFO] [stdout] 10 | Tcp(#[read] #[write] #[descriptor] TcpStream), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UnixStream` in this scope [INFO] [stdout] --> src/lib.rs:143:41 [INFO] [stdout] | [INFO] [stdout] 12 | Unix(#[read] #[write] #[descriptor] UnixStream), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::os::unix::net::UnixStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 166) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `derive_io::AsyncRead`, `derive_io::AsyncWrite` [INFO] [stdout] --> src/lib.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_io::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `AsyncWrite` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AsyncRead` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `read` in this scope [INFO] [stdout] --> src/lib.rs:172:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[read] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `read` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `write` in this scope [INFO] [stdout] --> src/lib.rs:173:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[write(poll_write=override_poll_write)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `write` is an attribute that can be used by the derive macros `AsFileDescriptor`, `AsSocketDescriptor`, `AsyncRead`, `AsyncWrite`, `BufRead`, `Read` and `Write`, you might be missing a `derive` attribute [INFO] [stdout] = note: `write` is in scope, but it is a function-like macro [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 11 | stream: tokio::net::TcpStream, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::net; [INFO] [stdout] | [INFO] [stdout] help: if you import `net`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 11 - stream: tokio::net::TcpStream, [INFO] [stdout] 11 + stream: net::TcpStream, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:178:29 [INFO] [stdout] | [INFO] [stdout] 15 | stm: std::pin::Pin<&mut tokio::net::TcpStream>, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::net; [INFO] [stdout] | [INFO] [stdout] help: if you import `net`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - stm: std::pin::Pin<&mut tokio::net::TcpStream>, [INFO] [stdout] 15 + stm: std::pin::Pin<&mut net::TcpStream>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 55) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `derive_io::AsyncRead`, `derive_io::AsyncWrite` [INFO] [stdout] --> src/lib.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_io::{AsyncRead, AsyncWrite, AsFileDescriptor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ no `AsyncWrite` in the root [INFO] [stdout] | | [INFO] [stdout] | no `AsyncRead` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "tokio")] [INFO] [stdout] | ----------------- the item is gated behind the `tokio` feature [INFO] [stdout] 7 | pub use derive_io_macros::{AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 8 | trait MyStream: tokio::io::AsyncRead + tokio::io::AsyncWrite [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:60:40 [INFO] [stdout] | [INFO] [stdout] 8 | trait MyStream: tokio::io::AsyncRead + tokio::io::AsyncWrite [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 105) [INFO] [stdout] src/lib.rs - (line 134) [INFO] [stdout] src/lib.rs - (line 153) [INFO] [stdout] src/lib.rs - (line 166) [INFO] [stdout] src/lib.rs - (line 55) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c86bcea08ef42c2e6d811db446d28b943df5a0794cb5cc88ac4c9baa6e250deb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c86bcea08ef42c2e6d811db446d28b943df5a0794cb5cc88ac4c9baa6e250deb", kill_on_drop: false }` [INFO] [stdout] c86bcea08ef42c2e6d811db446d28b943df5a0794cb5cc88ac4c9baa6e250deb