[INFO] fetching crate bon 2.3.0... [INFO] checking bon-2.3.0 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate bon 2.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate bon 2.3.0 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 bon 2.3.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate bon 2.3.0 [INFO] tweaked toml for crates.io crate bon 2.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 56 packages to latest compatible versions [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-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0da85dbaaeea316f52eaf2f95f8807b91a6062a52c80b1b0de1c869b2ca315da [INFO] running `Command { std: "docker" "start" "-a" "0da85dbaaeea316f52eaf2f95f8807b91a6062a52c80b1b0de1c869b2ca315da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0da85dbaaeea316f52eaf2f95f8807b91a6062a52c80b1b0de1c869b2ca315da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0da85dbaaeea316f52eaf2f95f8807b91a6062a52c80b1b0de1c869b2ca315da", kill_on_drop: false }` [INFO] [stdout] 0da85dbaaeea316f52eaf2f95f8807b91a6062a52c80b1b0de1c869b2ca315da [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ddb1224c7935449ccfbe6ebcaecd7dbbcb7b157e6b598b624bb793d45d87b8e [INFO] running `Command { std: "docker" "start" "-a" "3ddb1224c7935449ccfbe6ebcaecd7dbbcb7b157e6b598b624bb793d45d87b8e", 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.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Compiling target-triple v0.1.3 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking dissimilar v1.0.9 [INFO] [stderr] Checking expect-test v1.5.0 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling bon-macros v2.3.0 [INFO] [stderr] Checking trybuild v1.0.101 [INFO] [stderr] Checking bon v2.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stderr] Migrating tests/integration/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `integration` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/integration/builder/lints.rs [INFO] [stderr] * tests/integration/builder/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: duplicate `use<...>` precise capturing syntax [INFO] [stderr] --> tests/integration/builder/mod.rs:186:76 [INFO] [stderr] | [INFO] [stderr] 186 | fn method(&self, me: Option) -> impl Iterator + use<__Me> + use<> [INFO] [stderr] | ^^^^^^^^^ ----- second `use<...>` here [INFO] [stderr] [INFO] [stderr] error[E0800]: cannot find type or const parameter `__0` in this scope [INFO] [stderr] --> tests/integration/builder/lints.rs:7:62 [INFO] [stderr] | [INFO] [stderr] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone + use<__0, __Arg> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0800]: cannot find type or const parameter `__Arg` in this scope [INFO] [stderr] --> tests/integration/builder/lints.rs:7:67 [INFO] [stderr] | [INFO] [stderr] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone + use<__0, __Arg> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0800]: cannot find type or const parameter `__Me` in this scope [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> tests/integration/builder/mod.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 186 | fn method(&self, me: Option) -> impl Iterator [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] --> tests/integration/builder/mod.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | #[bon] [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] = note: this warning originates in the attribute macro `bon` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 186 | fn method(&self, me: Option) -> impl Iterator + use<__Me> [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> tests/integration/builder/mod.rs:186:80 [INFO] [stderr] | [INFO] [stderr] 186 | fn method(&self, me: Option) -> impl Iterator + use<__Me> + use<> [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: `impl Trait` must mention all type parameters in scope in `use<...>` [INFO] [stderr] --> tests/integration/builder/lints.rs:7:45 [INFO] [stderr] | [INFO] [stderr] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone + use<__0, __Arg> { [INFO] [stderr] | -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | type parameter is implicitly captured by this `impl Trait` [INFO] [stderr] | [INFO] [stderr] = note: currently, all type parameters are required to be mentioned in the precise captures list [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0800`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> tests/integration/builder/mod.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 186 | fn method(&self, me: Option) -> impl Iterator [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] --> tests/integration/builder/mod.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 186 | fn method(&self, me: Option) -> impl Iterator [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 186 | fn method(&self, me: Option) -> impl Iterator + use<> [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> tests/integration/builder/lints.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone { [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] --> tests/integration/builder/lints.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[builder] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the attribute macro `builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone + use<__0, __Arg> { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> tests/integration/builder/lints.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone { [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] --> tests/integration/builder/lints.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | fn sut(arg: &(impl Clone + Default)) -> impl Clone { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.46s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking bon v2.3.0 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "3ddb1224c7935449ccfbe6ebcaecd7dbbcb7b157e6b598b624bb793d45d87b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ddb1224c7935449ccfbe6ebcaecd7dbbcb7b157e6b598b624bb793d45d87b8e", kill_on_drop: false }` [INFO] [stdout] 3ddb1224c7935449ccfbe6ebcaecd7dbbcb7b157e6b598b624bb793d45d87b8e