[INFO] fetching crate trait-gen 0.3.2... [INFO] checking trait-gen-0.3.2 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate trait-gen 0.3.2 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate trait-gen 0.3.2 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 trait-gen 0.3.2 [INFO] finished tweaking crates.io crate trait-gen 0.3.2 [INFO] tweaked toml for crates.io crate trait-gen 0.3.2 written to /workspace/builds/worker-7-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 7 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.89) [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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 1029d3d5a904043b8efa82881b7bb0b4deb87283a9b90ae88eaad5e8cbb47fb9 [INFO] running `Command { std: "docker" "start" "-a" "1029d3d5a904043b8efa82881b7bb0b4deb87283a9b90ae88eaad5e8cbb47fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1029d3d5a904043b8efa82881b7bb0b4deb87283a9b90ae88eaad5e8cbb47fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1029d3d5a904043b8efa82881b7bb0b4deb87283a9b90ae88eaad5e8cbb47fb9", kill_on_drop: false }` [INFO] [stdout] 1029d3d5a904043b8efa82881b7bb0b4deb87283a9b90ae88eaad5e8cbb47fb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 11424d6ea8901b18255bc804fd6b265a52d5b552c3cda78d0949093be8ddedd9 [INFO] running `Command { std: "docker" "start" "-a" "11424d6ea8901b18255bc804fd6b265a52d5b552c3cda78d0949093be8ddedd9", 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 syn v1.0.109 [INFO] [stderr] Checking unicode-ident v1.0.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking trait-gen v0.3.2 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (11 fixes) [INFO] [stderr] Fixed src/tests.rs (2 fixes) [INFO] [stderr] Migrating tests/integration.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.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[E0433]: failed to resolve: use of undeclared crate or module `gen` [INFO] [stderr] --> tests/integration.rs:312:17 [INFO] [stderr] | [INFO] [stderr] 312 | r#gen::U(self.0 + rhs.0) [INFO] [stderr] | ^^^^^ use of undeclared crate or module `gen` [INFO] [stderr] [INFO] [stderr] error[E0369]: cannot add `path_case_02::Meter` to `path_case_02::Meter` [INFO] [stderr] --> tests/integration.rs:321:23 [INFO] [stderr] | [INFO] [stderr] 321 | let c = a + b; [INFO] [stderr] | - ^ - path_case_02::Meter [INFO] [stderr] | | [INFO] [stderr] | path_case_02::Meter [INFO] [stderr] | [INFO] [stderr] note: an implementation of `Add` might be missing for `path_case_02::Meter` [INFO] [stderr] --> tests/integration.rs:300:5 [INFO] [stderr] | [INFO] [stderr] 300 | struct Meter(T); [INFO] [stderr] | ^^^^^^^^^^^^^^^ must implement `Add` [INFO] [stderr] note: the trait `Add` must be implemented [INFO] [stderr] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/core/src/ops/arith.rs:76:1 [INFO] [stderr] [INFO] [stderr] error[E0369]: cannot add `path_case_02::Foot` to `path_case_02::Foot` [INFO] [stderr] --> tests/integration.rs:327:23 [INFO] [stderr] | [INFO] [stderr] 327 | let c = a + b; [INFO] [stderr] | - ^ - path_case_02::Foot [INFO] [stderr] | | [INFO] [stderr] | path_case_02::Foot [INFO] [stderr] | [INFO] [stderr] note: an implementation of `Add` might be missing for `path_case_02::Foot` [INFO] [stderr] --> tests/integration.rs:301:5 [INFO] [stderr] | [INFO] [stderr] 301 | struct Foot(T); [INFO] [stderr] | ^^^^^^^^^^^^^^ must implement `Add` [INFO] [stderr] note: the trait `Add` must be implemented [INFO] [stderr] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/core/src/ops/arith.rs:76:1 [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `show` found for struct `path_case_06::Name` in the current scope [INFO] [stderr] --> tests/integration.rs:443:32 [INFO] [stderr] | [INFO] [stderr] 427 | struct Name<'a>(&'a str); [INFO] [stderr] | --------------- method `show` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 443 | assert_eq!(Name("Bob").show(), "Bob"); [INFO] [stderr] | ^^^^ method not found in `Name<'_>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `show`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `depth::Show` [INFO] [stderr] candidate #2: `path_case_03::Show` [INFO] [stderr] candidate #3: `path_case_04::Show` [INFO] [stderr] candidate #4: `path_case_06::Show` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `show` found for struct `path_case_06::Value` in the current scope [INFO] [stderr] --> tests/integration.rs:444:33 [INFO] [stderr] | [INFO] [stderr] 428 | struct Value<'a>(&'a f64); [INFO] [stderr] | ---------------- method `show` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 444 | assert_eq!(Value(&10.0).show(), "10"); [INFO] [stderr] | ^^^^ method not found in `Value<'_>` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `show`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `depth::Show` [INFO] [stderr] candidate #2: `path_case_03::Show` [INFO] [stderr] candidate #3: `path_case_04::Show` [INFO] [stderr] candidate #4: `path_case_06::Show` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `gen` [INFO] [stderr] --> tests/integration.rs:308:22 [INFO] [stderr] | [INFO] [stderr] 308 | impl Add for r#gen::U { [INFO] [stderr] | ^^^^^ use of undeclared crate or module `gen` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `gen` [INFO] [stderr] --> tests/integration.rs:309:27 [INFO] [stderr] | [INFO] [stderr] 309 | type Output = r#gen::U; [INFO] [stderr] | ^^^^^ use of undeclared crate or module `gen` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared crate or module `gen` [INFO] [stderr] --> tests/integration.rs:435:19 [INFO] [stderr] | [INFO] [stderr] 435 | impl Show for r#gen::par<'_> { [INFO] [stderr] | ^^^^^ use of undeclared crate or module `gen` [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0369, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0369`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> tests/integration.rs:308:22 [INFO] [stdout] | [INFO] [stdout] 308 | impl Add for gen::U { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> tests/integration.rs:309:27 [INFO] [stdout] | [INFO] [stdout] 309 | type Output = gen::U; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> tests/integration.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | gen::U(self.0 + rhs.0) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> tests/integration.rs:435:19 [INFO] [stdout] | [INFO] [stdout] 435 | impl Show for gen::par<'_> { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> tests/integration.rs:457:18 [INFO] [stdout] | [INFO] [stdout] 457 | unsafe { CALLS.push(s.to_string()); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> tests/integration.rs:475:29 [INFO] [stdout] | [INFO] [stdout] 475 | assert_eq!(unsafe { CALLS.join(",") }, "u32,u64"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.02s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling trait-gen v0.3.2 (/tmp/fixit) [INFO] [stdout] error: expected type, found reserved keyword `gen` [INFO] [stdout] --> tests/integration.rs:308:22 [INFO] [stdout] | [INFO] [stdout] 308 | impl Add for gen::U { [INFO] [stdout] | ^^^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trait-gen` (test "integration") 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" "11424d6ea8901b18255bc804fd6b265a52d5b552c3cda78d0949093be8ddedd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11424d6ea8901b18255bc804fd6b265a52d5b552c3cda78d0949093be8ddedd9", kill_on_drop: false }` [INFO] [stdout] 11424d6ea8901b18255bc804fd6b265a52d5b552c3cda78d0949093be8ddedd9