[INFO] fetching crate divan 0.1.15... [INFO] checking divan-0.1.15 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate divan 0.1.15 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate divan 0.1.15 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate divan 0.1.15 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate divan 0.1.15 [INFO] tweaked toml for crates.io crate divan 0.1.15 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate divan 0.1.15 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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 091732d2c8b0390ec55ff847a5484eac20aaa0aca89cd4c78e25234528fac8dd [INFO] running `Command { std: "docker" "start" "-a" "091732d2c8b0390ec55ff847a5484eac20aaa0aca89cd4c78e25234528fac8dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "091732d2c8b0390ec55ff847a5484eac20aaa0aca89cd4c78e25234528fac8dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "091732d2c8b0390ec55ff847a5484eac20aaa0aca89cd4c78e25234528fac8dd", kill_on_drop: false }` [INFO] [stdout] 091732d2c8b0390ec55ff847a5484eac20aaa0aca89cd4c78e25234528fac8dd [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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 400cc00946c21971c2cadec9059c06f72f7f5f0e47b2b4d6e7f7a6f734a6f55b [INFO] running `Command { std: "docker" "start" "-a" "400cc00946c21971c2cadec9059c06f72f7f5f0e47b2b4d6e7f7a6f734a6f55b", 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.20 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking regex-lite v0.1.5 [INFO] [stderr] Checking condtype v1.3.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling libmimalloc-sys v0.1.35 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Checking mimalloc v0.1.39 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Compiling divan-macros v0.1.15 [INFO] [stderr] Checking divan v0.1.15 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/entry/meta.rs (1 fix) [INFO] [stderr] Fixed src/counter/any_counter.rs (1 fix) [INFO] [stderr] Fixed src/alloc.rs (4 fixes) [INFO] [stderr] Fixed src/entry/mod.rs (1 fix) [INFO] [stderr] Fixed src/time/timestamp/mod.rs (1 fix) [INFO] [stderr] Fixed src/bench/defer.rs (1 fix) [INFO] [stderr] Fixed src/entry/generic.rs (2 fixes) [INFO] [stderr] Fixed src/divan.rs (1 fix) [INFO] [stdout] warning: `impl for<'b, 'c, 'd> Fn(usize, Option<&'b Barrier>, &'c mut DeferStore, &'d mut (dyn for<'b> FnMut(&'b I) + 'd)) -> ([timestamp::Timestamp; 2], ThreadAllocInfo)` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bench/mod.rs:852:10 [INFO] [stdout] | [INFO] [stdout] 852 | ) -> impl Fn( [INFO] [stdout] | __________^ [INFO] [stdout] 853 | | usize, [INFO] [stdout] 854 | | Option<&Barrier>, [INFO] [stdout] 855 | | &mut DeferStore, [INFO] [stdout] 856 | | &mut dyn FnMut(&I), [INFO] [stdout] 857 | | ) -> ([Timestamp; 2], ThreadAllocInfo) { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bench/mod.rs:538:6 [INFO] [stdout] | [INFO] [stdout] 538 | impl<'a> BenchContext<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 848 | &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] [stderr] Fixed src/private.rs (2 fixes) [INFO] [stderr] Migrating tests/attr_options.rs from 2021 edition to 2024 [INFO] [stdout] warning: `impl for<'b, 'c, 'd> Fn(usize, Option<&'b Barrier>, &'c mut DeferStore, &'d mut (dyn for<'b> FnMut(&'b I) + 'd)) -> ([timestamp::Timestamp; 2], alloc::ThreadAllocInfo)` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bench/mod.rs:852:10 [INFO] [stdout] | [INFO] [stdout] 852 | ) -> impl Fn( [INFO] [stdout] | __________^ [INFO] [stdout] 853 | | usize, [INFO] [stdout] 854 | | Option<&Barrier>, [INFO] [stdout] 855 | | &mut DeferStore, [INFO] [stdout] 856 | | &mut dyn FnMut(&I), [INFO] [stdout] 857 | | ) -> ([Timestamp; 2], ThreadAllocInfo) { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bench/mod.rs:538:6 [INFO] [stdout] | [INFO] [stdout] 538 | impl<'a> BenchContext<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 848 | &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] [stderr] Migrating tests/forbid_unsafe.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/entry_properties.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/entry_properties.rs (1 fix) [INFO] [stderr] Migrating tests/weird_usage.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.28s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking divan v0.1.15 (/tmp/fixit) [INFO] [stdout] error[E0502]: cannot borrow `self.samples.time_samples` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bench/mod.rs:653:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 653 | self.samples.time_samples.reserve(self.options.sample_count.unwrap_or(1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 700 | let ([start, end], alloc_info) = record_sample( [INFO] [stdout] | ------------- immutable borrow later captured here by closure [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/bench/mod.rs:609:29 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: add a precise capturing bound to avoid overcapturing [INFO] [stdout] | [INFO] [stdout] 857 | ) -> ([Timestamp; 2], ThreadAllocInfo) + use I, impl Fn(&UnsafeCell>) -> O, impl Fn(&UnsafeCell>)> { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.samples.sample_size` because it is borrowed [INFO] [stdout] --> src/bench/mod.rs:676:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- `self.samples.sample_size` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 676 | self.samples.sample_size = sample_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self.samples.sample_size` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 700 | let ([start, end], alloc_info) = record_sample( [INFO] [stdout] | ------------- borrow later captured here by closure [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/bench/mod.rs:609:29 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: add a precise capturing bound to avoid overcapturing [INFO] [stdout] | [INFO] [stdout] 857 | ) -> ([Timestamp; 2], ThreadAllocInfo) + use I, impl Fn(&UnsafeCell>) -> O, impl Fn(&UnsafeCell>)> { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.samples.time_samples` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bench/mod.rs:653:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 653 | self.samples.time_samples.reserve(self.options.sample_count.unwrap_or(1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 700 | let ([start, end], alloc_info) = record_sample( [INFO] [stdout] | ------------- immutable borrow later captured here by closure [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/bench/mod.rs:609:29 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: add a precise capturing bound to avoid overcapturing [INFO] [stdout] | [INFO] [stdout] 857 | ) -> ([Timestamp; 2], ThreadAllocInfo) + use I, impl Fn(&UnsafeCell>) -> O, impl Fn(&UnsafeCell>)> { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.samples.sample_size` because it is borrowed [INFO] [stdout] --> src/bench/mod.rs:676:13 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ---- `self.samples.sample_size` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 676 | self.samples.sample_size = sample_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self.samples.sample_size` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 700 | let ([start, end], alloc_info) = record_sample( [INFO] [stdout] | ------------- borrow later captured here by closure [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/bench/mod.rs:609:29 [INFO] [stdout] | [INFO] [stdout] 609 | let record_sample = self.sample_recorder(gen_input, benched, drop_input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: add a precise capturing bound to avoid overcapturing [INFO] [stdout] | [INFO] [stdout] 857 | ) -> ([Timestamp; 2], ThreadAllocInfo) + use I, impl Fn(&UnsafeCell>) -> O, impl Fn(&UnsafeCell>)> { [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `divan` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `divan` (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" "400cc00946c21971c2cadec9059c06f72f7f5f0e47b2b4d6e7f7a6f734a6f55b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "400cc00946c21971c2cadec9059c06f72f7f5f0e47b2b4d6e7f7a6f734a6f55b", kill_on_drop: false }` [INFO] [stdout] 400cc00946c21971c2cadec9059c06f72f7f5f0e47b2b4d6e7f7a6f734a6f55b