[INFO] fetching crate unleash-api-client 0.11.0... [INFO] checking unleash-api-client-0.11.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate unleash-api-client 0.11.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate unleash-api-client 0.11.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate unleash-api-client 0.11.0 [INFO] finished tweaking crates.io crate unleash-api-client 0.11.0 [INFO] tweaked toml for crates.io crate unleash-api-client 0.11.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate crates.io crate unleash-api-client 0.11.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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.82 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.92 [INFO] [stderr] Downloaded match_cfg v0.1.0 [INFO] [stderr] Downloaded system-configuration-sys v0.5.0 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Downloaded gloo-timers v0.2.6 [INFO] [stderr] Downloaded subtle v2.5.0 [INFO] [stderr] Downloaded parking v2.2.0 [INFO] [stderr] Downloaded criterion-plot v0.4.5 [INFO] [stderr] Downloaded iana-time-zone v0.1.60 [INFO] [stderr] Downloaded enum-map-derive v0.8.0 [INFO] [stderr] Downloaded async-channel v2.3.0 [INFO] [stderr] Downloaded half v1.8.3 [INFO] [stderr] Downloaded unicode-width v0.1.12 [INFO] [stderr] Downloaded serde_cbor v0.11.2 [INFO] [stderr] Downloaded arc-swap v1.7.1 [INFO] [stderr] Downloaded criterion v0.3.6 [INFO] [stderr] Downloaded tokio-util v0.7.11 [INFO] [stderr] Downloaded reqwest v0.12.4 [INFO] [stderr] Downloaded hyper v0.14.28 [INFO] [stderr] Downloaded rustls-webpki v0.101.7 [INFO] [stderr] Downloaded h2 v0.3.26 [INFO] [stderr] Downloaded async-std v1.12.0 [INFO] [stderr] Downloaded syn v2.0.63 [INFO] [stderr] Downloaded webpki-roots v0.26.1 [INFO] [stderr] Downloaded rustls v0.21.12 [INFO] [stderr] Downloaded webpki-roots v0.25.4 [INFO] [stderr] Downloaded rustls-webpki v0.102.3 [INFO] [stderr] Downloaded reqwest v0.11.27 [INFO] [stderr] Downloaded rustls v0.22.4 [INFO] [stderr] Downloaded isahc v0.9.14 [INFO] [stderr] Downloaded serde_json v1.0.117 [INFO] [stderr] Downloaded serde v1.0.201 [INFO] [stderr] Downloaded js-sys v0.3.69 [INFO] [stderr] Downloaded flume v0.9.2 [INFO] [stderr] Downloaded polling v3.7.0 [INFO] [stderr] Downloaded async-io v2.3.2 [INFO] [stderr] Downloaded indexmap v2.2.6 [INFO] [stderr] Downloaded hyper-rustls v0.26.0 [INFO] [stderr] Downloaded rustls-pemfile v2.1.2 [INFO] [stderr] Downloaded security-framework v2.11.0 [INFO] [stderr] Downloaded core-foundation-sys v0.8.6 [INFO] [stderr] Downloaded tokio-rustls v0.25.0 [INFO] [stderr] Downloaded rustls-pki-types v1.7.0 [INFO] [stderr] Downloaded winreg v0.52.0 [INFO] [stderr] Downloaded schannel v0.1.23 [INFO] [stderr] Downloaded anyhow v1.0.83 [INFO] [stderr] Downloaded wasm-bindgen v0.2.92 [INFO] [stderr] Downloaded either v1.11.0 [INFO] [stderr] Downloaded web-sys v0.3.69 [INFO] [stderr] Downloaded libc v0.2.154 [INFO] [stderr] Downloaded futures-timer v3.0.3 [INFO] [stderr] Downloaded hostname v0.3.1 [INFO] [stderr] Downloaded hyper-rustls v0.24.2 [INFO] [stderr] Downloaded rustls-pemfile v1.0.4 [INFO] [stderr] Downloaded sct v0.7.1 [INFO] [stderr] Downloaded event-listener v5.3.0 [INFO] [stderr] Downloaded event-listener-strategy v0.4.0 [INFO] [stderr] Downloaded fastrand v2.1.0 [INFO] [stderr] Downloaded sha1_smol v1.0.0 [INFO] [stderr] Downloaded mime_guess v2.0.4 [INFO] [stderr] Downloaded cc v1.0.97 [INFO] [stderr] Downloaded system-configuration v0.5.1 [INFO] [stderr] Downloaded ipnet v2.9.0 [INFO] [stderr] Downloaded security-framework-sys v2.11.0 [INFO] [stderr] Downloaded zeroize v1.7.0 [INFO] [stderr] Downloaded rustversion v1.0.16 [INFO] [stderr] Downloaded spinning_top v0.2.5 [INFO] [stderr] Downloaded serde_derive v1.0.201 [INFO] [stderr] Downloaded piper v0.2.2 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.42 [INFO] [stderr] Downloaded universal-hash v0.4.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.60 [INFO] [stderr] Downloaded surf v2.3.2 [INFO] [stderr] Downloaded thiserror v1.0.60 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.92 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.92 [INFO] [stderr] Downloaded murmur3 v0.5.2 [INFO] [stderr] Downloaded tempfile v3.10.1 [INFO] [stderr] Downloaded colored v2.1.0 [INFO] [stderr] Downloaded num_threads v0.1.7 [INFO] [stderr] Downloaded async-executor v1.11.0 [INFO] [stderr] Downloaded event-listener v4.0.3 [INFO] [stderr] Downloaded async-lock v3.3.0 [INFO] [stderr] Downloaded enum-map v2.0.3 [INFO] [stderr] Downloaded simple_logger v2.3.0 [INFO] [stderr] Downloaded blocking v1.6.0 [INFO] [stderr] Downloaded linux-raw-sys v0.4.13 [INFO] [stderr] Downloaded curl-sys v0.4.72+curl-8.6.0 [INFO] [stderr] Downloaded libz-sys v1.1.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8464b00013fe4c077d9bd89a74db41063d504db9108c84d67e9aa21195357dd9 [INFO] running `Command { std: "docker" "start" "-a" "8464b00013fe4c077d9bd89a74db41063d504db9108c84d67e9aa21195357dd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8464b00013fe4c077d9bd89a74db41063d504db9108c84d67e9aa21195357dd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8464b00013fe4c077d9bd89a74db41063d504db9108c84d67e9aa21195357dd9", kill_on_drop: false }` [INFO] [stdout] 8464b00013fe4c077d9bd89a74db41063d504db9108c84d67e9aa21195357dd9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58dba03c0b261be004218aecf7f13b3e43c3654e7562e96a875b025c332ce3bd [INFO] running `Command { std: "docker" "start" "-a" "58dba03c0b261be004218aecf7f13b3e43c3654e7562e96a875b025c332ce3bd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling rustversion v1.0.16 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling anyhow v1.0.83 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking murmur3 v0.5.2 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking simple_logger v2.3.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling enum-map-derive v0.8.0 [INFO] [stderr] Checking enum-map v2.0.3 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking serde_plain v1.0.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stderr] Checking unleash-api-client v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] error: Cannot run test suite without a client enabled [INFO] [stdout] --> examples/threads.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | compile_error!("Cannot run test suite without a client enabled"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Cannot run test suite without a client enabled [INFO] [stdout] --> tests/clientspec.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | compile_error!("Cannot run test suite without a client enabled"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> examples/threads.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | .into_client::( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 8 + use unleash_api_client::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rt` in this scope [INFO] [stdout] --> examples/threads.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | rt.block_on(async { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rt` in this scope [INFO] [stdout] --> examples/threads.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | let inner_rt = rt.clone(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rt` in this scope [INFO] [stdout] --> examples/threads.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | rt.block_on(async { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> tests/clientspec.rs:129:44 [INFO] [stdout] | [INFO] [stdout] 129 | .into_client::( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 6 + use unleash_api_client::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Cannot run test suite without a client enabled [INFO] [stdout] --> src/client.rs:931:13 [INFO] [stdout] | [INFO] [stdout] 931 | compile_error!("Cannot run test suite without a client enabled"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Cannot run test suite without a client enabled [INFO] [stdout] --> benches/is_enabled.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | compile_error!("Cannot run test suite without a client enabled"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Cannot run test suite without a client enabled [INFO] [stdout] --> benches/is_enabled.rs:431:13 [INFO] [stdout] | [INFO] [stdout] 431 | compile_error!("Cannot run test suite without a client enabled"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unleash-api-client` (example "threads") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1025:42 [INFO] [stdout] | [INFO] [stdout] 1025 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1068:40 [INFO] [stdout] | [INFO] [stdout] 1068 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1133:42 [INFO] [stdout] | [INFO] [stdout] 1133 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1276:42 [INFO] [stdout] | [INFO] [stdout] 1276 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1357:40 [INFO] [stdout] | [INFO] [stdout] 1357 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1437:42 [INFO] [stdout] | [INFO] [stdout] 1437 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpClient` in this scope [INFO] [stdout] --> src/client.rs:1493:40 [INFO] [stdout] | [INFO] [stdout] 1493 | .into_client::("http://127.0.0.1:1234/", "foo", "test", None) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait through its public re-export [INFO] [stdout] | [INFO] [stdout] 907 + use crate::http::HttpClient; [INFO] [stdout] | [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 E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unleash-api-client` (test "clientspec") due to 3 previous errors [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> benches/is_enabled.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated types `Error`, `HeaderName` and `RequestBuilder` in `HttpClient` must be specified [INFO] [stdout] --> benches/is_enabled.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^ help: specify the associated types: `HttpClient::` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `dyn HttpClient: Default` is not satisfied [INFO] [stdout] --> benches/is_enabled.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^ the trait `Default` is not implemented for `dyn HttpClient` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `client` [INFO] [stdout] --> benches/is_enabled.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 162 | fn client(count: usize) -> client::Client [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] 163 | where [INFO] [stdout] 164 | C: HttpClient + Default, [INFO] [stdout] | ^^^^^^^ required by this bound in `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:239:36 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:239:27 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:239:27 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | let client = Arc::new(client::(cpus)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:258:24 [INFO] [stdout] | [INFO] [stdout] 258 | client.is_enabled(UserFeatures::Flexible0, Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled_str` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:270:24 [INFO] [stdout] | [INFO] [stdout] 270 | client.is_enabled_str("flexible0", Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:281:37 [INFO] [stdout] | [INFO] [stdout] 281 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:281:37 [INFO] [stdout] | [INFO] [stdout] 281 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 289 | thread_client.is_enabled(feature.clone(), Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:303:37 [INFO] [stdout] | [INFO] [stdout] 303 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:303:37 [INFO] [stdout] | [INFO] [stdout] 303 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled_str` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:311:39 [INFO] [stdout] | [INFO] [stdout] 311 | thread_client.is_enabled_str(feature, Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:326:37 [INFO] [stdout] | [INFO] [stdout] 326 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:326:37 [INFO] [stdout] | [INFO] [stdout] 326 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:335:39 [INFO] [stdout] | [INFO] [stdout] 335 | thread_client.is_enabled(feature.clone(), Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:349:37 [INFO] [stdout] | [INFO] [stdout] 349 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:349:37 [INFO] [stdout] | [INFO] [stdout] 349 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled_str` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:357:39 [INFO] [stdout] | [INFO] [stdout] 357 | thread_client.is_enabled_str(&feature_str, Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:371:37 [INFO] [stdout] | [INFO] [stdout] 371 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:371:37 [INFO] [stdout] | [INFO] [stdout] 371 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:380:39 [INFO] [stdout] | [INFO] [stdout] 380 | thread_client.is_enabled(feature.clone(), Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:394:37 [INFO] [stdout] | [INFO] [stdout] 394 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:394:37 [INFO] [stdout] | [INFO] [stdout] 394 | let thread_client = client.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled_str` exists for struct `Arc>`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:402:39 [INFO] [stdout] | [INFO] [stdout] 402 | thread_client.is_enabled_str(&feature_str, Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ method cannot be called on `Arc>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> benches/is_enabled.rs:434:27 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated types `Error`, `HeaderName` and `RequestBuilder` in `HttpClient` must be specified [INFO] [stdout] --> benches/is_enabled.rs:434:27 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^ help: specify the associated types: `HttpClient::` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `dyn HttpClient: Default` is not satisfied [INFO] [stdout] --> benches/is_enabled.rs:434:27 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^ the trait `Default` is not implemented for `dyn HttpClient` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `client` [INFO] [stdout] --> benches/is_enabled.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 162 | fn client(count: usize) -> client::Client [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] 163 | where [INFO] [stdout] 164 | C: HttpClient + Default, [INFO] [stdout] | ^^^^^^^ required by this bound in `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:434:27 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `HttpClient` cannot be made into an object [INFO] [stdout] --> benches/is_enabled.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `HttpClient` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/http/shim.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn build_header(name: &'static str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ the trait cannot be made into an object because associated function `build_header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 31 | fn header( [INFO] [stdout] | ^^^^^^ the trait cannot be made into an object because associated function `header` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 38 | async fn get_json(req: Self::RequestBuilder) -> Result; [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because associated function `get_json` has no `self` parameter [INFO] [stdout] ... [INFO] [stdout] 42 | async fn post_json( [INFO] [stdout] | ^^^^^^^^^ the trait cannot be made into an object because associated function `post_json` has no `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn HttpClient` cannot be known at compilation time [INFO] [stdout] --> benches/is_enabled.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | let client = client::(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn HttpClient` [INFO] [stdout] note: required by an implicit `Sized` bound in `Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:222:22 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct Client [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled` exists for struct `Client`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:443:20 [INFO] [stdout] | [INFO] [stdout] 443 | client.is_enabled(UserFeatures::Flexible0, Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^ method cannot be called on `Client` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_enabled_str` exists for struct `Client`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/is_enabled.rs:448:20 [INFO] [stdout] | [INFO] [stdout] 448 | client.is_enabled_str("flexible0", Some(&context), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ method cannot be called on `Client` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/http/shim.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait HttpClient: Sync + Send { [INFO] [stdout] | --------------------------------- doesn't satisfy `dyn HttpClient: Default` or `dyn HttpClient: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn HttpClient: Sized` [INFO] [stdout] `dyn HttpClient: Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unleash-api-client` (lib test) due to 9 previous errors [INFO] [stdout] error: aborting due to 38 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0191, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unleash-api-client` (bench "is_enabled") due to 39 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "58dba03c0b261be004218aecf7f13b3e43c3654e7562e96a875b025c332ce3bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58dba03c0b261be004218aecf7f13b3e43c3654e7562e96a875b025c332ce3bd", kill_on_drop: false }` [INFO] [stdout] 58dba03c0b261be004218aecf7f13b3e43c3654e7562e96a875b025c332ce3bd