[INFO] fetching crate pallas-hardano 0.31.0... [INFO] checking pallas-hardano-0.31.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate pallas-hardano 0.31.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate pallas-hardano 0.31.0 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 pallas-hardano 0.31.0 [INFO] finished tweaking crates.io crate pallas-hardano 0.31.0 [INFO] tweaked toml for crates.io crate pallas-hardano 0.31.0 written to /workspace/builds/worker-2-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 87 packages to latest compatible versions [INFO] [stderr] Adding binary-layout v3.3.0 (available: v4.0.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.3) [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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 68077601aa347a6ed5a68dc6668f0b6798944e3e1d2209806a9e656df3de4853 [INFO] running `Command { std: "docker" "start" "-a" "68077601aa347a6ed5a68dc6668f0b6798944e3e1d2209806a9e656df3de4853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68077601aa347a6ed5a68dc6668f0b6798944e3e1d2209806a9e656df3de4853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68077601aa347a6ed5a68dc6668f0b6798944e3e1d2209806a9e656df3de4853", kill_on_drop: false }` [INFO] [stdout] 68077601aa347a6ed5a68dc6668f0b6798944e3e1d2209806a9e656df3de4853 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] c22c1910c99a2783dd23a8091309b7f70e3c82ad57402fb0c121e710556e9b6c [INFO] running `Command { std: "docker" "start" "-a" "c22c1910c99a2783dd23a8091309b7f70e3c82ad57402fb0c121e710556e9b6c", 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.215 [INFO] [stderr] Compiling minicbor v0.25.1 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking cryptoxide v0.4.4 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling minicbor-derive v0.15.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking base58 v0.2.0 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking binary-layout v3.3.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde_json v1.0.133 [INFO] [stderr] Checking pallas-codec v0.31.0 [INFO] [stderr] Checking pallas-crypto v0.31.0 [INFO] [stderr] Checking pallas-primitives v0.31.0 [INFO] [stderr] Checking pallas-addresses v0.31.0 [INFO] [stderr] Checking pallas-network v0.31.0 [INFO] [stderr] Checking pallas-traverse v0.31.0 [INFO] [stderr] Checking pallas-hardano v0.31.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/storage/immutable/mod.rs (2 fixes) [INFO] [stdout] warning: `impl Iterator, chunk::Error>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/storage/immutable/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | ) -> Result, Error> { [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/storage/immutable/mod.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | block_hash: &[u8], [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/storage/immutable/mod.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | iter: impl Iterator, [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] 85 ~ fn iterate_till_point>( [INFO] [stdout] 86 ~ iter: T, [INFO] [stdout] 87 | slot: u64, [INFO] [stdout] 88 | block_hash: &[u8], [INFO] [stdout] 89 ~ ) -> Result + use, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator, chunk::Error>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/storage/immutable/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | ) -> Result, Error> { [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/storage/immutable/mod.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | block_hash: &[u8], [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/storage/immutable/mod.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | iter: impl Iterator, [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] 85 ~ fn iterate_till_point>( [INFO] [stdout] 86 ~ iter: T, [INFO] [stdout] 87 | slot: u64, [INFO] [stdout] 88 | block_hash: &[u8], [INFO] [stdout] 89 ~ ) -> Result + use, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.81s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking pallas-hardano v0.31.0 (/tmp/fixit) [INFO] [stdout] error[E0515]: cannot return value referencing local variable `block_hash` [INFO] [stdout] --> src/storage/immutable/mod.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(iterate_till_point(iter, slot, block_hash.as_slice()).map(Box::new)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `block_hash` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [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/storage/immutable/mod.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(iterate_till_point(iter, slot, block_hash.as_slice()).map(Box::new)?) [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/storage/immutable/mod.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | iter: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 85 ~ fn iterate_till_point>( [INFO] [stdout] 86 ~ iter: T, [INFO] [stdout] 87 | slot: u64, [INFO] [stdout] 88 | block_hash: &[u8], [INFO] [stdout] 89 ~ ) -> Result + use, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pallas-hardano` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing local variable `block_hash` [INFO] [stdout] --> src/storage/immutable/mod.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(iterate_till_point(iter, slot, block_hash.as_slice()).map(Box::new)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `block_hash` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [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/storage/immutable/mod.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | Ok(iterate_till_point(iter, slot, block_hash.as_slice()).map(Box::new)?) [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/storage/immutable/mod.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | iter: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 85 ~ fn iterate_till_point>( [INFO] [stdout] 86 ~ iter: T, [INFO] [stdout] 87 | slot: u64, [INFO] [stdout] 88 | block_hash: &[u8], [INFO] [stdout] 89 ~ ) -> Result + use, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/storage/immutable/mod.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | / hex::decode("3dcf4b00e32099b20c598fd90aed0060e77b1899e58645b9fe7b95a7ca9b306c") [INFO] [stdout] 407 | | .unwrap() [INFO] [stdout] | |_________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 410 | .unwrap(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 411 | let block = reader.next().unwrap().unwrap(); [INFO] [stdout] | ------ borrow later used 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/storage/immutable/mod.rs:403:26 [INFO] [stdout] | [INFO] [stdout] 403 | let mut reader = iterate_till_point( [INFO] [stdout] | __________________________^ [INFO] [stdout] 404 | | reader, [INFO] [stdout] 405 | | 27756199, [INFO] [stdout] 406 | | hex::decode("3dcf4b00e32099b20c598fd90aed0060e77b1899e58645b9fe7b95a7ca9b306c") [INFO] [stdout] 407 | | .unwrap() [INFO] [stdout] 408 | | .as_slice(), [INFO] [stdout] 409 | | ) [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/storage/immutable/mod.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | iter: impl Iterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 403 ~ let binding = hex::decode("3dcf4b00e32099b20c598fd90aed0060e77b1899e58645b9fe7b95a7ca9b306c") [INFO] [stdout] 404 + .unwrap(); [INFO] [stdout] 405 ~ let mut reader = iterate_till_point( [INFO] [stdout] 406 | reader, [INFO] [stdout] 407 | 27756199, [INFO] [stdout] 408 ~ binding [INFO] [stdout] | [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 85 ~ fn iterate_till_point>( [INFO] [stdout] 86 ~ iter: T, [INFO] [stdout] 87 | slot: u64, [INFO] [stdout] 88 | block_hash: &[u8], [INFO] [stdout] 89 ~ ) -> Result + use, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pallas-hardano` (lib test) due to 2 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" "c22c1910c99a2783dd23a8091309b7f70e3c82ad57402fb0c121e710556e9b6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c22c1910c99a2783dd23a8091309b7f70e3c82ad57402fb0c121e710556e9b6c", kill_on_drop: false }` [INFO] [stdout] c22c1910c99a2783dd23a8091309b7f70e3c82ad57402fb0c121e710556e9b6c