[INFO] cloning repository https://github.com/dilawarm/two-phase-commit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dilawarm/two-phase-commit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdilawarm%2Ftwo-phase-commit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdilawarm%2Ftwo-phase-commit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d170225b9bdf727557b355c97d9368a6d8334228 [INFO] testing dilawarm/two-phase-commit against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdilawarm%2Ftwo-phase-commit" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dilawarm/two-phase-commit [INFO] finished tweaking git repo https://github.com/dilawarm/two-phase-commit [INFO] tweaked toml for git repo https://github.com/dilawarm/two-phase-commit written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dilawarm/two-phase-commit on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dilawarm/two-phase-commit 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f87f50e928bd0d712ebe7ceb239bcec589703e69aadd409f4332128d6a259ce [INFO] running `Command { std: "docker" "start" "-a" "0f87f50e928bd0d712ebe7ceb239bcec589703e69aadd409f4332128d6a259ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f87f50e928bd0d712ebe7ceb239bcec589703e69aadd409f4332128d6a259ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f87f50e928bd0d712ebe7ceb239bcec589703e69aadd409f4332128d6a259ce", kill_on_drop: false }` [INFO] [stdout] 0f87f50e928bd0d712ebe7ceb239bcec589703e69aadd409f4332128d6a259ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8500cf8f13d01fc8e015872fd85aebc63268bf49cfefc58df0f8794f6d1cf1d [INFO] running `Command { std: "docker" "start" "-a" "e8500cf8f13d01fc8e015872fd85aebc63268bf49cfefc58df0f8794f6d1cf1d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling serde_json v1.0.51 [INFO] [stderr] Compiling orchestrator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> orchestrator.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] | [INFO] [stdout] 16 + extern crate serde; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Order: serde::de::Deserialize<'_>` is not satisfied [INFO] [stdout] --> orchestrator.rs:554:38 [INFO] [stdout] | [INFO] [stdout] 554 | match serde_json::from_str::(&body_string) { [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `serde::de::Deserialize<'_>` is not implemented for `Order` [INFO] [stdout] --> orchestrator.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | struct Order { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `serde::de::Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 127 others [INFO] [stdout] note: required by a bound in `serde_json::from_str` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.51/src/de.rs:2397:8 [INFO] [stdout] | [INFO] [stdout] 2395 | pub fn from_str<'a, T>(s: &'a str) -> Result [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] 2396 | where [INFO] [stdout] 2397 | T: de::Deserialize<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `wallet_stream` [INFO] [stdout] --> orchestrator.rs:284:37 [INFO] [stdout] | [INFO] [stdout] 269 | let wallet_stream = match TcpStream::connect_timeout(&wallet_socket, timeout) { [INFO] [stdout] | ------------- move occurs because `wallet_stream` has type `TcpStream`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 278 | if let Err(_) = prepare_transaction(wallet_stream, order_stream, account, amount, user_id, items) { [INFO] [stdout] | ------------- value moved here [INFO] [stdout] ... [INFO] [stdout] 284 | match get_prepare_responses(wallet_stream, order_stream) { [INFO] [stdout] | ^^^^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `prepare_transaction` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> orchestrator.rs:331:24 [INFO] [stdout] | [INFO] [stdout] 330 | fn prepare_transaction( [INFO] [stdout] | ------------------- in this function [INFO] [stdout] 331 | mut wallet_stream: TcpStream, [INFO] [stdout] | ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `order_stream` [INFO] [stdout] --> orchestrator.rs:284:52 [INFO] [stdout] | [INFO] [stdout] 261 | let order_stream = match TcpStream::connect_timeout(&order_socket, timeout) { [INFO] [stdout] | ------------ move occurs because `order_stream` has type `TcpStream`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 278 | if let Err(_) = prepare_transaction(wallet_stream, order_stream, account, amount, user_id, items) { [INFO] [stdout] | ------------ value moved here [INFO] [stdout] ... [INFO] [stdout] 284 | match get_prepare_responses(wallet_stream, order_stream) { [INFO] [stdout] | ^^^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `prepare_transaction` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> orchestrator.rs:332:23 [INFO] [stdout] | [INFO] [stdout] 330 | fn prepare_transaction( [INFO] [stdout] | ------------------- in this function [INFO] [stdout] 331 | mut wallet_stream: TcpStream, [INFO] [stdout] 332 | mut order_stream: TcpStream, [INFO] [stdout] | ^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0382, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `orchestrator` (bin "orchestrator") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "e8500cf8f13d01fc8e015872fd85aebc63268bf49cfefc58df0f8794f6d1cf1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8500cf8f13d01fc8e015872fd85aebc63268bf49cfefc58df0f8794f6d1cf1d", kill_on_drop: false }` [INFO] [stdout] e8500cf8f13d01fc8e015872fd85aebc63268bf49cfefc58df0f8794f6d1cf1d