[INFO] fetching crate reqwest-rewire 0.2.0... [INFO] testing reqwest-rewire-0.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate reqwest-rewire 0.2.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate reqwest-rewire 0.2.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate reqwest-rewire 0.2.0 [INFO] tweaked toml for crates.io crate reqwest-rewire 0.2.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate reqwest-rewire 0.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate reqwest-rewire 0.2.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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 293507a73c91ec24a42959fa330461c1ce621c2965195e884ddb4b73895bddbf [INFO] running `Command { std: "docker" "start" "-a" "293507a73c91ec24a42959fa330461c1ce621c2965195e884ddb4b73895bddbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "293507a73c91ec24a42959fa330461c1ce621c2965195e884ddb4b73895bddbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "293507a73c91ec24a42959fa330461c1ce621c2965195e884ddb4b73895bddbf", kill_on_drop: false }` [INFO] [stdout] 293507a73c91ec24a42959fa330461c1ce621c2965195e884ddb4b73895bddbf [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 256012128c2e87cbd6179a71a2fb899999edffb0cd533397aa27114669989014 [INFO] running `Command { std: "docker" "start" "-a" "256012128c2e87cbd6179a71a2fb899999edffb0cd533397aa27114669989014", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.7 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling rustls-pki-types v1.13.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling reqwest-rewire v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/client.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.58s [INFO] running `Command { std: "docker" "inspect" "256012128c2e87cbd6179a71a2fb899999edffb0cd533397aa27114669989014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "256012128c2e87cbd6179a71a2fb899999edffb0cd533397aa27114669989014", kill_on_drop: false }` [INFO] [stdout] 256012128c2e87cbd6179a71a2fb899999edffb0cd533397aa27114669989014 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fd8e4484cd618a4538d88e9f16cef2e1bc96ccfae291f86a610187ac0a5329a [INFO] running `Command { std: "docker" "start" "-a" "5fd8e4484cd618a4538d88e9f16cef2e1bc96ccfae291f86a610187ac0a5329a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling zmij v1.0.13 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling path-tree v0.8.3 [INFO] [stderr] Compiling stringmetrics v2.2.2 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tabwriter v1.4.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling async-lock v3.4.2 [INFO] [stderr] Compiling async-object-pool v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_regex v1.1.0 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling headers v0.4.1 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling httpmock v0.8.2 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling reqwest-rewire v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/client.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stdout] --> src/client.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(not(tarpaulin))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_rewire_test_params` is never used [INFO] [stdout] --> tests/common/test_utils.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn build_rewire_test_params(server: &MockServer) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 43.68s [INFO] running `Command { std: "docker" "inspect" "5fd8e4484cd618a4538d88e9f16cef2e1bc96ccfae291f86a610187ac0a5329a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd8e4484cd618a4538d88e9f16cef2e1bc96ccfae291f86a610187ac0a5329a", kill_on_drop: false }` [INFO] [stdout] 5fd8e4484cd618a4538d88e9f16cef2e1bc96ccfae291f86a610187ac0a5329a [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ad62309c92a8a3f85d53d49d7f334397b66bc507aa75230b72caa2f909ca3883 [INFO] running `Command { std: "docker" "start" "-a" "ad62309c92a8a3f85d53d49d7f334397b66bc507aa75230b72caa2f909ca3883", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `tarpaulin` [INFO] [stderr] --> src/client.rs:9:11 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg(not(tarpaulin))] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `reqwest-rewire` (lib) generated 1 warning [INFO] [stderr] warning: function `build_rewire_test_params` is never used [INFO] [stderr] --> tests/common/test_utils.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn build_rewire_test_params(server: &MockServer) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `reqwest-rewire` (test "reqwest_client_tests") generated 1 warning [INFO] [stderr] warning: `reqwest-rewire` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/reqwest_rewire-a5fb15fb142265eb) [INFO] [stdout] running 0 tests [INFO] [stderr] Running tests/reqwest_client_tests.rs (/opt/rustwide/target/debug/deps/reqwest_client_tests-997edb989f78e560) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 41 tests [INFO] [stdout] test test_patch_request_with_body ... ok [INFO] [stdout] test test_post_request_with_body_and_query_args ... ok [INFO] [stdout] test test_patch_request_with_body_and_query_args ... ok [INFO] [stdout] test test_patch_request ... ok [INFO] [stdout] test test_get_request_with_query_args ... ok [INFO] [stdout] test test_delete_request_with_query_args ... ok [INFO] [stdout] test test_head_request ... ok [INFO] [stdout] test test_head_request_with_query_args ... ok [INFO] [stdout] test test_post_request ... ok [INFO] [stdout] test test_patch_request_with_query_args ... ok [INFO] [stdout] test test_delete_request_with_body_and_query_args ... ok [INFO] [stdout] test test_delete_request_with_body ... ok [INFO] [stdout] test test_post_request_with_query_args ... ok [INFO] [stdout] test test_get_request ... ok [INFO] [stdout] test test_post_request_with_body ... ok [INFO] [stdout] test test_put_request_with_body ... ok [INFO] [stdout] test test_put_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_head_request_with_query_args ... ok [INFO] [stdout] test test_request_get_request ... ok [INFO] [stdout] test test_put_request ... ok [INFO] [stdout] test test_delete_request ... ok [INFO] [stdout] test test_request_delete_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_delete_request ... ok [INFO] [stdout] test test_request_get_request_with_query_args ... ok [INFO] [stdout] test test_put_request_with_query_args ... ok [INFO] [stdout] test test_request_patch_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_patch_request_with_query_args ... ok [INFO] [stdout] test test_request_post_request_with_body ... ok [INFO] [stdout] test test_request_head_request ... ok [INFO] [stdout] test test_request_delete_request_with_query_args ... ok [INFO] [stdout] test test_request_patch_request_with_body ... ok [INFO] [stdout] test test_request_patch_request ... ok [INFO] [stdout] test test_request_put_request ... ok [INFO] [stdout] test test_request_delete_request_with_body ... ok [INFO] [stdout] test test_request_post_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_post_request_with_query_args ... ok [INFO] [stdout] test test_request_put_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_put_request_with_body ... ok [INFO] [stdout] test test_with_nested_args ... ok [INFO] [stdout] test test_request_post_request ... ok [INFO] [stdout] test test_request_put_request_with_query_args ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.06s [INFO] [stdout] [INFO] [stderr] Running tests/rewire_client_tests.rs (/opt/rustwide/target/debug/deps/rewire_client_tests-039a6d301b572cdd) [INFO] [stdout] [INFO] [stdout] running 82 tests [INFO] [stdout] test test_get_request ... ok [INFO] [stdout] test test_delete_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_delete_request_with_body_rewire ... ok [INFO] [stdout] test test_get_request_with_query_args ... ok [INFO] [stdout] test test_head_request_with_query_args ... ok [INFO] [stdout] test test_delete_request_with_body ... ok [INFO] [stdout] test test_head_request_rewire ... ok [INFO] [stdout] test test_delete_request_with_query_args_rewire ... ok [INFO] [stdout] test test_patch_request_rewire ... ok [INFO] [stdout] test test_patch_request_with_body_and_query_args ... ok [INFO] [stdout] test test_head_request ... ok [INFO] [stdout] test test_delete_request_with_body_and_query_args ... ok [INFO] [stdout] test test_get_request_rewire ... ok [INFO] [stdout] test test_post_request_rewire ... ok [INFO] [stdout] test test_patch_request_with_body_rewire ... ok [INFO] [stdout] test test_delete_request_rewire ... ok [INFO] [stdout] test test_delete_request ... ok [INFO] [stdout] test test_post_request ... ok [INFO] [stdout] test test_patch_request_with_query_args_rewire ... ok [INFO] [stdout] test test_delete_request_with_query_args ... ok [INFO] [stdout] test test_patch_request_with_body ... ok [INFO] [stdout] test test_post_request_with_query_args ... ok [INFO] [stdout] test test_patch_request ... ok [INFO] [stdout] test test_get_request_with_query_args_rewire ... ok [INFO] [stdout] test test_head_request_with_query_args_rewire ... ok [INFO] [stdout] test test_post_request_with_body ... ok [INFO] [stdout] test test_patch_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_put_request_with_query_args ... ok [INFO] [stdout] test test_post_request_with_body_rewire ... ok [INFO] [stdout] test test_put_request_with_body_and_query_args ... ok [INFO] [stdout] test test_patch_request_with_query_args ... ok [INFO] [stdout] test test_post_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_request_delete_request_rewire ... ok [INFO] [stdout] test test_post_request_with_body_and_query_args ... ok [INFO] [stdout] test test_put_request_with_query_args_rewire ... ok [INFO] [stdout] test test_put_request_with_body ... ok [INFO] [stdout] test test_put_request_with_body_rewire ... ok [INFO] [stdout] test test_put_request ... ok [INFO] [stdout] test test_put_request_rewire ... ok [INFO] [stdout] test test_request_delete_request_with_body_and_query_args ... ok [INFO] [stdout] test test_post_request_with_query_args_rewire ... ok [INFO] [stdout] test test_put_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_request_delete_request_with_body ... ok [INFO] [stdout] test test_request_delete_request ... ok [INFO] [stdout] test test_request_delete_request_with_body_rewire ... ok [INFO] [stdout] test test_request_delete_request_with_query_args ... ok [INFO] [stdout] test test_request_delete_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_request_get_request ... ok [INFO] [stdout] test test_request_get_request_rewire ... ok [INFO] [stdout] test test_request_head_request ... ok [INFO] [stdout] test test_request_get_request_with_query_args ... ok [INFO] [stdout] test test_request_patch_request ... ok [INFO] [stdout] test test_request_patch_request_rewire ... ok [INFO] [stdout] test test_request_delete_request_with_query_args_rewire ... ok [INFO] [stdout] test test_request_patch_request_with_body ... ok [INFO] [stdout] test test_request_patch_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_patch_request_with_body_rewire ... ok [INFO] [stdout] test test_request_post_request ... ok [INFO] [stdout] test test_request_get_request_with_query_args_rewire ... ok [INFO] [stdout] test test_request_head_request_rewire ... ok [INFO] [stdout] test test_request_head_request_with_query_args_rewire ... ok [INFO] [stdout] test test_request_post_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_patch_request_with_query_args_rewire ... ok [INFO] [stdout] test test_request_patch_request_with_query_args ... ok [INFO] [stdout] test test_request_head_request_with_query_args ... ok [INFO] [stdout] test test_request_post_request_rewire ... ok [INFO] [stdout] test test_request_post_request_with_query_args_rewire ... ok [INFO] [stdout] test test_request_put_request_with_body_and_query_args ... ok [INFO] [stdout] test test_request_post_request_with_body ... ok [INFO] [stdout] test test_request_put_request ... ok [INFO] [stdout] test test_request_put_request_rewire ... ok [INFO] [stdout] test test_request_post_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_request_put_request_with_body ... ok [INFO] [stdout] test test_request_put_request_with_body_rewire ... ok [INFO] [stdout] test test_request_patch_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_request_post_request_with_body_rewire ... ok [INFO] [stdout] test test_request_put_request_with_query_args ... ok [INFO] [stdout] test test_request_post_request_with_query_args ... ok [INFO] [stdout] test test_with_nested_args_rewire ... ok [INFO] [stdout] test test_request_put_request_with_body_and_query_args_rewire ... ok [INFO] [stdout] test test_with_nested_args ... ok [INFO] [stdout] test test_request_put_request_with_query_args_rewire ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 82 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.10s [INFO] [stdout] [INFO] [stderr] Doc-tests reqwest_rewire [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - (line 51) ... FAILED [INFO] [stdout] test src/lib.rs - (line 37) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::head (line 201) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::post (line 121) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::patch (line 161) ... FAILED [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 59) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::delete (line 181) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::get_url (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - (line 78) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::request (line 221) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::get (line 101) ... FAILED [INFO] [stdout] test src/rewire_client.rs - rewire_client::RewireClient::put (line 141) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 51) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `RewireClient` in this scope [INFO] [stdout] --> src/lib.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | TestClient(RewireClient), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 51 + use reqwest_rewire::RewireClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 37) stdout ---- [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/lib.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 42 | / client [INFO] [stdout] 43 | | .get("https://real-api.com/api/users") [INFO] [stdout] 44 | | .send() [INFO] [stdout] 45 | | .unwrap(); [INFO] [stdout] | | -^^^^^^ method not found in `impl Future>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 45 | .await.unwrap(); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::head (line 201) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 205 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 205 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:210:53 [INFO] [stdout] | [INFO] [stdout] 202 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_201_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 210 | client.head("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:211:65 [INFO] [stdout] | [INFO] [stdout] 202 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_201_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 211 | client.head("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:212:61 [INFO] [stdout] | [INFO] [stdout] 202 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_201_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 212 | client.head("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:208:50 [INFO] [stdout] | [INFO] [stdout] 208 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 208 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 208 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:208:97 [INFO] [stdout] | [INFO] [stdout] 208 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 208 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 208 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::post (line 121) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 125 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 125 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:130:53 [INFO] [stdout] | [INFO] [stdout] 122 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_121_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 130 | client.post("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:131:65 [INFO] [stdout] | [INFO] [stdout] 122 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_121_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 131 | client.post("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:132:61 [INFO] [stdout] | [INFO] [stdout] 122 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_121_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 132 | client.post("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:128:50 [INFO] [stdout] | [INFO] [stdout] 128 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 128 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 128 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:128:97 [INFO] [stdout] | [INFO] [stdout] 128 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 128 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 128 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::patch (line 161) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 165 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 165 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:170:54 [INFO] [stdout] | [INFO] [stdout] 162 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_161_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 170 | client.patch("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:171:66 [INFO] [stdout] | [INFO] [stdout] 162 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_161_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 171 | client.patch("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 162 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_161_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 172 | client.patch("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:168:50 [INFO] [stdout] | [INFO] [stdout] 168 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 168 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 168 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:168:97 [INFO] [stdout] | [INFO] [stdout] 168 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 168 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 168 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 72) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `fetch_data` in this scope [INFO] [stdout] --> src/lib.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | fetch_data(&client); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 59) stdout ---- [INFO] [stdout] error[E0599]: no method named `get` found for enum `Client` in the current scope [INFO] [stdout] --> src/lib.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 63 | / client [INFO] [stdout] 64 | | .get("https://real-api.com/api/users") [INFO] [stdout] | | -^^^ method not found in `Client` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/testable_client.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn get(&self, url: &str) -> RequestBuilder; [INFO] [stdout] | --- the method is available for `Client` here [INFO] [stdout] | [INFO] [stdout] note: the method `get` exists on the type `reqwest::async_impl::client::Client` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.28/src/async_impl/client.rs:2498:5 [INFO] [stdout] | [INFO] [stdout] 2498 | pub fn get(&self, url: U) -> RequestBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `TestableClient` which provides `get` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 58 + use crate::reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::delete (line 181) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 185 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 185 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:190:55 [INFO] [stdout] | [INFO] [stdout] 182 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_181_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 190 | client.delete("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:191:67 [INFO] [stdout] | [INFO] [stdout] 182 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_181_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 191 | client.delete("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:192:63 [INFO] [stdout] | [INFO] [stdout] 182 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_181_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 192 | client.delete("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:188:50 [INFO] [stdout] | [INFO] [stdout] 188 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 188 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 188 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:188:97 [INFO] [stdout] | [INFO] [stdout] 188 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 188 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 188 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::get_url (line 36) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 40 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 40 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:45:52 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_36_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 45 | client.get("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:46:64 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_36_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 46 | client.get("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:47:60 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_36_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 47 | client.get("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 43 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 43 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:43:97 [INFO] [stdout] | [INFO] [stdout] 43 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 43 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 43 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 78) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `fetch_data` in this scope [INFO] [stdout] --> src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | fetch_data(&client); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::request (line 221) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:224:21 [INFO] [stdout] | [INFO] [stdout] 224 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 225 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 225 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:230:75 [INFO] [stdout] | [INFO] [stdout] 222 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_221_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 230 | client.request(http::Method::GET, "http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:231:87 [INFO] [stdout] | [INFO] [stdout] 222 | ...nake_case)] fn _doctest_main_src_rewire_client_rs_221_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 231 | ...od::GET, "http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:232:83 [INFO] [stdout] | [INFO] [stdout] 222 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_221_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 232 | client.request(http::Method::GET, "http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:228:50 [INFO] [stdout] | [INFO] [stdout] 228 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 228 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 228 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:228:97 [INFO] [stdout] | [INFO] [stdout] 228 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 228 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 228 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::get (line 101) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 105 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 105 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:110:52 [INFO] [stdout] | [INFO] [stdout] 102 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_101_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 110 | client.get("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:111:64 [INFO] [stdout] | [INFO] [stdout] 102 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_101_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 111 | client.get("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 102 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_101_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 112 | client.get("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:108:50 [INFO] [stdout] | [INFO] [stdout] 108 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 108 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 108 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:108:97 [INFO] [stdout] | [INFO] [stdout] 108 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 108 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 108 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rewire_client.rs - rewire_client::RewireClient::put (line 141) stdout ---- [INFO] [stdout] error[E0603]: module `rewire_client` is private [INFO] [stdout] --> src/rewire_client.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | use reqwest_rewire::rewire_client::RewireClient; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `rewire_client` is defined here [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 161 | mod rewire_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `testable_client` is private [INFO] [stdout] --> src/rewire_client.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `testable_client` is defined here [INFO] [stdout] --> src/lib.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | mod testable_client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 145 - use reqwest_rewire::testable_client::TestableClient; [INFO] [stdout] 145 + use reqwest_rewire::TestableClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:150:52 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_141_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 150 | client.put("http://localhost:8080/example").send().await.unwrap(); // hits http://localhost:8080/rewired [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:151:64 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_141_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 151 | client.put("http://localhost:8080/example/nested_path").send().await.unwrap(); // hits http://localhost:8080/rewired/nested_path [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/rewire_client.rs:152:60 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_rewire_client_rs_141_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 152 | client.put("http://localhost:8080/example?foo=bar").send().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:148:50 [INFO] [stdout] | [INFO] [stdout] 148 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 148 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 148 + redirects.insert("http://localhost:8080/example".to_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/rewire_client.rs:148:97 [INFO] [stdout] | [INFO] [stdout] 148 | redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_string` with a similar name [INFO] [stdout] | [INFO] [stdout] 148 - redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".into_string()); [INFO] [stdout] 148 + redirects.insert("http://localhost:8080/example".into_string(), "http://localhost:8080/rewired".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0603, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 37) [INFO] [stdout] src/lib.rs - (line 51) [INFO] [stdout] src/lib.rs - (line 59) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] src/lib.rs - (line 78) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::delete (line 181) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::get (line 101) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::get_url (line 36) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::head (line 201) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::patch (line 161) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::post (line 121) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::put (line 141) [INFO] [stdout] src/rewire_client.rs - rewire_client::RewireClient::request (line 221) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.12s; merged doctests compilation took 0.58s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ad62309c92a8a3f85d53d49d7f334397b66bc507aa75230b72caa2f909ca3883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad62309c92a8a3f85d53d49d7f334397b66bc507aa75230b72caa2f909ca3883", kill_on_drop: false }` [INFO] [stdout] ad62309c92a8a3f85d53d49d7f334397b66bc507aa75230b72caa2f909ca3883