[INFO] crate httpmock 0.4.0 is already in cache [INFO] checking httpmock-0.4.0 against master#8ac1525e091d3db28e67adcbbd6db1e1deaa37fb for pr-73323 [INFO] extracting crate httpmock 0.4.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate httpmock 0.4.0 on toolchain 8ac1525e091d3db28e67adcbbd6db1e1deaa37fb [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8ac1525e091d3db28e67adcbbd6db1e1deaa37fb" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate httpmock 0.4.0 [INFO] finished tweaking crates.io crate httpmock 0.4.0 [INFO] tweaked toml for crates.io crate httpmock 0.4.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate httpmock 0.4.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8ac1525e091d3db28e67adcbbd6db1e1deaa37fb" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+8ac1525e091d3db28e67adcbbd6db1e1deaa37fb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 662e4e82d21123db219e1fe35eccf5087884b03ad2bd4e338cd4062f251d0203 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "662e4e82d21123db219e1fe35eccf5087884b03ad2bd4e338cd4062f251d0203", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "662e4e82d21123db219e1fe35eccf5087884b03ad2bd4e338cd4062f251d0203", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "662e4e82d21123db219e1fe35eccf5087884b03ad2bd4e338cd4062f251d0203", kill_on_drop: false }` [INFO] [stdout] 662e4e82d21123db219e1fe35eccf5087884b03ad2bd4e338cd4062f251d0203 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+8ac1525e091d3db28e67adcbbd6db1e1deaa37fb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f169841da9d12023d0235b47a2180fff59694aac86e961e093a58f515e5c93c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4f169841da9d12023d0235b47a2180fff59694aac86e961e093a58f515e5c93c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling serde v1.0.112 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.63 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Compiling wasm-bindgen v0.2.63 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Checking parking v1.0.3 [INFO] [stderr] Checking fastrand v1.2.4 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling curl v0.4.30 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Compiling isahc v0.9.5 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Checking dyn-clone v1.0.2 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking base64 v0.12.2 [INFO] [stderr] Checking atomic-counter v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling libnghttp2-sys v0.1.4+1.41.0 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling curl-sys v0.4.32+curl-7.70.0 [INFO] [stderr] Compiling indexmap v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking tracing-core v0.1.10 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.23 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking kv-log-macro v1.0.6 [INFO] [stderr] Checking quote v1.0.7 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.63 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.63 [INFO] [stderr] Compiling serde_derive v1.0.112 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.8 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling httpmock-macros v0.3.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.63 [INFO] [stderr] Compiling extend v0.1.2 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking tracing v0.1.15 [INFO] [stderr] Checking pin-project v0.4.22 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking actix-threadpool v0.3.2 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking tokio-test v0.2.1 [INFO] [stderr] Checking blocking v0.4.6 [INFO] [stderr] Checking h2 v0.2.5 [INFO] [stderr] Checking sluice v0.5.2 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking smol v0.1.18 [INFO] [stderr] Checking serde_regex v1.0.0 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking hyper v0.13.6 [INFO] [stderr] Checking assert-json-diff v1.0.3 [INFO] [stderr] Checking js-sys v0.3.40 [INFO] [stderr] Checking hyper-tls v0.4.1 [INFO] [stderr] Checking reqwest v0.10.6 [INFO] [stderr] Checking web-sys v0.3.40 [INFO] [stderr] Checking gloo-timers v0.2.1 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking async-std v1.6.2 [INFO] [stderr] Checking puddle v0.1.0 [INFO] [stderr] Checking httpmock v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::MockServerRequest` [INFO] [stdout] --> src/server/handlers.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | use crate::MockServerRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::Body` [INFO] [stdout] --> src/server/mod.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | use hyper::Body; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/server/mod.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parts` [INFO] [stdout] --> src/server/mod.rs:339:14 [INFO] [stdout] | [INFO] [stdout] 339 | let (parts, body) = res.into_parts(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_parts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_adapter` [INFO] [stdout] --> src/api/mock.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | fn get_adapter(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/server/data.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new(status: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_headers` [INFO] [stdout] --> src/server/data.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn with_headers(mut self, arg: BTreeMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_body` [INFO] [stdout] --> src/server/data.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn with_body(mut self, arg: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/server/data.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_path` [INFO] [stdout] --> src/server/data.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn with_path(mut self, arg: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_method` [INFO] [stdout] --> src/server/data.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn with_method(mut self, arg: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_body` [INFO] [stdout] --> src/server/data.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn with_body(mut self, arg: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_json_body` [INFO] [stdout] --> src/server/data.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn with_json_body(mut self, arg: Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_path_contains` [INFO] [stdout] --> src/server/data.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn with_path_contains(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_path_matches` [INFO] [stdout] --> src/server/data.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn with_path_matches(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_headers` [INFO] [stdout] --> src/server/data.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn with_headers(mut self, arg: BTreeMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_header_exists` [INFO] [stdout] --> src/server/data.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn with_header_exists(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_json_body_includes` [INFO] [stdout] --> src/server/data.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn with_json_body_includes(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_body_contains` [INFO] [stdout] --> src/server/data.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn with_body_contains(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_body_matches` [INFO] [stdout] --> src/server/data.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn with_body_matches(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_query_param_exists` [INFO] [stdout] --> src/server/data.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn with_query_param_exists(mut self, arg: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_query_param` [INFO] [stdout] --> src/server/data.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn with_query_param(mut self, arg: BTreeMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/server/data.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn new(req: RequestRequirements, mock: MockServerHttpResponse) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_adapter` [INFO] [stdout] --> src/api/mock.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | fn get_adapter(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_headers` [INFO] [stdout] --> src/server/data.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn with_headers(mut self, arg: BTreeMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_body` [INFO] [stdout] --> src/server/data.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn with_body(mut self, arg: String) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> tests/integration_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut response = Request::post(&uri) [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut response = Request::post(&uri) [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 44s [INFO] running `Command { std: "docker" "inspect" "4f169841da9d12023d0235b47a2180fff59694aac86e961e093a58f515e5c93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f169841da9d12023d0235b47a2180fff59694aac86e961e093a58f515e5c93c", kill_on_drop: false }` [INFO] [stdout] 4f169841da9d12023d0235b47a2180fff59694aac86e961e093a58f515e5c93c