[INFO] fetching crate rs4j 0.4.1... [INFO] checking rs4j-0.4.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate rs4j 0.4.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate rs4j 0.4.1 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 rs4j 0.4.1 [INFO] finished tweaking crates.io crate rs4j 0.4.1 [INFO] tweaked toml for crates.io crate rs4j 0.4.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate rs4j 0.4.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] a2b457f48cf3084375ef6a35b350bdf3b44290d96a704a9dd57112e9ce4cffcb [INFO] running `Command { std: "docker" "start" "-a" "a2b457f48cf3084375ef6a35b350bdf3b44290d96a704a9dd57112e9ce4cffcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2b457f48cf3084375ef6a35b350bdf3b44290d96a704a9dd57112e9ce4cffcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2b457f48cf3084375ef6a35b350bdf3b44290d96a704a9dd57112e9ce4cffcb", kill_on_drop: false }` [INFO] [stdout] a2b457f48cf3084375ef6a35b350bdf3b44290d96a704a9dd57112e9ce4cffcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 37074bbc12c7a336155a697bc96cc255a8a4cda6a21cd357774fedfcefd70cbe [INFO] running `Command { std: "docker" "start" "-a" "37074bbc12c7a336155a697bc96cc255a8a4cda6a21cd357774fedfcefd70cbe", 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.78 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Checking anstyle v1.0.5 [INFO] [stderr] Compiling peg-runtime v0.8.2 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking cesu8 v1.1.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking jni-sys v0.3.0 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking anstream v0.6.11 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking clap_builder v4.4.18 [INFO] [stderr] Checking combine v4.6.6 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling peg-macros v0.8.2 [INFO] [stderr] Checking peg v0.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking jni v0.21.1 [INFO] [stderr] Checking clap v4.4.18 [INFO] [stderr] Checking rs4j v0.4.1 (/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 `rs4j` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/macros.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/macros.rs:3:32 [INFO] [stderr] | [INFO] [stderr] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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/macros.rs:3:49 [INFO] [stderr] | [INFO] [stderr] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/build.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [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/build.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let gen = Generator { [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/build.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | gen_code(gen.clone(), exprs.clone(), self.bindings.clone())?; [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/build.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | gen_java_code(gen, exprs, self.output.clone())?; [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/codegen/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gen; [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/codegen/gen.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(gen: &Generator, class: ClassExpr) -> Result { [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/codegen/gen.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | gen_function(gen, &class, &bounds, func)? [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/codegen/java.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use super::gen::Generator; [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/codegen/java.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [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/codegen/java.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [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/codegen/java.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [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/codegen/java.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let annotations = if gen.with_annotations { [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/codegen/java.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pkg = gen.package, [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/codegen/java.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | let opt = if is_optional && gen.with_annotations { [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/codegen/java.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | let dir = out.join(gen.dir_pkg()); [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/codegen/rust.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gen::Generator; [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/codegen/rust.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gen: &Generator, [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/codegen/rust.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | let pkg = gen.jni_pkg(); [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/codegen/rust.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | let raw_cname = format!("{}.{}", gen.package, class.name.ident()?).replace(".", "/"); [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/generate.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [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/generate.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [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/generate.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [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/macros.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | ($self: ident.$var: ident, $val: expr, $err: 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] = 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] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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/macros.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | ($self: ident.$var: ident, $val: expr, $err: 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] 3 | ($self: ident.$var: ident, $val: expr, $err: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | if let Ok(file) = file { [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/build.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | } [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] 97 ~ match file { Ok(file) => { [INFO] [stdout] 98 | self.files.push(file); [INFO] [stdout] 99 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/gen.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if let Expr::Function(func) = item { [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/codegen/gen.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 28 ~ match item { Expr::Function(func) => { [INFO] [stdout] 29 | data.push_str(&format!( [INFO] [stdout] ... [INFO] [stdout] 32 | )); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/java.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | if let Expr::Class(class) = item { [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/codegen/java.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match item { Expr::Class(class) => { [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [INFO] [stdout] 18 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/java.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if let Expr::Function(FunctionExpr { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | args, [INFO] [stdout] 62 | | is_mut: _, [INFO] [stdout] 63 | | is_static, [INFO] [stdout] ... | [INFO] [stdout] 69 | | is_consumed: _, [INFO] [stdout] 70 | | }) = item [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/codegen/java.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 60 ~ match item [INFO] [stdout] 61 ~ { Expr::Function(FunctionExpr { [INFO] [stdout] 62 + args, [INFO] [stdout] 63 + is_mut: _, [INFO] [stdout] 64 + is_static, [INFO] [stdout] 65 + name, [INFO] [stdout] 66 + ret, [INFO] [stdout] 67 + source: _, [INFO] [stdout] 68 + rust_name: _, [INFO] [stdout] 69 + is_optional, [INFO] [stdout] 70 + is_consumed: _, [INFO] [stdout] 71 ~ }) => { [INFO] [stdout] 72 | let ret = ret [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generate.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | if let Expr::Class(class) = expr { [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/generate.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 23 ~ match expr { Expr::Class(class) => { [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/class.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(generics) = *self.generics.clone() { [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/parser/class.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | } 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] 21 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 22 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 28 | Ok(format!("{}<{}>", ident, generics)) [INFO] [stdout] 29 ~ } _ => { [INFO] [stdout] 30 | Ok(ident) [INFO] [stdout] 31 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/class.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(generics) = *self.generics.clone() { [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/parser/class.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | } 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] 35 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 36 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 42 | generics [INFO] [stdout] 43 ~ } _ => { [INFO] [stdout] 44 | String::new() [INFO] [stdout] 45 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/expr.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(generics) = *val.generics.clone() { [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/parser/expr.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | } 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] 24 ~ match *val.generics.clone() { Some(generics) => { [INFO] [stdout] 25 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(format!("{}<{}>", val.id.ident()?, generics)) [INFO] [stdout] 32 ~ } _ => { [INFO] [stdout] 33 | Ok(val.id.ident()?) [INFO] [stdout] 34 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/expr.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if let Some(generics) = *val.generics.clone() { [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/parser/expr.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | } 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] 44 ~ match *val.generics.clone() { Some(generics) => { [INFO] [stdout] 45 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 51 | Ok(format!("{}<{}>", val.id.ident_java()?, generics)) [INFO] [stdout] 52 ~ } _ => { [INFO] [stdout] 53 | Ok(val.id.ident_java()?) [INFO] [stdout] 54 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/ty.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(generics) = *self.generics.clone() { [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/parser/ty.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | } 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] 21 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 22 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(format!("{}<{}>", java_type, generics)) [INFO] [stdout] 32 ~ } _ => { [INFO] [stdout] 33 | Ok(java_type) [INFO] [stdout] 34 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rs4j` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/macros.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/macros.rs:3:32 [INFO] [stderr] | [INFO] [stderr] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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/macros.rs:3:49 [INFO] [stderr] | [INFO] [stderr] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/build.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [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/build.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let gen = Generator { [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/build.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | gen_code(gen.clone(), exprs.clone(), self.bindings.clone())?; [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/build.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | gen_java_code(gen, exprs, self.output.clone())?; [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/codegen/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gen; [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/codegen/gen.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(gen: &Generator, class: ClassExpr) -> Result { [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/codegen/gen.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | gen_function(gen, &class, &bounds, func)? [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/codegen/java.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use super::gen::Generator; [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/codegen/java.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [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/codegen/java.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [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/codegen/java.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [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/codegen/java.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let annotations = if gen.with_annotations { [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/codegen/java.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pkg = gen.package, [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/codegen/java.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | let opt = if is_optional && gen.with_annotations { [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/codegen/java.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | let dir = out.join(gen.dir_pkg()); [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/codegen/rust.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gen::Generator; [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/codegen/rust.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gen: &Generator, [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/codegen/rust.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | let pkg = gen.jni_pkg(); [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/codegen/rust.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | let raw_cname = format!("{}.{}", gen.package, class.name.ident()?).replace(".", "/"); [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/generate.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [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/generate.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [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/generate.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [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/macros.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | ($self: ident.$var: ident, $val: expr, $err: 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] = 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] 3 | ($self: ident.$var: ident, $val: expr_2021, $err: 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/macros.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | ($self: ident.$var: ident, $val: expr, $err: 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] 3 | ($self: ident.$var: ident, $val: expr, $err: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/build.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | if let Ok(file) = file { [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/build.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | } [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] 97 ~ match file { Ok(file) => { [INFO] [stdout] 98 | self.files.push(file); [INFO] [stdout] 99 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/gen.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if let Expr::Function(func) = item { [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/codegen/gen.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 28 ~ match item { Expr::Function(func) => { [INFO] [stdout] 29 | data.push_str(&format!( [INFO] [stdout] ... [INFO] [stdout] 32 | )); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/java.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | if let Expr::Class(class) = item { [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/codegen/java.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match item { Expr::Class(class) => { [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [INFO] [stdout] 18 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/java.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if let Expr::Function(FunctionExpr { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | args, [INFO] [stdout] 62 | | is_mut: _, [INFO] [stdout] 63 | | is_static, [INFO] [stdout] ... | [INFO] [stdout] 69 | | is_consumed: _, [INFO] [stdout] 70 | | }) = item [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/codegen/java.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 60 ~ match item [INFO] [stdout] 61 ~ { Expr::Function(FunctionExpr { [INFO] [stdout] 62 + args, [INFO] [stdout] 63 + is_mut: _, [INFO] [stdout] 64 + is_static, [INFO] [stdout] 65 + name, [INFO] [stdout] 66 + ret, [INFO] [stdout] 67 + source: _, [INFO] [stdout] 68 + rust_name: _, [INFO] [stdout] 69 + is_optional, [INFO] [stdout] 70 + is_consumed: _, [INFO] [stdout] 71 ~ }) => { [INFO] [stdout] 72 | let ret = ret [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generate.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | if let Expr::Class(class) = expr { [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/generate.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 23 ~ match expr { Expr::Class(class) => { [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/class.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(generics) = *self.generics.clone() { [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/parser/class.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | } 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] 21 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 22 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 28 | Ok(format!("{}<{}>", ident, generics)) [INFO] [stdout] 29 ~ } _ => { [INFO] [stdout] 30 | Ok(ident) [INFO] [stdout] 31 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/class.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(generics) = *self.generics.clone() { [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/parser/class.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | } 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] 35 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 36 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 42 | generics [INFO] [stdout] 43 ~ } _ => { [INFO] [stdout] 44 | String::new() [INFO] [stdout] 45 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/expr.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(generics) = *val.generics.clone() { [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/parser/expr.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | } 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] 24 ~ match *val.generics.clone() { Some(generics) => { [INFO] [stdout] 25 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(format!("{}<{}>", val.id.ident()?, generics)) [INFO] [stdout] 32 ~ } _ => { [INFO] [stdout] 33 | Ok(val.id.ident()?) [INFO] [stdout] 34 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/expr.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if let Some(generics) = *val.generics.clone() { [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/parser/expr.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | } 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] 44 ~ match *val.generics.clone() { Some(generics) => { [INFO] [stdout] 45 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 51 | Ok(format!("{}<{}>", val.id.ident_java()?, generics)) [INFO] [stdout] 52 ~ } _ => { [INFO] [stdout] 53 | Ok(val.id.ident_java()?) [INFO] [stdout] 54 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/ty.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(generics) = *self.generics.clone() { [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/parser/ty.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | } 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] 21 ~ match *self.generics.clone() { Some(generics) => { [INFO] [stdout] 22 | let generics = generics [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(format!("{}<{}>", java_type, generics)) [INFO] [stdout] 32 ~ } _ => { [INFO] [stdout] 33 | Ok(java_type) [INFO] [stdout] 34 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.88s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rs4j v0.4.1 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{r#gen::Generator, java::gen_java_code}, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{r#gen::Generator, java::gen_java_code}, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let gen = Generator { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 132 | let r#gen = Generator { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let gen = Generator { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 132 | let r#gen = Generator { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | gen_code(gen.clone(), exprs.clone(), self.bindings.clone())?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | gen_code(gen.clone(), exprs.clone(), self.bindings.clone())?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | gen_java_code(gen, exprs, self.output.clone())?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/build.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | gen_java_code(gen, exprs, self.output.clone())?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gen; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1 | pub mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod gen; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1 | pub mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/gen.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(gen: &Generator, class: ClassExpr) -> Result { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(r#gen: &Generator, class: ClassExpr) -> Result { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/gen.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(gen: &Generator, class: ClassExpr) -> Result { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 23 | pub fn gen_class(r#gen: &Generator, class: ClassExpr) -> Result { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use super::gen::Generator; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 12 | use super::r#gen::Generator; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(r#gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use super::gen::Generator; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 12 | use super::r#gen::Generator; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(r#gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 14 | pub fn gen_java_code(r#gen: Generator, exprs: Vec, out: PathBuf) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let annotations = if gen.with_annotations { [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | gen_class_code(&gen, &out, class)?; [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 24 | pub fn gen_class_code(r#gen: &Generator, out: &PathBuf, class: ClassExpr) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/java.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let annotations = if gen.with_annotations { [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gen::Generator; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 4 | use super::r#gen::Generator; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use super::gen::Generator; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 4 | use super::r#gen::Generator; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gen: &Generator, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | r#gen: &Generator, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | gen: &Generator, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | r#gen: &Generator, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | let pkg = gen.jni_pkg(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/rust.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | let pkg = gen.jni_pkg(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 2 | codegen::r#gen::{gen_class, Generator}, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 2 | codegen::r#gen::{gen_class, Generator}, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(r#gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 16 | pub fn gen_code(r#gen: Generator, exprs: Vec, out_file: PathBuf) -> Result<()> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generate.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | data.push_str(&gen_class(&gen, class)?); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/gen.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | gen_function(gen, &class, &bounds, func)? [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/codegen/gen.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | gen_function(gen, &class, &bounds, func)? [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate::gen_code` and `java::gen_java_code` [INFO] [stdout] --> src/build.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | equals_throw, [INFO] [stdout] 9 | generate::gen_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::rust::gen_function` [INFO] [stdout] --> src/codegen/gen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::rust::gen_function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `create_dir_all`, and `io::Write` [INFO] [stdout] --> src/codegen/java.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{create_dir_all, File}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] 3 | io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Case` and `Casing` [INFO] [stdout] --> src/codegen/java.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use convert_case::{Case, Casing}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `func::FunctionExpr` [INFO] [stdout] --> src/codegen/java.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::parser::{class::ClassExpr, expr::Expr, func::FunctionExpr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `expr::Expr` [INFO] [stdout] --> src/codegen/rust.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{class::ClassExpr, expr::Expr, func::FunctionExpr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gen_class` [INFO] [stdout] --> src/generate.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `generate::gen_code` and `java::gen_java_code` [INFO] [stdout] --> src/build.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | codegen::{gen::Generator, java::gen_java_code}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | equals_throw, [INFO] [stdout] 9 | generate::gen_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::rust::gen_function` [INFO] [stdout] --> src/codegen/gen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::rust::gen_function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `create_dir_all`, and `io::Write` [INFO] [stdout] --> src/codegen/java.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{create_dir_all, File}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] 3 | io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Case` and `Casing` [INFO] [stdout] --> src/codegen/java.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use convert_case::{Case, Casing}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `func::FunctionExpr` [INFO] [stdout] --> src/codegen/java.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::parser::{class::ClassExpr, expr::Expr, func::FunctionExpr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `expr::Expr` [INFO] [stdout] --> src/codegen/rust.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{class::ClassExpr, expr::Expr, func::FunctionExpr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gen_class` [INFO] [stdout] --> src/generate.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::gen::{gen_class, Generator}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs4j` (lib) due to 19 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rs4j` (lib test) due to 19 previous errors; 7 warnings emitted [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" "37074bbc12c7a336155a697bc96cc255a8a4cda6a21cd357774fedfcefd70cbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37074bbc12c7a336155a697bc96cc255a8a4cda6a21cd357774fedfcefd70cbe", kill_on_drop: false }` [INFO] [stdout] 37074bbc12c7a336155a697bc96cc255a8a4cda6a21cd357774fedfcefd70cbe