[INFO] fetching crate actix-web 4.0.0-beta.5... [INFO] checking actix-web-4.0.0-beta.5 against master#836c31742687ba4e2f857b5b698e1e9e6b67619c for pr-81789 [INFO] extracting crate actix-web 4.0.0-beta.5 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate actix-web 4.0.0-beta.5 on toolchain 836c31742687ba4e2f857b5b698e1e9e6b67619c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+836c31742687ba4e2f857b5b698e1e9e6b67619c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3/source/.cargo/config.toml [INFO] started tweaking crates.io crate actix-web 4.0.0-beta.5 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate actix-web 4.0.0-beta.5 [INFO] tweaked toml for crates.io crate actix-web 4.0.0-beta.5 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate actix-web 4.0.0-beta.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+836c31742687ba4e2f857b5b698e1e9e6b67619c" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+836c31742687ba4e2f857b5b698e1e9e6b67619c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3d8348d6a6bfef9ac5cd82410c6f7186a63783fc1e84300858067f3179c0eb8 [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" "f3d8348d6a6bfef9ac5cd82410c6f7186a63783fc1e84300858067f3179c0eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3d8348d6a6bfef9ac5cd82410c6f7186a63783fc1e84300858067f3179c0eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3d8348d6a6bfef9ac5cd82410c6f7186a63783fc1e84300858067f3179c0eb8", kill_on_drop: false }` [INFO] [stdout] f3d8348d6a6bfef9ac5cd82410c6f7186a63783fc1e84300858067f3179c0eb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+836c31742687ba4e2f857b5b698e1e9e6b67619c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 671bd175a86f4d6104d151409c41cbd0ba5a13e2cf521a5c5b53cdd2eb1efd36 [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" "671bd175a86f4d6104d151409c41cbd0ba5a13e2cf521a5c5b53cdd2eb1efd36", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Compiling const_fn v0.4.6 [INFO] [stderr] Checking local-waker v0.1.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Compiling tokio v1.4.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling ahash v0.7.2 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking brotli-sys v0.3.2 [INFO] [stderr] Checking actix-utils v3.0.0-beta.4 [INFO] [stderr] Checking actix-service v2.0.0-beta.5 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking local-channel v0.1.2 [INFO] [stderr] Checking tokio-util v0.6.5 [INFO] [stderr] Checking actix-codec v0.4.0-beta.1 [INFO] [stderr] Checking h2 v0.3.2 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.0 [INFO] [stderr] Compiling pin-project-internal v1.0.6 [INFO] [stderr] Compiling derive_more v0.99.13 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.2 [INFO] [stderr] Checking actix-rt v2.2.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking actix-server v2.0.0-beta.4 [INFO] [stderr] Checking time v0.2.26 [INFO] [stderr] Checking cookie v0.14.4 [INFO] [stderr] Checking pin-project v1.0.6 [INFO] [stderr] Checking actix-tls v3.0.0-beta.5 [INFO] [stderr] Checking serde v1.0.125 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking actix-http v3.0.0-beta.5 [INFO] [stderr] Checking actix-web v4.0.0-beta.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `serde_derive` [INFO] [stdout] --> src/extract.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | use serde_derive::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `serde_derive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_derive` [INFO] [stdout] --> src/route.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | use serde_derive::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `serde_derive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/extract.rs:341:14 [INFO] [stdout] | [INFO] [stdout] 341 | #[derive(Deserialize, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/route.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 201 | #[derive(Serialize, PartialEq, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `from_request` exists for enum `std::option::Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/extract.rs:353:39 [INFO] [stdout] | [INFO] [stdout] 342 | struct Info { [INFO] [stdout] | ----------- doesn't satisfy `extract::tests::Info: DeserializeOwned` [INFO] [stdout] ... [INFO] [stdout] 353 | let r = Option::>::from_request(&req, &mut pl) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item cannot be called on `std::option::Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/types/form.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Form(pub T); [INFO] [stdout] | -------------------------- doesn't satisfy `_: extract::FromRequest` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `form::Form: extract::FromRequest` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] `extract::tests::Info: DeserializeOwned` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `from_request` exists for enum `std::option::Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/extract.rs:364:39 [INFO] [stdout] | [INFO] [stdout] 342 | struct Info { [INFO] [stdout] | ----------- doesn't satisfy `extract::tests::Info: DeserializeOwned` [INFO] [stdout] ... [INFO] [stdout] 364 | let r = Option::>::from_request(&req, &mut pl) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item cannot be called on `std::option::Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/types/form.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Form(pub T); [INFO] [stdout] | -------------------------- doesn't satisfy `_: extract::FromRequest` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `form::Form: extract::FromRequest` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] `extract::tests::Info: DeserializeOwned` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `from_request` exists for enum `std::option::Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/extract.rs:380:39 [INFO] [stdout] | [INFO] [stdout] 342 | struct Info { [INFO] [stdout] | ----------- doesn't satisfy `extract::tests::Info: DeserializeOwned` [INFO] [stdout] ... [INFO] [stdout] 380 | let r = Option::>::from_request(&req, &mut pl) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item cannot be called on `std::option::Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/types/form.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Form(pub T); [INFO] [stdout] | -------------------------- doesn't satisfy `_: extract::FromRequest` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `form::Form: extract::FromRequest` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] `extract::tests::Info: DeserializeOwned` [INFO] [stdout] which is required by `std::option::Option>: extract::FromRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `from_request` exists for enum `std::result::Result, actix_http::Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/extract.rs:394:46 [INFO] [stdout] | [INFO] [stdout] 342 | struct Info { [INFO] [stdout] | ----------- doesn't satisfy `extract::tests::Info: DeserializeOwned` [INFO] [stdout] ... [INFO] [stdout] 394 | let r = Result::, Error>::from_request(&req, &mut pl) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item cannot be called on `std::result::Result, actix_http::Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/types/form.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Form(pub T); [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as extract::FromRequest>::Error = actix_http::Error` [INFO] [stdout] | doesn't satisfy `_: extract::FromRequest` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `form::Form: extract::FromRequest` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] `extract::tests::Info: DeserializeOwned` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] ` as extract::FromRequest>::Error = actix_http::Error` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `from_request` exists for enum `std::result::Result, actix_http::Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/extract.rs:411:46 [INFO] [stdout] | [INFO] [stdout] 342 | struct Info { [INFO] [stdout] | ----------- doesn't satisfy `extract::tests::Info: DeserializeOwned` [INFO] [stdout] ... [INFO] [stdout] 411 | let r = Result::, Error>::from_request(&req, &mut pl) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item cannot be called on `std::result::Result, actix_http::Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/types/form.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct Form(pub T); [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `<_ as extract::FromRequest>::Error = actix_http::Error` [INFO] [stdout] | doesn't satisfy `_: extract::FromRequest` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `form::Form: extract::FromRequest` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] `extract::tests::Info: DeserializeOwned` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] ` as extract::FromRequest>::Error = actix_http::Error` [INFO] [stdout] which is required by `std::result::Result, actix_http::Error>: extract::FromRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_shutdown` [INFO] [stdout] --> src/server.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | client_shutdown: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `awc` [INFO] [stdout] --> benches/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use awc::Client; [INFO] [stdout] | ^^^ use of undeclared crate or module `awc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> benches/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use criterion::{criterion_group, criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `criterion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `criterion_group` [INFO] [stdout] --> benches/server.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | criterion_group!(server_benches, bench_async_burst); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `criterion_main` [INFO] [stdout] --> benches/server.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | criterion_main!(server_benches); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> benches/server.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | actix_test::start(|| { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test` [INFO] [stdout] --> benches/server.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{test, web, App, HttpResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `server` [INFO] [stdout] --> benches/server.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use actix_web::{test, web, App, HttpResponse}; [INFO] [stdout] 2 | | use awc::Client; [INFO] [stdout] 3 | | use criterion::{criterion_group, criterion_main, Criterion}; [INFO] [stdout] 4 | | use futures_util::future::join_all; [INFO] [stdout] ... | [INFO] [stdout] 68 | | criterion_group!(server_benches, bench_async_burst); [INFO] [stdout] 69 | | criterion_main!(server_benches); [INFO] [stdout] | |________________________________^ consider adding a `main` function to `benches/server.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> benches/responder.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use criterion::{criterion_group, criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `criterion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `criterion_main` [INFO] [stdout] --> benches/responder.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | criterion_main!(responder_bench); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `criterion_group` [INFO] [stdout] --> benches/responder.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | criterion_group!(responder_bench, future_responder, responder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `responder` [INFO] [stdout] --> benches/responder.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::{future::Future, time::Instant}; [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use actix_http::Response; [INFO] [stdout] 4 | | use actix_utils::future::{ready, Ready}; [INFO] [stdout] ... | [INFO] [stdout] 112 | | criterion_group!(responder_bench, future_responder, responder); [INFO] [stdout] 113 | | criterion_main!(responder_bench); [INFO] [stdout] | |_________________________________^ consider adding a `main` function to `benches/responder.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `criterion` [INFO] [stdout] --> benches/service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use criterion::{criterion_main, Criterion}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `criterion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `criterion_main` [INFO] [stdout] --> benches/service.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | criterion_main!(service_benches); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `criterion` in the list of imported crates [INFO] [stdout] --> benches/service.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | let mut criterion: ::criterion::Criterion<_> = [INFO] [stdout] | ^^^^^^^^^ could not find `criterion` in the list of imported crates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/basic.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::new().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/basic.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); [INFO] [stdout] | ^^^ not found in `env_logger` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::middleware::logger::env::os_imp::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/server.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let burst = (0..iters).map(|_| client.send()); [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] --> benches/server.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | let resps = join_all(burst).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/server.rs:52:38 [INFO] [stdout] | [INFO] [stdout] 52 | let resps = join_all(burst).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] --> benches/server.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | let resps = join_all(burst).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0601, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `criterion` in the list of imported crates [INFO] [stdout] --> benches/service.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | ::criterion::Criterion::default().configure_from_args(); [INFO] [stdout] | ^^^^^^^^^ could not find `criterion` in the list of imported crates [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `actix-web` [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[E0601]: `main` function not found in crate `service` [INFO] [stdout] --> benches/service.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use actix_service::Service; [INFO] [stdout] 2 | | use actix_web::dev::{ServiceRequest, ServiceResponse}; [INFO] [stdout] 3 | | use actix_web::{web, App, Error, HttpResponse}; [INFO] [stdout] 4 | | use criterion::{criterion_main, Criterion}; [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] 109 | | criterion_main!(service_benches); [INFO] [stdout] | |_________________________________^ consider adding a `main` function to `benches/service.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/on_connect.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | env_logger::init_from_env(env_logger::Env::new().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/on_connect.rs:39:43 [INFO] [stdout] | [INFO] [stdout] 39 | env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); [INFO] [stdout] | ^^^ not found in `env_logger` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use crate::io::sys::os::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env_logger` [INFO] [stdout] --> examples/uds.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | env_logger::init_from_env(env_logger::Env::new().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/uds.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 25 | env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); [INFO] [stdout] | ^^^ not found in `env_logger` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::middleware::logger::env::os_imp::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `brotli2` [INFO] [stdout] --> tests/test_server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use brotli2::write::{BrotliDecoder, BrotliEncoder}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `brotli2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `flate2` [INFO] [stdout] --> tests/test_server.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use flate2::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `flate2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/test_server.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use rand::{distributions::Alphanumeric, Rng}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `flate2` [INFO] [stdout] --> tests/test_server.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use flate2::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `flate2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> tests/test_server.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use rand::{distributions::Alphanumeric, Rng}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_httpserver.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | let addr = actix_test::unused_addr(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [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] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let srv = actix_test::start(|| { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:132:38 [INFO] [stdout] | [INFO] [stdout] 132 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzDecoder` [INFO] [stdout] --> tests/test_server.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | let mut e = GzDecoder::new(&bytes[..]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 159 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:159:38 [INFO] [stdout] | [INFO] [stdout] 159 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzDecoder` [INFO] [stdout] --> tests/test_server.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | let mut e = GzDecoder::new(&bytes[..]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 188 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/service.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | for fut in futs { [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] --> benches/service.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | fut.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/service.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | for fut in futs { [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] --> benches/service.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | fut.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:188:38 [INFO] [stdout] | [INFO] [stdout] 188 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibDecoder` [INFO] [stdout] --> tests/test_server.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let mut e = ZlibDecoder::new(Vec::new()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibDecoder` [INFO] [stdout] --> tests/test_server.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut e = ZlibDecoder::new(Vec::new()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/service.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | for fut in futs { [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] --> benches/service.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | fut.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> benches/service.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | for fut in futs { [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] --> benches/service.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | fut.await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:251:15 [INFO] [stdout] | [INFO] [stdout] 251 | let srv = actix_test::start_with(actix_test::config().h1(), move || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [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, E0601, E0698. [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 `actix_test` [INFO] [stdout] --> tests/test_server.rs:251:38 [INFO] [stdout] | [INFO] [stdout] 251 | let srv = actix_test::start_with(actix_test::config().h1(), move || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzDecoder` [INFO] [stdout] --> tests/test_server.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | let mut e = GzDecoder::new(&bytes[..]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/test_server.rs:282:16 [INFO] [stdout] | [INFO] [stdout] 282 | let data = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:289:15 [INFO] [stdout] | [INFO] [stdout] 289 | let srv = actix_test::start_with(actix_test::config().h1(), move || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:289:38 [INFO] [stdout] | [INFO] [stdout] 289 | let srv = actix_test::start_with(actix_test::config().h1(), move || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzDecoder` [INFO] [stdout] --> tests/test_server.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | let mut e = GzDecoder::new(&bytes[..]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:321:15 [INFO] [stdout] | [INFO] [stdout] 321 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:321:38 [INFO] [stdout] | [INFO] [stdout] 321 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzDecoder` [INFO] [stdout] --> tests/test_server.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | let mut e = GzDecoder::new(&bytes[..]); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:355:15 [INFO] [stdout] | [INFO] [stdout] 355 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:355:38 [INFO] [stdout] | [INFO] [stdout] 355 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrotliDecoder` [INFO] [stdout] --> tests/test_server.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | let mut e = BrotliDecoder::new(Vec::with_capacity(2048)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BrotliDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:387:15 [INFO] [stdout] | [INFO] [stdout] 387 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:387:38 [INFO] [stdout] | [INFO] [stdout] 387 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:408:15 [INFO] [stdout] | [INFO] [stdout] 408 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:408:38 [INFO] [stdout] | [INFO] [stdout] 408 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:427:15 [INFO] [stdout] | [INFO] [stdout] 427 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:427:38 [INFO] [stdout] | [INFO] [stdout] 427 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibDecoder` [INFO] [stdout] --> tests/test_server.rs:446:17 [INFO] [stdout] | [INFO] [stdout] 446 | let mut e = ZlibDecoder::new(Vec::new()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:454:15 [INFO] [stdout] | [INFO] [stdout] 454 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:454:38 [INFO] [stdout] | [INFO] [stdout] 454 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrotliDecoder` [INFO] [stdout] --> tests/test_server.rs:474:17 [INFO] [stdout] | [INFO] [stdout] 474 | let mut e = BrotliDecoder::new(Vec::with_capacity(2048)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BrotliDecoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:482:15 [INFO] [stdout] | [INFO] [stdout] 482 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:482:38 [INFO] [stdout] | [INFO] [stdout] 482 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzEncoder` [INFO] [stdout] --> tests/test_server.rs:489:17 [INFO] [stdout] | [INFO] [stdout] 489 | let mut e = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:507:15 [INFO] [stdout] | [INFO] [stdout] 507 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:507:38 [INFO] [stdout] | [INFO] [stdout] 507 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzEncoder` [INFO] [stdout] --> tests/test_server.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | let mut e = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:533:15 [INFO] [stdout] | [INFO] [stdout] 533 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:533:38 [INFO] [stdout] | [INFO] [stdout] 533 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzEncoder` [INFO] [stdout] --> tests/test_server.rs:540:17 [INFO] [stdout] | [INFO] [stdout] 540 | let mut e = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/test_server.rs:558:16 [INFO] [stdout] | [INFO] [stdout] 558 | let data = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:564:15 [INFO] [stdout] | [INFO] [stdout] 564 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:564:38 [INFO] [stdout] | [INFO] [stdout] 564 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GzEncoder` [INFO] [stdout] --> tests/test_server.rs:571:17 [INFO] [stdout] | [INFO] [stdout] 571 | let mut e = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GzEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:590:15 [INFO] [stdout] | [INFO] [stdout] 590 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:590:38 [INFO] [stdout] | [INFO] [stdout] 590 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibEncoder` [INFO] [stdout] --> tests/test_server.rs:596:17 [INFO] [stdout] | [INFO] [stdout] 596 | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:616:15 [INFO] [stdout] | [INFO] [stdout] 616 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:616:38 [INFO] [stdout] | [INFO] [stdout] 616 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibEncoder` [INFO] [stdout] --> tests/test_server.rs:622:17 [INFO] [stdout] | [INFO] [stdout] 622 | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/test_server.rs:641:16 [INFO] [stdout] | [INFO] [stdout] 641 | let data = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:647:15 [INFO] [stdout] | [INFO] [stdout] 647 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:647:38 [INFO] [stdout] | [INFO] [stdout] 647 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ZlibEncoder` [INFO] [stdout] --> tests/test_server.rs:653:17 [INFO] [stdout] | [INFO] [stdout] 653 | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ZlibEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:673:15 [INFO] [stdout] | [INFO] [stdout] 673 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:673:38 [INFO] [stdout] | [INFO] [stdout] 673 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrotliEncoder` [INFO] [stdout] --> tests/test_server.rs:679:17 [INFO] [stdout] | [INFO] [stdout] 679 | let mut e = BrotliEncoder::new(Vec::new(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BrotliEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> tests/test_server.rs:698:16 [INFO] [stdout] | [INFO] [stdout] 698 | let data = rand::thread_rng() [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:704:15 [INFO] [stdout] | [INFO] [stdout] 704 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:704:38 [INFO] [stdout] | [INFO] [stdout] 704 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrotliEncoder` [INFO] [stdout] --> tests/test_server.rs:714:17 [INFO] [stdout] | [INFO] [stdout] 714 | let mut e = BrotliEncoder::new(Vec::new(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BrotliEncoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:831:15 [INFO] [stdout] | [INFO] [stdout] 831 | let srv = actix_test::start(|| { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:884:15 [INFO] [stdout] | [INFO] [stdout] 884 | let srv = actix_test::start_with(actix_test::config().client_timeout(200), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:884:38 [INFO] [stdout] | [INFO] [stdout] 884 | let srv = actix_test::start_with(actix_test::config().client_timeout(200), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:902:15 [INFO] [stdout] | [INFO] [stdout] 902 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:902:38 [INFO] [stdout] | [INFO] [stdout] 902 | let srv = actix_test::start_with(actix_test::config().h1(), || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `actix_test` [INFO] [stdout] --> tests/test_server.rs:946:15 [INFO] [stdout] | [INFO] [stdout] 946 | let srv = actix_test::start(move || { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `actix_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Alphanumeric` in this scope [INFO] [stdout] --> tests/test_server.rs:283:23 [INFO] [stdout] | [INFO] [stdout] 283 | .sample_iter(&Alphanumeric) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Alphanumeric` in this scope [INFO] [stdout] --> tests/test_server.rs:559:23 [INFO] [stdout] | [INFO] [stdout] 559 | .sample_iter(&Alphanumeric) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Alphanumeric` in this scope [INFO] [stdout] --> tests/test_server.rs:642:23 [INFO] [stdout] | [INFO] [stdout] 642 | .sample_iter(&Alphanumeric) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Alphanumeric` in this scope [INFO] [stdout] --> tests/test_server.rs:699:23 [INFO] [stdout] | [INFO] [stdout] 699 | .sample_iter(&Alphanumeric) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `[closure@src/route.rs:225:69: 230:18]: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/route.rs:225:66 [INFO] [stdout] | [INFO] [stdout] 225 | .service(web::resource("/json").route(web::get().to(|| async { [INFO] [stdout] | ^^ the trait `Handler<_, _>` is not implemented for `[closure@src/route.rs:225:69: 230:18]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> tests/test_server.rs:382:28 [INFO] [stdout] | [INFO] [stdout] 382 | assert_eq!(Bytes::from(dec), Bytes::from_static(STR.as_ref())); [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `bytes::Bytes: From<[u8]>` is not satisfied [INFO] [stdout] --> tests/test_server.rs:382:16 [INFO] [stdout] | [INFO] [stdout] 382 | assert_eq!(Bytes::from(dec), Bytes::from_static(STR.as_ref())); [INFO] [stdout] | ^^^^^^^^^^^ the trait `From<[u8]>` is not implemented for `bytes::Bytes` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] and 4 others [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> tests/test_server.rs:382:16 [INFO] [stdout] | [INFO] [stdout] 382 | assert_eq!(Bytes::from(dec), Bytes::from_static(STR.as_ref())); [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `[u8]` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> tests/test_server.rs:727:39 [INFO] [stdout] | [INFO] [stdout] 727 | let bytes = response.body().limit(320_000).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] --> tests/test_server.rs:727:17 [INFO] [stdout] | [INFO] [stdout] 727 | let bytes = response.body().limit(320_000).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> tests/test_server.rs:829:27 [INFO] [stdout] | [INFO] [stdout] 829 | use actix_web::{http, HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 83 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [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" "671bd175a86f4d6104d151409c41cbd0ba5a13e2cf521a5c5b53cdd2eb1efd36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "671bd175a86f4d6104d151409c41cbd0ba5a13e2cf521a5c5b53cdd2eb1efd36", kill_on_drop: false }` [INFO] [stdout] 671bd175a86f4d6104d151409c41cbd0ba5a13e2cf521a5c5b53cdd2eb1efd36