[INFO] fetching crate vmtest 0.12.0... [INFO] checking vmtest-0.12.0 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate vmtest 0.12.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate vmtest 0.12.0 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate vmtest 0.12.0 [INFO] finished tweaking crates.io crate vmtest 0.12.0 [INFO] tweaked toml for crates.io crate vmtest 0.12.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate crates.io crate vmtest 0.12.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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded comma v1.0.0 [INFO] [stderr] Downloaded qapi-codegen v0.11.1 [INFO] [stderr] Downloaded rexpect v0.5.0 [INFO] [stderr] Downloaded qapi-parser v0.10.0 [INFO] [stderr] Downloaded qapi-spec v0.3.1 [INFO] [stderr] Downloaded qapi-qga v0.12.0 [INFO] [stderr] Downloaded qapi v0.14.0 [INFO] [stderr] Downloaded test-log v0.2.13 [INFO] [stderr] Downloaded qapi-qmp v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 985bcce7b640e5f0202e60e8940d6fc0110c5cec823c9e38995a52e27171da94 [INFO] running `Command { std: "docker" "start" "-a" "985bcce7b640e5f0202e60e8940d6fc0110c5cec823c9e38995a52e27171da94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "985bcce7b640e5f0202e60e8940d6fc0110c5cec823c9e38995a52e27171da94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "985bcce7b640e5f0202e60e8940d6fc0110c5cec823c9e38995a52e27171da94", kill_on_drop: false }` [INFO] [stdout] 985bcce7b640e5f0202e60e8940d6fc0110c5cec823c9e38995a52e27171da94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14465eb5d65e17beb0d5bf1f7cd4452d42ffb2dda147aeb5ac85b685bcee0aea [INFO] running `Command { std: "docker" "start" "-a" "14465eb5d65e17beb0d5bf1f7cd4452d42ffb2dda147aeb5ac85b685bcee0aea", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling thiserror v1.0.55 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Compiling relative-path v1.9.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking comma v1.0.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling rstest_macros v0.18.2 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tempfile v3.8.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling thiserror-impl v1.0.55 [INFO] [stderr] Compiling test-log v0.2.13 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Checking rexpect v0.5.0 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking rstest v0.18.2 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking qapi-spec v0.3.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Compiling qapi-parser v0.10.0 [INFO] [stderr] Compiling qapi-codegen v0.11.1 [INFO] [stderr] Compiling qapi-qga v0.12.0 [INFO] [stderr] Compiling qapi-qmp v0.14.0 [INFO] [stderr] Checking qapi v0.14.0 [INFO] [stderr] Checking vmtest v0.12.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.16s [INFO] running `Command { std: "docker" "inspect" "14465eb5d65e17beb0d5bf1f7cd4452d42ffb2dda147aeb5ac85b685bcee0aea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14465eb5d65e17beb0d5bf1f7cd4452d42ffb2dda147aeb5ac85b685bcee0aea", kill_on_drop: false }` [INFO] [stdout] 14465eb5d65e17beb0d5bf1f7cd4452d42ffb2dda147aeb5ac85b685bcee0aea [INFO] checking vmtest-0.12.0 against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] extracting crate vmtest 0.12.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate vmtest 0.12.0 on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate vmtest 0.12.0 [INFO] finished tweaking crates.io crate vmtest 0.12.0 [INFO] tweaked toml for crates.io crate vmtest 0.12.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate vmtest 0.12.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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e8c005d566a5f34f039e0c03c065b5172cea147faedeca7de80c6b69255dacd [INFO] running `Command { std: "docker" "start" "-a" "4e8c005d566a5f34f039e0c03c065b5172cea147faedeca7de80c6b69255dacd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e8c005d566a5f34f039e0c03c065b5172cea147faedeca7de80c6b69255dacd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e8c005d566a5f34f039e0c03c065b5172cea147faedeca7de80c6b69255dacd", kill_on_drop: false }` [INFO] [stdout] 4e8c005d566a5f34f039e0c03c065b5172cea147faedeca7de80c6b69255dacd [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7eb1f37f1df16b20612f86a7f04cd4270c7194a59e0bb6e69beade3ca1caec4 [INFO] running `Command { std: "docker" "start" "-a" "c7eb1f37f1df16b20612f86a7f04cd4270c7194a59e0bb6e69beade3ca1caec4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling thiserror v1.0.55 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Compiling relative-path v1.9.0 [INFO] [stderr] Checking comma v1.0.0 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling rstest_macros v0.18.2 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Checking tempfile v3.8.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.190 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling thiserror-impl v1.0.55 [INFO] [stderr] Compiling test-log v0.2.13 [INFO] [stderr] Checking rexpect v0.5.0 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking rstest v0.18.2 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking qapi-spec v0.3.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Compiling qapi-parser v0.10.0 [INFO] [stderr] Compiling qapi-codegen v0.11.1 [INFO] [stderr] Compiling qapi-qga v0.12.0 [INFO] [stderr] Compiling qapi-qmp v0.14.0 [INFO] [stderr] Checking qapi v0.14.0 [INFO] [stderr] Checking vmtest v0.12.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/helpers.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.06s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking vmtest v0.12.0 (/tmp/fixit) [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1065:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | -------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1065 | let _ = self.updates.send(Output::BootEnd(Err(e))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1068 | }; [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Result<(ScopeGuard, QgaWrapper, Qmp, UnixStream>>), anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/qemu.rs:1070:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1070 | if let Err(e) = self.setup_vm(&qga) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1079 | child.wait().expect("command wasn't running"); [INFO] [stdout] | ----- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1071:21 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1071 | let _ = self.updates.send(Output::SetupEnd(Err(e))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1109 | } [INFO] [stdout] | - mutable borrow might be used here, when `child` is dropped and runs the `Drop` code for type `ScopeGuard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1078:12 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1078 | if self.interactive() { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] 1079 | child.wait().expect("command wasn't running"); [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1084:17 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1084 | let _ = self.updates.send(Output::CommandStart); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1085:15 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1085 | match self.run_command(&qga) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1087:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1087 | let _ = self.updates.send(Output::CommandEnd(Ok(rc))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1090:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1090 | let _ = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 1091 | | .updates [INFO] [stdout] | |____________________________^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1096:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1096 | if let Err(e) = self.sync(&qga) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vmtest` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1065:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | -------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1065 | let _ = self.updates.send(Output::BootEnd(Err(e))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1068 | }; [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Result<(ScopeGuard, QgaWrapper, Qmp, UnixStream>>), anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self` as mutable more than once at a time [INFO] [stdout] --> src/qemu.rs:1070:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1070 | if let Err(e) = self.setup_vm(&qga) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1079 | child.wait().expect("command wasn't running"); [INFO] [stdout] | ----- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1071:21 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1071 | let _ = self.updates.send(Output::SetupEnd(Err(e))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1109 | } [INFO] [stdout] | - mutable borrow might be used here, when `child` is dropped and runs the `Drop` code for type `ScopeGuard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1078:12 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1078 | if self.interactive() { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] 1079 | child.wait().expect("command wasn't running"); [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1084:17 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1084 | let _ = self.updates.send(Output::CommandStart); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1085:15 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1085 | match self.run_command(&qga) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1087:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1087 | let _ = self.updates.send(Output::CommandEnd(Ok(rc))); [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.updates` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1090:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1090 | let _ = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 1091 | | .updates [INFO] [stdout] | |____________________________^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/qemu.rs:1096:25 [INFO] [stdout] | [INFO] [stdout] 1062 | let (mut child, qga, mut qmp) = match self.boot_vm() { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1096 | if let Err(e) = self.sync(&qga) { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1102 | Ok(_) => match child.wait() { [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vmtest` (lib test) due to 10 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c7eb1f37f1df16b20612f86a7f04cd4270c7194a59e0bb6e69beade3ca1caec4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7eb1f37f1df16b20612f86a7f04cd4270c7194a59e0bb6e69beade3ca1caec4", kill_on_drop: false }` [INFO] [stdout] c7eb1f37f1df16b20612f86a7f04cd4270c7194a59e0bb6e69beade3ca1caec4