[INFO] cloning repository https://github.com/asmarcz/mila [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/asmarcz/mila" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasmarcz%2Fmila", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasmarcz%2Fmila'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4dc79bc8997276cd8bb6ac2237780c7b55f5bf27 [INFO] checking asmarcz/mila/4dc79bc8997276cd8bb6ac2237780c7b55f5bf27 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasmarcz%2Fmila" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/asmarcz/mila 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 git repo https://github.com/asmarcz/mila [INFO] finished tweaking git repo https://github.com/asmarcz/mila [INFO] tweaked toml for git repo https://github.com/asmarcz/mila written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/asmarcz/mila 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e64c577b7f73b7f5d918ee6affc607660d90efceac40dc369000bb79cbf79e6 [INFO] running `Command { std: "docker" "start" "-a" "4e64c577b7f73b7f5d918ee6affc607660d90efceac40dc369000bb79cbf79e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e64c577b7f73b7f5d918ee6affc607660d90efceac40dc369000bb79cbf79e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e64c577b7f73b7f5d918ee6affc607660d90efceac40dc369000bb79cbf79e6", kill_on_drop: false }` [INFO] [stdout] 4e64c577b7f73b7f5d918ee6affc607660d90efceac40dc369000bb79cbf79e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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] 2b0250a2170034f2cdd411c012d96a863c1f23ac0c2d1646975aac2e33013713 [INFO] running `Command { std: "docker" "start" "-a" "2b0250a2170034f2cdd411c012d96a863c1f23ac0c2d1646975aac2e33013713", 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.146 [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling semver v1.0.17 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Compiling inkwell v0.2.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling const_format_proc_macros v0.2.31 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Checking const_format v0.2.31 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking clap_builder v4.3.5 [INFO] [stderr] Compiling llvm-sys v150.1.1 [INFO] [stderr] Compiling clap_derive v4.3.2 [INFO] [stderr] Compiling inkwell_internals v0.8.0 [INFO] [stderr] Checking clap v4.3.5 [INFO] [stderr] Checking mila v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `mila` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/llvm.rs [INFO] [stderr] * src/parser.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/llvm.rs:99:6 [INFO] [stderr] | [INFO] [stderr] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb: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/llvm.rs:99:24 [INFO] [stderr] | [INFO] [stderr] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb: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/llvm.rs:99:46 [INFO] [stderr] | [INFO] [stderr] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb: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/parser.rs:232:6 [INFO] [stderr] | [INFO] [stderr] 232 | ($iter:expr_2021, $arg:tt) => {{ [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/parser.rs:241:6 [INFO] [stderr] | [INFO] [stderr] 241 | ($iter:expr_2021, $arg:tt) => {{ [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/parser.rs:250:6 [INFO] [stderr] | [INFO] [stderr] 250 | ($iter: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 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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/llvm.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr, $prototype:expr, $err_symb: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] 99 | ($table:expr_2021, $prototype:expr, $err_symb: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/llvm.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr, $prototype:expr, $err_symb: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] 99 | ($table:expr, $prototype:expr_2021, $err_symb: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/llvm.rs:99:46 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr, $prototype:expr, $err_symb: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] 99 | ($table:expr, $prototype:expr, $err_symb: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/parser.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | ($iter:expr, $arg:tt) => {{ [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] 232 | ($iter:expr_2021, $arg:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | ($iter:expr, $arg:tt) => {{ [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] 241 | ($iter:expr_2021, $arg:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | ($iter: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] 250 | ($iter:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/parser.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 217 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 218 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | if let Some(_) = func_info.declaration.body { [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] 521 | check_function_errors!(self.function_table, &decl.prototype, "Function"); [INFO] [stdout] | ------------------------------------------------------------------------ in this macro invocation [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/llvm.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | } else if func_info.declaration.prototype != *$prototype { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 521 | check_function_errors!(self.function_table, &decl.prototype, "Function"); [INFO] [stdout] | ------------------------------------------------------------------------ in this macro invocation [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `check_function_errors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:524:39 [INFO] [stdout] | [INFO] [stdout] 524 | let function = if let Some(FunctionInfo { value, .. }) = [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 525 | | self.function_table.get(&decl.prototype.name) [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/llvm.rs:528:21 [INFO] [stdout] | [INFO] [stdout] 528 | } 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] 524 ~ let function = match self.function_table.get(&decl.prototype.name) [INFO] [stdout] 525 ~ { Some(FunctionInfo { value, .. }) => { [INFO] [stdout] 526 | *value [INFO] [stdout] 527 ~ } _ => { [INFO] [stdout] 528 | self.prototype(&decl.prototype, false, false)? [INFO] [stdout] 529 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | if let Some(_) = func_info.declaration.body { [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] 551 | check_function_errors!(self.procedure_table, &decl.prototype, "Procedure"); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [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/llvm.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | } else if func_info.declaration.prototype != *$prototype { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 551 | check_function_errors!(self.procedure_table, &decl.prototype, "Procedure"); [INFO] [stdout] | -------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `check_function_errors` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:731:38 [INFO] [stdout] | [INFO] [stdout] 731 | let on_false_bb = if let Some(else_stmt) = false_branch { [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/llvm.rs:739:17 [INFO] [stdout] | [INFO] [stdout] 739 | } 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] 731 ~ let on_false_bb = match false_branch { Some(else_stmt) => { [INFO] [stdout] 732 | let starting_bb = self.builder.get_insert_block().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 738 | else_bb [INFO] [stdout] 739 ~ } _ => { [INFO] [stdout] 740 | end_bb [INFO] [stdout] 741 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:846:20 [INFO] [stdout] | [INFO] [stdout] 846 | if let Some(ProcedureInfo { [INFO] [stdout] | ____________________^ [INFO] [stdout] 847 | | declaration: ProcedureDeclaration { prototype, .. }, [INFO] [stdout] 848 | | value: fn_val, [INFO] [stdout] 849 | | takes_string, [INFO] [stdout] 850 | | takes_reference, [INFO] [stdout] 851 | | }) = self.procedure_table.get(&procedure_name) [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/llvm.rs:876:17 [INFO] [stdout] | [INFO] [stdout] 876 | } 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] 846 ~ match self.procedure_table.get(&procedure_name) [INFO] [stdout] 847 ~ { Some(ProcedureInfo { [INFO] [stdout] 848 + declaration: ProcedureDeclaration { prototype, .. }, [INFO] [stdout] 849 + value: fn_val, [INFO] [stdout] 850 + takes_string, [INFO] [stdout] 851 + takes_reference, [INFO] [stdout] 852 ~ }) => { [INFO] [stdout] 853 | if *takes_reference { [INFO] [stdout] ... [INFO] [stdout] 875 | } [INFO] [stdout] 876 ~ } _ => { [INFO] [stdout] 877 | Err(format!("Undefined procedure '{}'.", procedure_name))? [INFO] [stdout] 878 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/llvm.rs:1118:20 [INFO] [stdout] | [INFO] [stdout] 1118 | if let Some(FunctionInfo { [INFO] [stdout] | ____________________^ [INFO] [stdout] 1119 | | declaration: FunctionDeclaration { prototype, .. }, [INFO] [stdout] 1120 | | value: fn_val, [INFO] [stdout] 1121 | | }) = self.function_table.get(&function_name) [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/llvm.rs:1125:17 [INFO] [stdout] | [INFO] [stdout] 1125 | } 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] 1118 ~ match self.function_table.get(&function_name) [INFO] [stdout] 1119 ~ { Some(FunctionInfo { [INFO] [stdout] 1120 + declaration: FunctionDeclaration { prototype, .. }, [INFO] [stdout] 1121 + value: fn_val, [INFO] [stdout] 1122 ~ }) => { [INFO] [stdout] 1123 | self.function_call(*fn_val, &function_name, prototype, &arguments, false)? [INFO] [stdout] 1124 | .unwrap() [INFO] [stdout] 1125 ~ } _ => { [INFO] [stdout] 1126 | Err(format!("Undefined procedure '{}'.", function_name))? [INFO] [stdout] 1127 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser.rs:880:15 [INFO] [stdout] | [INFO] [stdout] 880 | Ok(if let Some(index) = opt { [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.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | } 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] 880 ~ Ok(match opt { Some(index) => { [INFO] [stdout] 881 | Statement::ArrayAssignment { [INFO] [stdout] ... [INFO] [stdout] 885 | } [INFO] [stdout] 886 ~ } _ => { [INFO] [stdout] 887 | Statement::VariableAssignment { [INFO] [stdout] ... [INFO] [stdout] 890 | } [INFO] [stdout] 891 ~ }}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/llvm.rs:99:6 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb:expr_2021) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/llvm.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb:expr_2021) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] --> src/llvm.rs:99:46 [INFO] [stdout] | [INFO] [stdout] 99 | ($table:expr_2021, $prototype:expr_2021, $err_symb:expr_2021) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #123742 for more information [INFO] [stdout] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | ($iter:expr, $arg:tt) => {{ [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] 232 | ($iter:expr_2021, $arg:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | ($iter:expr, $arg:tt) => {{ [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] 241 | ($iter:expr_2021, $arg:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | ($iter: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] 250 | ($iter:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mila` (bin "mila") due to 4 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2b0250a2170034f2cdd411c012d96a863c1f23ac0c2d1646975aac2e33013713", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b0250a2170034f2cdd411c012d96a863c1f23ac0c2d1646975aac2e33013713", kill_on_drop: false }` [INFO] [stdout] 2b0250a2170034f2cdd411c012d96a863c1f23ac0c2d1646975aac2e33013713