[INFO] fetching crate http-provider-macro 0.1.3... [INFO] checking http-provider-macro-0.1.3 against try#fcfb0ffc7ed7fc631df1136063939ef648434735 for pr-152543 [INFO] extracting crate http-provider-macro 0.1.3 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate http-provider-macro 0.1.3 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate http-provider-macro 0.1.3 [INFO] tweaked toml for crates.io crate http-provider-macro 0.1.3 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate http-provider-macro 0.1.3 on toolchain fcfb0ffc7ed7fc631df1136063939ef648434735 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate http-provider-macro 0.1.3 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" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09dd4e28e38747db3496f2118704468da923d7f88c0440410deb089c24b9cc5a [INFO] running `Command { std: "docker" "start" "-a" "09dd4e28e38747db3496f2118704468da923d7f88c0440410deb089c24b9cc5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09dd4e28e38747db3496f2118704468da923d7f88c0440410deb089c24b9cc5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09dd4e28e38747db3496f2118704468da923d7f88c0440410deb089c24b9cc5a", kill_on_drop: false }` [INFO] [stdout] 09dd4e28e38747db3496f2118704468da923d7f88c0440410deb089c24b9cc5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 872c57c532b9c7ae1fd7dec12090baec1ec80d876d76828127f1c121d701a587 [INFO] running `Command { std: "docker" "start" "-a" "872c57c532b9c7ae1fd7dec12090baec1ec80d876d76828127f1c121d701a587", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking waker-fn v1.2.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking anyhow v1.0.98 [INFO] [stderr] Checking infer v0.2.3 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking retain_mut v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking heck v0.5.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking http-provider-macro v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_qs v0.8.5 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking deadpool v0.9.5 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking wiremock v0.5.22 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_users::{anon_assoc#0}` [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/basic.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Post` is more private than the item `ApiClientTrait::get_posts::{anon_assoc#0}` [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_posts::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Post` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/basic.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Post { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/basic.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/mocking.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 25 | / http_provider!( [INFO] [stdout] 26 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 35 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_users_by_id::{anon_assoc#0}` [INFO] [stdout] --> examples/mocking.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / http_provider!( [INFO] [stdout] 26 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 35 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users_by_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/mocking.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/mocking.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 25 | / http_provider!( [INFO] [stdout] 26 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 35 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http-provider-macro` (example "mocking") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `http-provider-macro` (example "basic") due to 4 previous errors; 2 warnings emitted [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_users_by_id::{anon_assoc#0}` [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users_by_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/params.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 72 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Post` is more private than the item `ApiClientTrait::get_posts_by_post_id::{anon_assoc#0}` [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_posts_by_post_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Post` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/params.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | struct Post { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `SearchResults` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 21 | struct SearchResults { [INFO] [stdout] | -------------------- `SearchResults` declared as private [INFO] [stdout] ... [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SearchResults` is more private than the item `ApiClientTrait::get_search::{anon_assoc#0}` [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_search::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `SearchResults` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/params.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | struct SearchResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 72 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `SearchResults` in public interface [INFO] [stdout] --> examples/params.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 21 | struct SearchResults { [INFO] [stdout] | -------------------- `SearchResults` declared as private [INFO] [stdout] ... [INFO] [stdout] 46 | / http_provider!( [INFO] [stdout] 47 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 68 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/multiple_path_params.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Post` is more private than the item `ApiClientTrait::get_users_posts_by_user_id_and_post_id::{anon_assoc#0}` [INFO] [stdout] --> examples/multiple_path_params.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users_posts_by_user_id_and_post_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Post` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/multiple_path_params.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Post { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Post` in public interface [INFO] [stdout] --> examples/multiple_path_params.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Post { [INFO] [stdout] | ----------- `Post` declared as private [INFO] [stdout] ... [INFO] [stdout] 26 | / http_provider!( [INFO] [stdout] 27 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 46 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http-provider-macro` (example "params") due to 6 previous errors; 3 warnings emitted [INFO] [stderr] error: could not compile `http-provider-macro` (example "multiple_path_params") due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_users::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_users_by_id::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_users_by_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `SearchResults` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct SearchResults { [INFO] [stdout] | -------------------- `SearchResults` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SearchResults` is more private than the item `ApiClientTrait::get_search::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_search::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `SearchResults` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct SearchResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_protected_data::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_protected_data::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `CreateUserResponse` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 27 | struct CreateUserResponse { [INFO] [stdout] | ------------------------- `CreateUserResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CreateUserResponse` is more private than the item `ApiClientTrait::post_users::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::post_users::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CreateUserResponse` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | struct CreateUserResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::put_users_by_id::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::put_users_by_id::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get_current_user::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get_current_user::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User` is more private than the item `ApiClientTrait::get::{anon_assoc#0}` [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ opaque type `ApiClientTrait::get::{anon_assoc#0}` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `User` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/advanced.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `SearchResults` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct SearchResults { [INFO] [stdout] | -------------------- `SearchResults` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `CreateUserResponse` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 27 | struct CreateUserResponse { [INFO] [stdout] | ------------------------- `CreateUserResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `User` in public interface [INFO] [stdout] --> examples/advanced.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct User { [INFO] [stdout] | ----------- `User` declared as private [INFO] [stdout] ... [INFO] [stdout] 66 | / http_provider!( [INFO] [stdout] 67 | | ApiClient, [INFO] [stdout] ... | [INFO] [stdout] 130 | | ); [INFO] [stdout] | |_^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http-provider-macro` (example "advanced") due to 16 previous errors; 8 warnings emitted [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::get_users::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::get_users::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::get_users_by_id::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::get_users_by_id::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::get_search::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::get_search::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::get_data::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::get_data::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::get::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::get::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MyResponse` is more private than the item `HttpProviderTrait::post_users::{anon_assoc#0}` [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ opaque type `HttpProviderTrait::post_users::{anon_assoc#0}` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `MyResponse` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/provider_tests.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / http_provider!( [INFO] [stdout] 11 | | HttpProvider, [INFO] [stdout] ... | [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_____^ can't leak private type [INFO] [stdout] ... [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 206 | / http_provider!( [INFO] [stdout] 207 | | SimpleProvider, [INFO] [stdout] ... | [INFO] [stdout] 221 | | ); [INFO] [stdout] | |_________^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 206 | / http_provider!( [INFO] [stdout] 207 | | SimpleProvider, [INFO] [stdout] ... | [INFO] [stdout] 221 | | ); [INFO] [stdout] | |_________^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 206 | / http_provider!( [INFO] [stdout] 207 | | SimpleProvider, [INFO] [stdout] ... | [INFO] [stdout] 221 | | ); [INFO] [stdout] | |_________^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `MyResponse` in public interface [INFO] [stdout] --> tests/provider_tests.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 51 | struct MyResponse { [INFO] [stdout] | ----------------- `MyResponse` declared as private [INFO] [stdout] ... [INFO] [stdout] 206 | / http_provider!( [INFO] [stdout] 207 | | SimpleProvider, [INFO] [stdout] ... | [INFO] [stdout] 221 | | ); [INFO] [stdout] | |_________^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `http-provider-macro` (test "provider_tests") due to 16 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "872c57c532b9c7ae1fd7dec12090baec1ec80d876d76828127f1c121d701a587", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "872c57c532b9c7ae1fd7dec12090baec1ec80d876d76828127f1c121d701a587", kill_on_drop: false }` [INFO] [stdout] 872c57c532b9c7ae1fd7dec12090baec1ec80d876d76828127f1c121d701a587