[INFO] fetching crate rustpython-codegen 0.4.0... [INFO] checking rustpython-codegen-0.4.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate rustpython-codegen 0.4.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate rustpython-codegen 0.4.0 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 rustpython-codegen 0.4.0 [INFO] finished tweaking crates.io crate rustpython-codegen 0.4.0 [INFO] tweaked toml for crates.io crate rustpython-codegen 0.4.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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 95 packages to latest compatible versions [INFO] [stderr] Adding convert_case v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding encode_unicode v0.3.6 (available: v1.0.0) [INFO] [stderr] Adding itertools v0.11.0 (available: v0.13.0) [INFO] [stderr] Adding lalrpop-util v0.20.2 (available: v0.21.0) [INFO] [stderr] Adding lexical-parse-float v0.8.5 (available: v1.0.2) [INFO] [stderr] Adding lexical-parse-integer v0.8.6 (available: v1.0.2) [INFO] [stderr] Adding lexical-util v0.8.5 (available: v1.0.3) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding siphasher v0.3.11 (available: v1.0.1) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [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-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4af4bbbd077abf2a215906f84c610d29fbac9cb79550c1322563da080ec51252 [INFO] running `Command { std: "docker" "start" "-a" "4af4bbbd077abf2a215906f84c610d29fbac9cb79550c1322563da080ec51252", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4af4bbbd077abf2a215906f84c610d29fbac9cb79550c1322563da080ec51252", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4af4bbbd077abf2a215906f84c610d29fbac9cb79550c1322563da080ec51252", kill_on_drop: false }` [INFO] [stdout] 4af4bbbd077abf2a215906f84c610d29fbac9cb79550c1322563da080ec51252 [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=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] 55668d6836048889d5819116874db2547d27486bba73dccd07525f84c9f81670 [INFO] running `Command { std: "docker" "start" "-a" "55668d6836048889d5819116874db2547d27486bba73dccd07525f84c9f81670", 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 libc v0.2.159 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling malachite-nz v0.4.16 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking lexical-util v0.8.5 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Checking rustpython-parser-vendored v0.4.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking unic-ucd-category v0.9.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking lz4_flex v0.11.3 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking malachite-base v0.4.16 [INFO] [stderr] Checking lexical-parse-integer v0.8.6 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking lexical-parse-float v0.8.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking unic-ucd-ident v0.9.0 [INFO] [stderr] Checking unic-emoji-char v0.9.0 [INFO] [stderr] Checking lalrpop-util v0.20.2 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking insta v1.40.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling is-macro v0.3.6 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking rustpython-parser-core v0.4.0 [INFO] [stderr] Checking rustpython-literal v0.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling unicode_names2_generator v1.3.0 [INFO] [stderr] Compiling rustpython-parser v0.4.0 [INFO] [stderr] Compiling unicode_names2 v1.3.0 [INFO] [stderr] Checking malachite-q v0.4.16 [INFO] [stderr] Checking malachite v0.4.16 [INFO] [stderr] Checking malachite-bigint v0.2.0 [INFO] [stderr] Checking rustpython-ast v0.4.0 [INFO] [stderr] Checking rustpython-compiler-core v0.4.0 [INFO] [stderr] Checking rustpython-codegen v0.4.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rustpython_codegen` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/compile.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/compile.rs:200:6 [INFO] [stderr] | [INFO] [stderr] 200 | ($c:expr_2021, Instruction::$op:ident { $arg: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/compile.rs:203:6 [INFO] [stderr] | [INFO] [stderr] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [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/compile.rs:203:58 [INFO] [stderr] | [INFO] [stderr] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [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/compile.rs:206:6 [INFO] [stderr] | [INFO] [stderr] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [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/compile.rs:206:44 [INFO] [stderr] | [INFO] [stderr] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [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/compile.rs:209:6 [INFO] [stderr] | [INFO] [stderr] 209 | ($c:expr_2021, Instruction::$op: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 6 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/compile.rs:3141:47 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3141:74 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3147:47 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3147:74 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3157:47 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3157:74 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3163:47 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3163:74 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | ($c:expr, Instruction::$op:ident { $arg: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] 200 | ($c:expr_2021, Instruction::$op:ident { $arg:ident$(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [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] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:203:62 [INFO] [stdout] | [INFO] [stdout] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [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] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [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] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:206:48 [INFO] [stdout] | [INFO] [stdout] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [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] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | ($c:expr, Instruction::$op: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] 209 | ($c:expr_2021, Instruction::$op:ident$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/compile.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if let Some(annotation) = &arg.annotation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/compile.rs:1345:13 [INFO] [stdout] | [INFO] [stdout] 1345 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1339 ~ match &arg.annotation { Some(annotation) => { [INFO] [stdout] 1340 | self.emit_load_const(ConstantData::Str { [INFO] [stdout] ... [INFO] [stdout] 1344 | num_annotations += 1; [INFO] [stdout] 1345 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/compile.rs:3212:12 [INFO] [stdout] | [INFO] [stdout] 3212 | if let Some(doc) = try_get_constant_string(std::slice::from_ref(&expr.value)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/compile.rs:3218:9 [INFO] [stdout] | [INFO] [stdout] 3218 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 3212 ~ match try_get_constant_string(std::slice::from_ref(&expr.value)) { Some(doc) => { [INFO] [stdout] 3213 | if opts.optimize < 2 { [INFO] [stdout] ... [INFO] [stdout] 3217 | } [INFO] [stdout] 3218 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:850:24 [INFO] [stdout] | [INFO] [stdout] 850 | if let Some(expression) = &item.optional_vars { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:852:21 [INFO] [stdout] | [INFO] [stdout] 852 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 850 ~ match &item.optional_vars { Some(expression) => { [INFO] [stdout] 851 | self.scan_expression(expression, ExpressionContext::Store)?; [INFO] [stdout] 852 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1176:20 [INFO] [stdout] | [INFO] [stdout] 1176 | if let Expr::Name(ExprName { id, .. }) = &**target { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1191:17 [INFO] [stdout] | [INFO] [stdout] 1191 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1176 ~ match &**target { Expr::Name(ExprName { id, .. }) => { [INFO] [stdout] 1177 | let id = id.as_str(); [INFO] [stdout] ... [INFO] [stdout] 1190 | } [INFO] [stdout] 1191 ~ } _ => { [INFO] [stdout] 1192 | self.scan_expression(target, ExpressionContext::Store)?; [INFO] [stdout] 1193 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1326:25 [INFO] [stdout] | [INFO] [stdout] 1326 | let symbol = if let Some(symbol) = table.symbols.get_mut(name.as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1391:9 [INFO] [stdout] | [INFO] [stdout] 1391 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1326 ~ let symbol = match table.symbols.get_mut(name.as_ref()) { Some(symbol) => { [INFO] [stdout] 1327 | let flags = &symbol.flags; [INFO] [stdout] ... [INFO] [stdout] 1390 | symbol [INFO] [stdout] 1391 ~ } _ => { [INFO] [stdout] 1392 | // The symbol does not present on this scope level. [INFO] [stdout] ... [INFO] [stdout] 1407 | table.symbols.entry(name.into_owned()).or_insert(symbol) [INFO] [stdout] 1408 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rustpython_codegen` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/compile.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/compile.rs:200:6 [INFO] [stderr] | [INFO] [stderr] 200 | ($c:expr_2021, Instruction::$op:ident { $arg: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/compile.rs:203:6 [INFO] [stderr] | [INFO] [stderr] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [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/compile.rs:203:58 [INFO] [stderr] | [INFO] [stderr] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [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/compile.rs:206:6 [INFO] [stderr] | [INFO] [stderr] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [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/compile.rs:206:44 [INFO] [stderr] | [INFO] [stderr] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [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/compile.rs:209:6 [INFO] [stderr] | [INFO] [stderr] 209 | ($c:expr_2021, Instruction::$op: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/compile.rs:3302:10 [INFO] [stderr] | [INFO] [stderr] 3302 | ($value:expr_2021) => { [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 7 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/compile.rs:3141:47 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3141:74 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3147:47 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3147:74 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3157:47 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3157:74 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3163:47 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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] --> src/compile.rs:3163:74 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | ($c:expr, Instruction::$op:ident { $arg: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] 200 | ($c:expr_2021, Instruction::$op:ident { $arg:ident$(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [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] 203 | ($c:expr_2021, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:203:62 [INFO] [stdout] | [INFO] [stdout] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr $(,)? }$(,)?) => { [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] 203 | ($c:expr, Instruction::$op:ident { $arg:ident : $arg_val:expr_2021 $(,)? }$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [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] 206 | ($c:expr_2021, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:206:48 [INFO] [stdout] | [INFO] [stdout] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr $(,)? )$(,)?) => { [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] 206 | ($c:expr, Instruction::$op:ident( $arg_val:expr_2021 $(,)? )$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | ($c:expr, Instruction::$op: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] 209 | ($c:expr_2021, Instruction::$op:ident$(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/compile.rs:3302:17 [INFO] [stdout] | [INFO] [stdout] 3302 | ($value:expr) => { [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] 3302 | ($value:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/compile.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if let Some(annotation) = &arg.annotation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/compile.rs:1345:13 [INFO] [stdout] | [INFO] [stdout] 1345 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1339 ~ match &arg.annotation { Some(annotation) => { [INFO] [stdout] 1340 | self.emit_load_const(ConstantData::Str { [INFO] [stdout] ... [INFO] [stdout] 1344 | num_annotations += 1; [INFO] [stdout] 1345 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/compile.rs:3212:12 [INFO] [stdout] | [INFO] [stdout] 3212 | if let Some(doc) = try_get_constant_string(std::slice::from_ref(&expr.value)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/compile.rs:3218:9 [INFO] [stdout] | [INFO] [stdout] 3218 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 3212 ~ match try_get_constant_string(std::slice::from_ref(&expr.value)) { Some(doc) => { [INFO] [stdout] 3213 | if opts.optimize < 2 { [INFO] [stdout] ... [INFO] [stdout] 3217 | } [INFO] [stdout] 3218 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:850:24 [INFO] [stdout] | [INFO] [stdout] 850 | if let Some(expression) = &item.optional_vars { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:852:21 [INFO] [stdout] | [INFO] [stdout] 852 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 850 ~ match &item.optional_vars { Some(expression) => { [INFO] [stdout] 851 | self.scan_expression(expression, ExpressionContext::Store)?; [INFO] [stdout] 852 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1176:20 [INFO] [stdout] | [INFO] [stdout] 1176 | if let Expr::Name(ExprName { id, .. }) = &**target { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1191:17 [INFO] [stdout] | [INFO] [stdout] 1191 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1176 ~ match &**target { Expr::Name(ExprName { id, .. }) => { [INFO] [stdout] 1177 | let id = id.as_str(); [INFO] [stdout] ... [INFO] [stdout] 1190 | } [INFO] [stdout] 1191 ~ } _ => { [INFO] [stdout] 1192 | self.scan_expression(target, ExpressionContext::Store)?; [INFO] [stdout] 1193 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1326:25 [INFO] [stdout] | [INFO] [stdout] 1326 | let symbol = if let Some(symbol) = table.symbols.get_mut(name.as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symboltable.rs:1391:9 [INFO] [stdout] | [INFO] [stdout] 1391 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1326 ~ let symbol = match table.symbols.get_mut(name.as_ref()) { Some(symbol) => { [INFO] [stdout] 1327 | let flags = &symbol.flags; [INFO] [stdout] ... [INFO] [stdout] 1390 | symbol [INFO] [stdout] 1391 ~ } _ => { [INFO] [stdout] 1392 | // The symbol does not present on this scope level. [INFO] [stdout] ... [INFO] [stdout] 1407 | table.symbols.entry(name.into_owned()).or_insert(symbol) [INFO] [stdout] 1408 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.84s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rustpython-codegen v0.4.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3141:47 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3141:47 [INFO] [stdout] | [INFO] [stdout] 3141 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3147:47 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3147:47 [INFO] [stdout] | [INFO] [stdout] 3147 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3157:47 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3157:47 [INFO] [stdout] | [INFO] [stdout] 3157 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3163:47 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compile.rs:3163:47 [INFO] [stdout] | [INFO] [stdout] 3163 | || generators.iter().any(|gen| Self::contains_await(&gen.iter)) [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustpython-codegen` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustpython-codegen` (lib test) due to 5 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" "55668d6836048889d5819116874db2547d27486bba73dccd07525f84c9f81670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55668d6836048889d5819116874db2547d27486bba73dccd07525f84c9f81670", kill_on_drop: false }` [INFO] [stdout] 55668d6836048889d5819116874db2547d27486bba73dccd07525f84c9f81670