[INFO] fetching crate actix-server 2.3.0... [INFO] checking actix-server-2.3.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-2 [INFO] extracting crate actix-server 2.3.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate actix-server 2.3.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-server 2.3.0 [INFO] finished tweaking crates.io crate actix-server 2.3.0 [INFO] tweaked toml for crates.io crate actix-server 2.3.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate crates.io crate actix-server 2.3.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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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] 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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf0bdab636c77a46c7a12adc9c9b97f68e0cc5f84d459f807ed6241056953280 [INFO] running `Command { std: "docker" "start" "-a" "cf0bdab636c77a46c7a12adc9c9b97f68e0cc5f84d459f807ed6241056953280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf0bdab636c77a46c7a12adc9c9b97f68e0cc5f84d459f807ed6241056953280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf0bdab636c77a46c7a12adc9c9b97f68e0cc5f84d459f807ed6241056953280", kill_on_drop: false }` [INFO] [stdout] cf0bdab636c77a46c7a12adc9c9b97f68e0cc5f84d459f807ed6241056953280 [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17921560b5f977d211c53e4e8fbd7d607044b4387131c9b88c2bdc47c41cd5cc [INFO] running `Command { std: "docker" "start" "-a" "17921560b5f977d211c53e4e8fbd7d607044b4387131c9b88c2bdc47c41cd5cc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking local-waker v0.1.3 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking actix-server v2.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> src/join_all.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/test_server.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> src/test_server.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `actix_codec` [INFO] [stdout] --> tests/server.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | use actix_codec::{BytesCodec, Framed}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `actix_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> tests/server.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | use bytes::Bytes; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures_util::sink` [INFO] [stdout] --> tests/server.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | use futures_util::sink::SinkExt; [INFO] [stdout] | ^^^^ could not find `sink` in `futures_util` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/src/lib.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub mod sink; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `sink` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AsyncWrite` [INFO] [stdout] | no `AsyncWriteExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AsyncWrite` [INFO] [stdout] | no `AsyncWriteExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:359:21 [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncRead, AsyncWriteExt}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncReadExt, AsyncWrite}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `poll` in `futures_util` [INFO] [stdout] --> tests/server.rs:527:31 [INFO] [stdout] | [INFO] [stdout] 527 | let _ = futures_util::poll!(&mut srv); [INFO] [stdout] | ^^^^ could not find `poll` in `futures_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures_util::SinkExt` [INFO] [stdout] --> examples/file-reader.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{SinkExt as _, StreamExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^ no `SinkExt` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/src/lib.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub use crate::sink::{Sink, SinkExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `sink` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::fs`, `tokio::io::AsyncReadExt` [INFO] [stdout] --> examples/file-reader.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio::{fs::File, io::AsyncReadExt as _}; [INFO] [stdout] | ^^ ^^^^------------^^^^^ [INFO] [stdout] | | | | [INFO] [stdout] | | | help: a similar name exists in the module: `AsyncRead` [INFO] [stdout] | | no `AsyncReadExt` in `io` [INFO] [stdout] | could not find `fs` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/lib.rs:497:13 [INFO] [stdout] | [INFO] [stdout] 497 | pub mod fs; [INFO] [stdout] | ^^ [INFO] [stdout] = note: the item is gated behind the `fs` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_codec` [INFO] [stdout] --> examples/file-reader.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use actix_codec::{Framed, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `actix_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> examples/file-reader.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/file-reader.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/file-reader.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> examples/tcp-echo.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncRead as _, AsyncWriteExt as _}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncReadExt as _, AsyncWrite as _}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> examples/tcp-echo.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> examples/tcp-echo.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | conn.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/file-reader.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> examples/file-reader.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{SinkExt as _, StreamExt as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/tcp-echo.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/testing_server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncRead as _, AsyncWriteExt as _}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt as _, AsyncWrite as _}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> tests/testing_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> tests/testing_server.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> tests/testing_server.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/tcp-echo.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (example "file-reader") due to 8 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:334:14 [INFO] [stdout] | [INFO] [stdout] 331 | / TcpStream::connect(addr1) [INFO] [stdout] 332 | | .await [INFO] [stdout] 333 | | .unwrap() [INFO] [stdout] 334 | | .shutdown() [INFO] [stdout] | | -^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:340:14 [INFO] [stdout] | [INFO] [stdout] 337 | / TcpStream::connect(addr2) [INFO] [stdout] 338 | | .await [INFO] [stdout] 339 | | .unwrap() [INFO] [stdout] 340 | | .shutdown() [INFO] [stdout] | | -^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_buf` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_buf` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> examples/tcp-echo.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:441:20 [INFO] [stdout] | [INFO] [stdout] 441 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 441 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:448:20 [INFO] [stdout] | [INFO] [stdout] 448 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 448 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | await_timeout_ms!(conn.write_all(b"test"), 200); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:455:20 [INFO] [stdout] | [INFO] [stdout] 455 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 455 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_end` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | await_timeout_ms!(conn.read_to_end(&mut buf), 200); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> examples/tcp-echo.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 458 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/tcp-echo.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (example "tcp-echo") due to 9 previous errors [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:465:20 [INFO] [stdout] | [INFO] [stdout] 465 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 465 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_exact` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | sock.read_exact(&mut buf).await [INFO] [stdout] | ^^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (test "testing_server") due to 10 previous errors [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 468 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:475:20 [INFO] [stdout] | [INFO] [stdout] 475 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 475 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:478:12 [INFO] [stdout] | [INFO] [stdout] 478 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:485:20 [INFO] [stdout] | [INFO] [stdout] 485 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 485 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:488:12 [INFO] [stdout] | [INFO] [stdout] 488 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (test "server") due to 26 previous errors [INFO] running `Command { std: "docker" "inspect" "17921560b5f977d211c53e4e8fbd7d607044b4387131c9b88c2bdc47c41cd5cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17921560b5f977d211c53e4e8fbd7d607044b4387131c9b88c2bdc47c41cd5cc", kill_on_drop: false }` [INFO] [stdout] 17921560b5f977d211c53e4e8fbd7d607044b4387131c9b88c2bdc47c41cd5cc [INFO] checking actix-server-2.3.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-2 [INFO] extracting crate actix-server 2.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate actix-server 2.3.0 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-server 2.3.0 [INFO] finished tweaking crates.io crate actix-server 2.3.0 [INFO] tweaked toml for crates.io crate actix-server 2.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate actix-server 2.3.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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c77383a70a7ac272b3b8e9eb51a4d75d983b54c931b1b7470f5bae676b7235b7 [INFO] running `Command { std: "docker" "start" "-a" "c77383a70a7ac272b3b8e9eb51a4d75d983b54c931b1b7470f5bae676b7235b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c77383a70a7ac272b3b8e9eb51a4d75d983b54c931b1b7470f5bae676b7235b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c77383a70a7ac272b3b8e9eb51a4d75d983b54c931b1b7470f5bae676b7235b7", kill_on_drop: false }` [INFO] [stdout] c77383a70a7ac272b3b8e9eb51a4d75d983b54c931b1b7470f5bae676b7235b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbdc1acdee318291d6cbeee48ebc023403c5c88db2a9ca44b140d49729e29b86 [INFO] running `Command { std: "docker" "start" "-a" "bbdc1acdee318291d6cbeee48ebc023403c5c88db2a9ca44b140d49729e29b86", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking local-waker v0.1.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking actix-server v2.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/file-reader.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> src/join_all.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/test_server.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> src/test_server.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Migrating tests/server.rs from 2021 edition to 2024 [INFO] [stdout] error[E0432]: unresolved import `futures_util::SinkExt` [INFO] [stdout] --> examples/file-reader.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{SinkExt as _, StreamExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^ no `SinkExt` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/src/lib.rs:307:29 [INFO] [stdout] | [INFO] [stdout] 307 | pub use crate::sink::{Sink, SinkExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `sink` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::fs`, `tokio::io::AsyncReadExt` [INFO] [stdout] --> examples/file-reader.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use tokio::{fs::File, io::AsyncReadExt as _}; [INFO] [stdout] | ^^ ^^^^------------^^^^^ [INFO] [stdout] | | | | [INFO] [stdout] | | | help: a similar name exists in the module: `AsyncRead` [INFO] [stdout] | | no `AsyncReadExt` in `io` [INFO] [stdout] | could not find `fs` in `tokio` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/lib.rs:497:13 [INFO] [stdout] | [INFO] [stdout] 497 | pub mod fs; [INFO] [stdout] | ^^ [INFO] [stdout] = note: the item is gated behind the `fs` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_codec` [INFO] [stdout] --> examples/file-reader.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use actix_codec::{Framed, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `actix_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> examples/file-reader.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/file-reader.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/file-reader.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/file-reader.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> examples/file-reader.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{SinkExt as _, StreamExt as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (example "file-reader") due to 8 previous errors; 1 warning emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] Migrating tests/testing_server.rs from 2021 edition to 2024 [INFO] [stdout] error[E0432]: unresolved import `actix_codec` [INFO] [stdout] --> tests/server.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | use actix_codec::{BytesCodec, Framed}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `actix_codec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> tests/server.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | use bytes::Bytes; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures_util::sink` [INFO] [stdout] --> tests/server.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | use futures_util::sink::SinkExt; [INFO] [stdout] | ^^^^ could not find `sink` in `futures_util` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/src/lib.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub mod sink; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `sink` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AsyncWrite` [INFO] [stdout] | no `AsyncWriteExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AsyncWrite` [INFO] [stdout] | no `AsyncWriteExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/server.rs:359:21 [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncRead, AsyncWriteExt}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 359 | use tokio::io::{AsyncReadExt, AsyncWrite}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> tests/server.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/actix-rt-2.9.0/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | pub use actix_macros::test; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: the item is gated behind the `macros` feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `poll` in `futures_util` [INFO] [stdout] --> tests/server.rs:527:31 [INFO] [stdout] | [INFO] [stdout] 527 | let _ = futures_util::poll!(&mut srv); [INFO] [stdout] | ^^^^ could not find `poll` in `futures_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | conn.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:334:14 [INFO] [stdout] | [INFO] [stdout] 331 | / TcpStream::connect(addr1) [INFO] [stdout] 332 | | .await [INFO] [stdout] 333 | | .unwrap() [INFO] [stdout] 334 | | .shutdown() [INFO] [stdout] | | -^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:340:14 [INFO] [stdout] | [INFO] [stdout] 337 | / TcpStream::connect(addr2) [INFO] [stdout] 338 | | .await [INFO] [stdout] 339 | | .unwrap() [INFO] [stdout] 340 | | .shutdown() [INFO] [stdout] | | -^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:441:20 [INFO] [stdout] | [INFO] [stdout] 441 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 441 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:448:20 [INFO] [stdout] | [INFO] [stdout] 448 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 448 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:455:20 [INFO] [stdout] | [INFO] [stdout] 455 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 455 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (test "server") due to 26 previous errors [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 458 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:465:20 [INFO] [stdout] | [INFO] [stdout] 465 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 465 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 468 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:475:20 [INFO] [stdout] | [INFO] [stdout] 475 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 475 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:478:12 [INFO] [stdout] | [INFO] [stdout] 478 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:485:20 [INFO] [stdout] | [INFO] [stdout] 485 | let n = stream.read(&mut buf).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ready` with a similar name [INFO] [stdout] | [INFO] [stdout] 485 | let n = stream.ready(&mut buf).await.unwrap(); [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shutdown` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/server.rs:488:12 [INFO] [stdout] | [INFO] [stdout] 488 | stream.shutdown().await.unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] Migrating examples/tcp-echo.rs from 2021 edition to 2024 [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/testing_server.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncRead as _, AsyncWriteExt as _}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::io::{AsyncReadExt as _, AsyncWrite as _}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> tests/testing_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> tests/testing_server.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (test "testing_server") due to 10 previous errors [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> tests/testing_server.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_buf` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | await_timeout_ms!(conn.write_all(b"test"), 200); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_end` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | await_timeout_ms!(conn.read_to_end(&mut buf), 200); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_exact` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> tests/testing_server.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | sock.read_exact(&mut buf).await [INFO] [stdout] | ^^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> examples/tcp-echo.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:91 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/io/mod.rs:272:119 [INFO] [stdout] | [INFO] [stdout] 272 | copy, copy_bidirectional, copy_buf, duplex, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: the item is gated behind the `io-util` feature [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncRead as _, AsyncWriteExt as _}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncReadExt as _, AsyncWrite as _}; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> examples/tcp-echo.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> examples/tcp-echo.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/tcp-echo.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/tcp-echo.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_buf` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> examples/tcp-echo.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `actix_rt::net::TcpStream` in the current scope [INFO] [stdout] --> examples/tcp-echo.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/tcp-echo.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752. [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-server` (example "tcp-echo") due to 9 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "bbdc1acdee318291d6cbeee48ebc023403c5c88db2a9ca44b140d49729e29b86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbdc1acdee318291d6cbeee48ebc023403c5c88db2a9ca44b140d49729e29b86", kill_on_drop: false }` [INFO] [stdout] bbdc1acdee318291d6cbeee48ebc023403c5c88db2a9ca44b140d49729e29b86