[INFO] cloning repository https://github.com/tripabhi/spoof [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tripabhi/spoof" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftripabhi%2Fspoof", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftripabhi%2Fspoof'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d9176f27ae605ce7e7f00b746283a2f0913bde7 [INFO] checking tripabhi/spoof against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftripabhi%2Fspoof" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tripabhi/spoof [INFO] finished tweaking git repo https://github.com/tripabhi/spoof [INFO] tweaked toml for git repo https://github.com/tripabhi/spoof written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tripabhi/spoof on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tripabhi/spoof 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.52.3 [INFO] [stderr] Downloaded env_logger v0.11.3 [INFO] [stderr] Downloaded either v1.10.0 [INFO] [stderr] Downloaded hermit-abi v0.3.8 [INFO] [stderr] Downloaded hyper-util v0.1.3 [INFO] [stderr] Downloaded indexmap v2.2.3 [INFO] [stderr] Downloaded base64 v0.22.0 [INFO] [stderr] Downloaded cc v1.0.88 [INFO] [stderr] Downloaded hyper v1.2.0 [INFO] [stderr] Downloaded serde_json v1.0.114 [INFO] [stderr] Downloaded syn v2.0.50 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.3 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.3 [INFO] [stderr] Downloaded tokio v1.36.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.3 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.3 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.3 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.3 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f34f2c1212483b19ae80c39da10f332dd863b81a85570dbb35f31ec9df09527 [INFO] running `Command { std: "docker" "start" "-a" "0f34f2c1212483b19ae80c39da10f332dd863b81a85570dbb35f31ec9df09527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f34f2c1212483b19ae80c39da10f332dd863b81a85570dbb35f31ec9df09527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f34f2c1212483b19ae80c39da10f332dd863b81a85570dbb35f31ec9df09527", kill_on_drop: false }` [INFO] [stdout] 0f34f2c1212483b19ae80c39da10f332dd863b81a85570dbb35f31ec9df09527 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff24f58585303e31baeba5293cfd6cc98d28a8ca8d1bce9055249e4aca12ee0e [INFO] running `Command { std: "docker" "start" "-a" "ff24f58585303e31baeba5293cfd6cc98d28a8ca8d1bce9055249e4aca12ee0e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking indexmap v2.2.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Compiling syn v2.0.50 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking http-body-util v0.1.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.2 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking spoof v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Matcher` is never constructed [INFO] [stdout] --> src/core/mock.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) struct Matcher(Box); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StubMappingBuilder` is never constructed [INFO] [stdout] --> src/core/mock.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct StubMappingBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mock` is never constructed [INFO] [stdout] --> src/core/mock.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Mock { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stub_for` is never used [INFO] [stdout] --> src/core/mock.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mock { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 20 | pub fn stub_for(matcher: M) -> StubMappingBuilder [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `and` is never used [INFO] [stdout] --> src/core/mock.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl StubMappingBuilder { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 31 | pub fn and(mut self, matcher: M) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Match` is never used [INFO] [stdout] --> src/core/mock.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub trait Match: Send + Sync { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Bytes(Vec), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 - Bytes(Vec), [INFO] [stdout] 9 + Bytes(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Json(Value), [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - Json(Value), [INFO] [stdout] 10 + Json(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BodyExactMatcher(Body); [INFO] [stdout] | ---------------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct BodyContainsMatcher(Vec); [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct BodyPartialJsonMatcher(Value); [INFO] [stdout] | ---------------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HeaderExactMatcher(HeaderName, Vec); [INFO] [stdout] | ------------------ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HeaderExistsMatcher(HeaderName); [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct HeaderValueRegexMatcher(HeaderName, Regex); [INFO] [stdout] | ----------------------- ^^^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:102:39 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct HeaderValueContainsMatcher(HeaderName, HashSet); [INFO] [stdout] | -------------------------- ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct BasicAuthMatcher(HeaderExactMatcher); [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:174:31 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct BearerTokenMatcher(HeaderExactMatcher); [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/method.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MethodMatcher(Method); [INFO] [stdout] | ------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/path.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PathExactMatcher(String); [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/path.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PathRegexMatcher(Regex); [INFO] [stdout] | ---------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct QueryParamExactMatcher(String, String); [INFO] [stdout] | ---------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct QueryParamContainsMatcher(String, String); [INFO] [stdout] | ------------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct QueryParamExistsMatcher(String, bool); [INFO] [stdout] | ----------------------- ^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct QueryParamCaseInsensitiveMatcher(String, String); [INFO] [stdout] | -------------------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct QueryParamRegexMatcher(String, Regex); [INFO] [stdout] | ---------------------- ^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MockRegistrable` is never used [INFO] [stdout] --> src/model/request/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait MockRegistrable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/net/request.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_hyper` is never used [INFO] [stdout] --> src/net/request.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 13 | impl Request { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | pub(crate) async fn from_hyper(request: hyper::Request) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockResponseBuilder` is never constructed [INFO] [stdout] --> src/response/response_template.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MockResponseBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/response/response_template.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl MockResponseBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn with_status_code(mut self, status_code: S) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn with_header_append(mut self, key: K, value: V) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn with_header_insert(mut self, key: K, value: V) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn with_body_bytes(mut self, body: B) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_body_json(mut self, body: S) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn with_body_string(mut self, body: T) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn with_body(mut self, body: T, mime_type: &str) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn with_delay(mut self, delay: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub(crate) fn build_response(&self) -> Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matcher` is never constructed [INFO] [stdout] --> src/core/mock.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) struct Matcher(Box); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StubMappingBuilder` is never constructed [INFO] [stdout] --> src/core/mock.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct StubMappingBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mock` is never constructed [INFO] [stdout] --> src/core/mock.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Mock { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `stub_for` is never used [INFO] [stdout] --> src/core/mock.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Mock { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 20 | pub fn stub_for(matcher: M) -> StubMappingBuilder [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `and` is never used [INFO] [stdout] --> src/core/mock.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl StubMappingBuilder { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 31 | pub fn and(mut self, matcher: M) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Match` is never used [INFO] [stdout] --> src/core/mock.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub trait Match: Send + Sync { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | Bytes(Vec), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 - Bytes(Vec), [INFO] [stdout] 9 + Bytes(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Json(Value), [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - Json(Value), [INFO] [stdout] 10 + Json(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BodyExactMatcher(Body); [INFO] [stdout] | ---------------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct BodyContainsMatcher(Vec); [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/body.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct BodyPartialJsonMatcher(Value); [INFO] [stdout] | ---------------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HeaderExactMatcher(HeaderName, Vec); [INFO] [stdout] | ------------------ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HeaderExistsMatcher(HeaderName); [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct HeaderValueRegexMatcher(HeaderName, Regex); [INFO] [stdout] | ----------------------- ^^^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/header.rs:102:39 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct HeaderValueContainsMatcher(HeaderName, HashSet); [INFO] [stdout] | -------------------------- ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct BasicAuthMatcher(HeaderExactMatcher); [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/header.rs:174:31 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct BearerTokenMatcher(HeaderExactMatcher); [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/method.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MethodMatcher(Method); [INFO] [stdout] | ------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/path.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PathExactMatcher(String); [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/matcher/path.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PathRegexMatcher(Regex); [INFO] [stdout] | ---------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct QueryParamExactMatcher(String, String); [INFO] [stdout] | ---------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct QueryParamContainsMatcher(String, String); [INFO] [stdout] | ------------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct QueryParamExistsMatcher(String, bool); [INFO] [stdout] | ----------------------- ^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct QueryParamCaseInsensitiveMatcher(String, String); [INFO] [stdout] | -------------------------------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/matcher/query.rs:103:35 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct QueryParamRegexMatcher(String, Regex); [INFO] [stdout] | ---------------------- ^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MockRegistrable` is never used [INFO] [stdout] --> src/model/request/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait MockRegistrable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Request` is never constructed [INFO] [stdout] --> src/net/request.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Request { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_hyper` is never used [INFO] [stdout] --> src/net/request.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 13 | impl Request { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | pub(crate) async fn from_hyper(request: hyper::Request) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockResponseBuilder` is never constructed [INFO] [stdout] --> src/response/response_template.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MockResponseBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/response/response_template.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl MockResponseBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn with_status_code(mut self, status_code: S) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn with_header_append(mut self, key: K, value: V) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn with_header_insert(mut self, key: K, value: V) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn with_body_bytes(mut self, body: B) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_body_json(mut self, body: S) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn with_body_string(mut self, body: T) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn with_body(mut self, body: T, mime_type: &str) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn with_delay(mut self, delay: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub(crate) fn build_response(&self) -> Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.05s [INFO] running `Command { std: "docker" "inspect" "ff24f58585303e31baeba5293cfd6cc98d28a8ca8d1bce9055249e4aca12ee0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff24f58585303e31baeba5293cfd6cc98d28a8ca8d1bce9055249e4aca12ee0e", kill_on_drop: false }` [INFO] [stdout] ff24f58585303e31baeba5293cfd6cc98d28a8ca8d1bce9055249e4aca12ee0e