[INFO] fetching crate tpm-box 0.1.1... [INFO] checking tpm-box-0.1.1 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate tpm-box 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate tpm-box 0.1.1 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "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-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "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 testresult v0.3.0 (available: v0.4.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2661b496ff693236e0c114c3d45e38dadd2c3b78b9bc69b1a68987fcc203845b [INFO] running `Command { std: "docker" "start" "-a" "2661b496ff693236e0c114c3d45e38dadd2c3b78b9bc69b1a68987fcc203845b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2661b496ff693236e0c114c3d45e38dadd2c3b78b9bc69b1a68987fcc203845b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2661b496ff693236e0c114c3d45e38dadd2c3b78b9bc69b1a68987fcc203845b", kill_on_drop: false }` [INFO] [stdout] 2661b496ff693236e0c114c3d45e38dadd2c3b78b9bc69b1a68987fcc203845b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c1f4160a9e42f8f38bfa7eec234873240357c659e11a4a8e8c42d5a30bdfae9 [INFO] running `Command { std: "docker" "start" "-a" "3c1f4160a9e42f8f38bfa7eec234873240357c659e11a4a8e8c42d5a30bdfae9", 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 proc-macro2 v1.0.92 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling prettyplease v0.2.25 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling bindgen v0.66.1 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking hostname-validator v1.1.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling tss-esapi v8.0.0-alpha [INFO] [stderr] Checking malloced v1.3.1 [INFO] [stderr] Checking testresult v0.3.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling enumflags2_derive v0.7.10 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking enumflags2 v0.7.10 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling tss-esapi-sys v0.5.0 [INFO] [stderr] Checking oid v0.2.1 [INFO] [stderr] Checking serde_bytes v0.11.15 [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: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | data: impl AsRef<[u8]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 106 ~ fn encrypt_decrypt>( [INFO] [stdout] 107 | &mut self, [INFO] [stdout] 108 ~ data: T, [INFO] [stdout] 109 | decrypt: bool, [INFO] [stdout] 110 ~ ) -> Result + use> { [INFO] [stdout] | [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] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt>(&mut self, data: T) -> Result + use> { [INFO] [stdout] | ++++++++++++++++ ~ ++++++++ [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] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt>(&mut self, data: T) -> Result + use> { [INFO] [stdout] | ++++++++++++++++ ~ ++++++++ [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: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | data: impl AsRef<[u8]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 106 ~ fn encrypt_decrypt>( [INFO] [stdout] 107 | &mut self, [INFO] [stdout] 108 ~ data: T, [INFO] [stdout] 109 | decrypt: bool, [INFO] [stdout] 110 ~ ) -> Result + use> { [INFO] [stdout] | [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] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt>(&mut self, data: T) -> Result + use> { [INFO] [stdout] | ++++++++++++++++ ~ ++++++++ [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] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 132 | pub fn decrypt>(&mut self, data: T) -> Result + use> { [INFO] [stdout] | ++++++++++++++++ ~ ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.79s [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] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/lib.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | let ciphertext = data.encrypt(&plaintext)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt(&mut self, data: impl AsRef<[u8]>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 127 | pub fn encrypt>(&mut self, data: T) -> Result + use> { [INFO] [stdout] | ++++++++++++++++ ~ ++++++++ [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 1 previous error [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" "3c1f4160a9e42f8f38bfa7eec234873240357c659e11a4a8e8c42d5a30bdfae9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c1f4160a9e42f8f38bfa7eec234873240357c659e11a4a8e8c42d5a30bdfae9", kill_on_drop: false }` [INFO] [stdout] 3c1f4160a9e42f8f38bfa7eec234873240357c659e11a4a8e8c42d5a30bdfae9