[INFO] fetching crate tpm-box 0.1.1... [INFO] checking tpm-box-0.1.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate tpm-box 0.1.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate tpm-box 0.1.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tpm-box 0.1.1 [INFO] finished tweaking crates.io crate tpm-box 0.1.1 [INFO] tweaked toml for crates.io crate tpm-box 0.1.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 69 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bindgen v0.66.1 (available: v0.70.1) [INFO] [stderr] Adding bitfield v0.13.2 (available: v0.17.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding peeking_take_while v0.1.2 (available: v1.0.0) [INFO] [stderr] Adding picky-asn1 v0.8.0 (available: v0.9.0) [INFO] [stderr] Adding picky-asn1-der v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding picky-asn1-x509 v0.12.0 (available: v0.13.0) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding testresult v0.3.0 (available: v0.4.1) [INFO] [stderr] Adding which v4.4.2 (available: v6.0.3) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 053ce3337b9ec9faf13e20e84fc02b02b321be82df67f3726eda9709e0a18004 [INFO] running `Command { std: "docker" "start" "-a" "053ce3337b9ec9faf13e20e84fc02b02b321be82df67f3726eda9709e0a18004", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "053ce3337b9ec9faf13e20e84fc02b02b321be82df67f3726eda9709e0a18004", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "053ce3337b9ec9faf13e20e84fc02b02b321be82df67f3726eda9709e0a18004", kill_on_drop: false }` [INFO] [stdout] 053ce3337b9ec9faf13e20e84fc02b02b321be82df67f3726eda9709e0a18004 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17198f9a05f31ef47b155a113ab2e9b1bd585531726c4d1c31fd14a4c5f9bc61 [INFO] running `Command { std: "docker" "start" "-a" "17198f9a05f31ef47b155a113ab2e9b1bd585531726c4d1c31fd14a4c5f9bc61", 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 rustix v0.38.37 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling bindgen v0.66.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Checking hostname-validator v1.1.1 [INFO] [stderr] Checking malloced v1.3.1 [INFO] [stderr] Checking testresult v0.3.0 [INFO] [stderr] Compiling tss-esapi v8.0.0-alpha [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling enumflags2_derive v0.7.10 [INFO] [stderr] Checking enumflags2 v0.7.10 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Compiling tss-esapi-sys v0.5.0 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking oid v0.2.1 [INFO] [stderr] Checking picky-asn1 v0.8.0 [INFO] [stderr] Checking picky-asn1-der v0.4.1 [INFO] [stderr] Checking picky-asn1-x509 v0.12.0 [INFO] [stderr] Checking tpm-box v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | ) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | &mut self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:127:65 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:132:65 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:132:20 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | ) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | &mut self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:127:65 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsRef<[u8]>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:132:65 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:132:20 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.01s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking tpm-box v0.1.1 (/tmp/fixit) [INFO] [stdout] error[E0499]: cannot borrow `data` as mutable more than once at a time [INFO] [stdout] --> src/lib.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 145 | let ciphertext = data.encrypt(&plaintext)?; [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 146 | let unsealed = data.decrypt(&ciphertext)?; [INFO] [stdout] | ^^^^ ----------- first borrow later used here [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tpm-box` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "17198f9a05f31ef47b155a113ab2e9b1bd585531726c4d1c31fd14a4c5f9bc61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17198f9a05f31ef47b155a113ab2e9b1bd585531726c4d1c31fd14a4c5f9bc61", kill_on_drop: false }` [INFO] [stdout] 17198f9a05f31ef47b155a113ab2e9b1bd585531726c4d1c31fd14a4c5f9bc61