[INFO] fetching crate trait-gen 0.3.2... [INFO] checking trait-gen-0.3.2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate trait-gen 0.3.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate trait-gen 0.3.2 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 095f6a82768e27659298d8b2e8d291b65dc4cb7a14fee0519a976bc38516c106 [INFO] running `Command { std: "docker" "start" "-a" "095f6a82768e27659298d8b2e8d291b65dc4cb7a14fee0519a976bc38516c106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "095f6a82768e27659298d8b2e8d291b65dc4cb7a14fee0519a976bc38516c106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "095f6a82768e27659298d8b2e8d291b65dc4cb7a14fee0519a976bc38516c106", kill_on_drop: false }` [INFO] [stdout] 095f6a82768e27659298d8b2e8d291b65dc4cb7a14fee0519a976bc38516c106 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8623dc7d53265269e591e822e617abc80e04f73128f1fe21e61cebc435003a27 [INFO] running `Command { std: "docker" "start" "-a" "8623dc7d53265269e591e822e617abc80e04f73128f1fe21e61cebc435003a27", 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.86 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-ident v1.0.13 [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 (13 fixes) [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `trait_gen` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/tests.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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/tests.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | ($s:expr, $e:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 66 | ($s:expr_2021, $e:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/tests.rs:66:6 [INFO] [stderr] | [INFO] [stderr] 66 | ($s:expr_2021, $e:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/tests.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | ($t:ty, $s:expr_2021, $e:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/tests.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 86 | ($t:ty, $s:expr, $e:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 86 | ($t:ty, $s:expr_2021, $e:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] [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] [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/ccf408f4326a858c00dd845a64a86b16f360a801/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/ccf408f4326a858c00dd845a64a86b16f360a801/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: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: associated function `fake` is never used [INFO] [stdout] --> tests/integration.rs:512:29 [INFO] [stdout] | [INFO] [stdout] 512 | trait Number { fn fake(x: X) -> T; } [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | associated function in this trait [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `type_case_04::Meter` instead of dereferencing the inner type [INFO] [stdout] --> tests/integration.rs:227:20 [INFO] [stdout] | [INFO] [stdout] 227 | T(-self.deref().0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `type_case_04::Foot` instead of dereferencing the inner type [INFO] [stdout] --> tests/integration.rs:227:20 [INFO] [stdout] | [INFO] [stdout] 227 | T(-self.deref().0) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.18s [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] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trait-gen` (test "integration") 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" "8623dc7d53265269e591e822e617abc80e04f73128f1fe21e61cebc435003a27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8623dc7d53265269e591e822e617abc80e04f73128f1fe21e61cebc435003a27", kill_on_drop: false }` [INFO] [stdout] 8623dc7d53265269e591e822e617abc80e04f73128f1fe21e61cebc435003a27