[INFO] fetching crate actix-server 2.0.0-beta.3... [INFO] checking actix-server-2.0.0-beta.3 against try#9c1dcf141bc0875407c4eb36972857bd3db713e2 for pr-81863 [INFO] extracting crate actix-server 2.0.0-beta.3 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate actix-server 2.0.0-beta.3 on toolchain 9c1dcf141bc0875407c4eb36972857bd3db713e2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9c1dcf141bc0875407c4eb36972857bd3db713e2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate actix-server 2.0.0-beta.3 [INFO] finished tweaking crates.io crate actix-server 2.0.0-beta.3 [INFO] tweaked toml for crates.io crate actix-server 2.0.0-beta.3 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate crates.io crate actix-server 2.0.0-beta.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9c1dcf141bc0875407c4eb36972857bd3db713e2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9c1dcf141bc0875407c4eb36972857bd3db713e2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f29689950639acf6c0f93ae52eeb7c928a61c1ff04e68df3b47fba408bef710a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f29689950639acf6c0f93ae52eeb7c928a61c1ff04e68df3b47fba408bef710a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f29689950639acf6c0f93ae52eeb7c928a61c1ff04e68df3b47fba408bef710a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f29689950639acf6c0f93ae52eeb7c928a61c1ff04e68df3b47fba408bef710a", kill_on_drop: false }` [INFO] [stdout] f29689950639acf6c0f93ae52eeb7c928a61c1ff04e68df3b47fba408bef710a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9c1dcf141bc0875407c4eb36972857bd3db713e2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bcad64e735903ba9ccc0dc241da949bbca4ba5bbaa5a330ac477eb256909c89 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9bcad64e735903ba9ccc0dc241da949bbca4ba5bbaa5a330ac477eb256909c89", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.85 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.4 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking futures-core v0.3.12 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking futures-sink v0.3.12 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking actix-service v2.0.0-beta.4 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking mio v0.7.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking tokio-util v0.6.3 [INFO] [stderr] Checking actix-rt v2.0.1 [INFO] [stderr] Checking actix-codec v0.4.0-beta.1 [INFO] [stderr] Checking actix-utils v3.0.0-beta.2 [INFO] [stderr] Checking actix-server v2.0.0-beta.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `actix_rt` [INFO] [stdout] --> src/lib.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | #[actix_rt::test] [INFO] [stdout] | ^^^^ could not find `test` in `actix_rt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures_util` [INFO] [stdout] --> tests/test_server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures_util::future::{lazy, ok}; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `futures_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures_util` [INFO] [stdout] --> tests/test_server.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | use futures_util::sink::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `futures_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> tests/test_server.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | use bytes::Bytes; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `tokio::io::AsyncReadExt`, `tokio::io::AsyncWriteExt` [INFO] [stdout] --> examples/basic.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `AsyncWriteExt` in `io` [INFO] [stdout] | | [INFO] [stdout] | no `AsyncReadExt` in `io` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::io::{AsyncRead, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::io::{AsyncReadExt, AsyncWrite}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures_util` [INFO] [stdout] --> examples/basic.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use futures_util::future::ok; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `futures_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> examples/basic.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | 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 `actix_rt` [INFO] [stdout] --> examples/basic.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | #[actix_rt::main] [INFO] [stdout] | ^^^^ could not find `main` in `actix_rt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lazy` in this scope [INFO] [stdout] --> tests/test_server.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | let srv = sys.block_on(lazy(|_| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ok` in this scope [INFO] [stdout] --> tests/test_server.rs:29:60 [INFO] [stdout] | [INFO] [stdout] 29 | .bind("test", addr, move || fn_service(|_| ok::<_, ()>(()))) [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ok` in this scope [INFO] [stdout] --> tests/test_server.rs:56:61 [INFO] [stdout] | [INFO] [stdout] 56 | .listen("test", lst, move || fn_service(|_| ok::<_, ()>(()))) [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lazy` in this scope [INFO] [stdout] --> tests/test_server.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | let srv = sys.block_on(lazy(|_| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lazy` in this scope [INFO] [stdout] --> tests/test_server.rs:154:32 [INFO] [stdout] | [INFO] [stdout] 154 | let srv = sys.block_on(lazy(|_| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ok` in this scope [INFO] [stdout] --> tests/test_server.rs:167:64 [INFO] [stdout] | [INFO] [stdout] 167 | ... rt.service("addr1", fn_service(|_| ok::<_, ()>(()))); [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ok` in this scope [INFO] [stdout] --> tests/test_server.rs:168:64 [INFO] [stdout] | [INFO] [stdout] 168 | ... rt.service("addr3", fn_service(|_| ok::<_, ()>(()))); [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lazy` in this scope [INFO] [stdout] --> tests/test_server.rs:169:41 [INFO] [stdout] | [INFO] [stdout] 169 | ... rt.on_start(lazy(move |_| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/basic.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | env_logger::init(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ok` in this scope [INFO] [stdout] --> examples/basic.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | ok(size) [INFO] [stdout] | ^^ help: a tuple variant with a similar name exists (notice the capitalization): `Ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send` found for struct `Framed` in the current scope [INFO] [stdout] --> tests/test_server.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | f.send(Bytes::from_static(b"test")).await.unwrap(); [INFO] [stdout] | ^^^^ method not found in `Framed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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/basic.rs:55:38 [INFO] [stdout] | [INFO] [stdout] 55 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^ method not found in `actix_rt::net::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/basic.rs:62:40 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `actix_rt::net::TcpStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> examples/basic.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let mut size = 0; [INFO] [stdout] | ^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | match stream.read_buf(&mut buf).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:57:32 [INFO] [stdout] | [INFO] [stdout] 57 | ... Ok(0) => break, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | ... Ok(bytes_read) => { [INFO] [stdout] | ^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:62:55 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/basic.rs:62:55 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/basic.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | ... stream.write_all(&buf[size..]).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/basic.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | 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 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599, E0698, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9bcad64e735903ba9ccc0dc241da949bbca4ba5bbaa5a330ac477eb256909c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bcad64e735903ba9ccc0dc241da949bbca4ba5bbaa5a330ac477eb256909c89", kill_on_drop: false }` [INFO] [stdout] 9bcad64e735903ba9ccc0dc241da949bbca4ba5bbaa5a330ac477eb256909c89