[INFO] fetching crate pact_matching 0.9.3... [INFO] testing pact_matching-0.9.3 against master#432e145bd5a974c5b6f4dd9b352891bd7502b69d for pr-87041 [INFO] extracting crate pact_matching 0.9.3 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate pact_matching 0.9.3 on toolchain 432e145bd5a974c5b6f4dd9b352891bd7502b69d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pact_matching 0.9.3 [INFO] finished tweaking crates.io crate pact_matching 0.9.3 [INFO] tweaked toml for crates.io crate pact_matching 0.9.3 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81e00d5c4958403f4e2ef664c80640fbc36b00cb3e0119c3f7117f8ddda8e39d [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" "81e00d5c4958403f4e2ef664c80640fbc36b00cb3e0119c3f7117f8ddda8e39d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81e00d5c4958403f4e2ef664c80640fbc36b00cb3e0119c3f7117f8ddda8e39d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81e00d5c4958403f4e2ef664c80640fbc36b00cb3e0119c3f7117f8ddda8e39d", kill_on_drop: false }` [INFO] [stdout] 81e00d5c4958403f4e2ef664c80640fbc36b00cb3e0119c3f7117f8ddda8e39d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 26dd910f2fb14f2fa9e300ccecc04dd62c3a895bdcefa2155568d91235c307f7 [INFO] running `Command { std: "docker" "start" "-a" "26dd910f2fb14f2fa9e300ccecc04dd62c3a895bdcefa2155568d91235c307f7", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling tokio v1.8.1 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling hyper v0.14.10 [INFO] [stderr] Compiling hyper-rustls v0.22.1 [INFO] [stderr] Compiling reqwest v0.11.4 [INFO] [stderr] Compiling pact_models v0.0.5 [INFO] [stderr] Compiling pact_matching v0.9.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/generators.rs:434:22 [INFO] [stdout] | [INFO] [stdout] 429 | fn generate_value(&self, value: &u16, context: &HashMap<&str, Value>) -> Result { [INFO] [stdout] | ------------------- expected `Result` because of return type [INFO] [stdout] ... [INFO] [stdout] 434 | Ok(val) => u16::try_from(val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `anyhow::Error` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, std::string::String>` [INFO] [stdout] found enum `Result<_, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::string::String: From` is not satisfied [INFO] [stdout] --> src/models/generators.rs:549:22 [INFO] [stdout] | [INFO] [stdout] 549 | Ok(val) => String::try_from(val), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `From` is not implemented for `std::string::String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 3 others [INFO] [stdout] = note: required because of the requirements on the impl of `std::convert::Into` for `DataValue` [INFO] [stdout] = note: required because of the requirements on the impl of `TryFrom` for `std::string::String` [INFO] [stdout] = note: required by `try_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/models/generators.rs:550:23 [INFO] [stdout] | [INFO] [stdout] 548 | / match generate_value_from_context(exp, context, dt) { [INFO] [stdout] 549 | | Ok(val) => String::try_from(val), [INFO] [stdout] | | --------------------- this is found to be of type `Result` [INFO] [stdout] 550 | | Err(err) => Err(err) [INFO] [stdout] | | ^^^^^^^^ expected enum `Infallible`, found struct `std::string::String` [INFO] [stdout] 551 | | }, [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `Result` [INFO] [stdout] found enum `Result<_, std::string::String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/models/generators.rs:1115:5 [INFO] [stdout] | [INFO] [stdout] 1112 | let result = if contains_expressions(expression) { [INFO] [stdout] | ________________- [INFO] [stdout] 1113 | | parse_expression(expression, &MapValueResolver { context: context.clone() }) [INFO] [stdout] | | ---------------------------------------------------------------------------- expected because of this [INFO] [stdout] 1114 | | } else { [INFO] [stdout] 1115 | | context.get(expression).map(|v| json_to_string(v)) [INFO] [stdout] | |_____^ [INFO] [stdout] 1116 | || .ok_or(format!("Value '{}' was not found in the provided context", expression)) [INFO] [stdout] | ||_____________________________________________________________________________________^ expected enum `Value`, found struct `std::string::String` [INFO] [stdout] 1117 | | }; [INFO] [stdout] | |___- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `Result` [INFO] [stdout] found enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/generators.rs:1118:3 [INFO] [stdout] | [INFO] [stdout] 1111 | pub(crate) fn generate_value_from_context(expression: &str, context: &HashMap<&str, Value>, data_type: &Option) -> Result` because of return type [INFO] [stdout] ... [INFO] [stdout] 1118 | data_type.clone().unwrap_or(DataType::RAW).wrap(result) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `anyhow::Error` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, std::string::String>` [INFO] [stdout] found enum `Result<_, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/json.rs:517:23 [INFO] [stdout] | [INFO] [stdout] 515 | / match generate_value_from_context(exp, context, dt) { [INFO] [stdout] 516 | | Ok(val) => val.as_json(), [INFO] [stdout] | | ------------- this is found to be of type `Result` [INFO] [stdout] 517 | | Err(err) => Err(err) [INFO] [stdout] | | ^^^^^^^^ expected struct `anyhow::Error`, found struct `std::string::String` [INFO] [stdout] 518 | | }, [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `Result` [INFO] [stdout] found enum `Result<_, std::string::String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pact_matching` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "26dd910f2fb14f2fa9e300ccecc04dd62c3a895bdcefa2155568d91235c307f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26dd910f2fb14f2fa9e300ccecc04dd62c3a895bdcefa2155568d91235c307f7", kill_on_drop: false }` [INFO] [stdout] 26dd910f2fb14f2fa9e300ccecc04dd62c3a895bdcefa2155568d91235c307f7