[INFO] cloning repository https://github.com/ParkerTenBroeck/writing_c_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ParkerTenBroeck/writing_c_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fwriting_c_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fwriting_c_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0dad0fd7556513fe4403ae68e00215b121fe7454 [INFO] checking ParkerTenBroeck/writing_c_compiler/0dad0fd7556513fe4403ae68e00215b121fe7454 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParkerTenBroeck%2Fwriting_c_compiler" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ParkerTenBroeck/writing_c_compiler 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/ParkerTenBroeck/writing_c_compiler [INFO] finished tweaking git repo https://github.com/ParkerTenBroeck/writing_c_compiler [INFO] tweaked toml for git repo https://github.com/ParkerTenBroeck/writing_c_compiler written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ParkerTenBroeck/writing_c_compiler 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] af5a2c895cf91f5c6da14ea9ca96162557dec4865509df3a7a956429b061a7a8 [INFO] running `Command { std: "docker" "start" "-a" "af5a2c895cf91f5c6da14ea9ca96162557dec4865509df3a7a956429b061a7a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af5a2c895cf91f5c6da14ea9ca96162557dec4865509df3a7a956429b061a7a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af5a2c895cf91f5c6da14ea9ca96162557dec4865509df3a7a956429b061a7a8", kill_on_drop: false }` [INFO] [stdout] af5a2c895cf91f5c6da14ea9ca96162557dec4865509df3a7a956429b061a7a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 06131faae714394db7dca3b26f4a0af5ea525276d4c3703e1ecc0a2cb2a9867b [INFO] running `Command { std: "docker" "start" "-a" "06131faae714394db7dca3b26f4a0af5ea525276d4c3703e1ecc0a2cb2a9867b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking c_comp 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 `c_comp` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lex/mod.rs [INFO] [stderr] * src/parser/mod.rs [INFO] [stderr] * src/semanitc/mod.rs [INFO] [stderr] * src/tacky/mod.rs [INFO] [stderr] * src/util/info.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/lex/mod.rs:316:18 [INFO] [stderr] | [INFO] [stderr] 316 | ($expr: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/lex/mod.rs:327:30 [INFO] [stderr] | [INFO] [stderr] 327 | ($sel:ident, $expr: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/mod.rs:37:45 [INFO] [stderr] | [INFO] [stderr] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:53:45 [INFO] [stderr] | [INFO] [stderr] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:69:43 [INFO] [stderr] | [INFO] [stderr] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:69:62 [INFO] [stderr] | [INFO] [stderr] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:75:34 [INFO] [stderr] | [INFO] [stderr] 75 | (@, $self:ident, $tok:pat => $blk: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/mod.rs:78:56 [INFO] [stderr] | [INFO] [stderr] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:78:75 [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/code_gen/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/code_gen/mod.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [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] [stderr] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk:expr_2021 $(,)?)* $(,)?) => { [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/code_gen/mod.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | 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] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/code_gen/mod.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [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] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lex/mod.rs:316:24 [INFO] [stdout] | [INFO] [stdout] 316 | ($expr: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] 316 | ($expr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lex/mod.rs:327:36 [INFO] [stdout] | [INFO] [stdout] 327 | ($sel:ident, $expr: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] 327 | ($sel:ident, $expr:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr)?, $err:literal) => { [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] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:53:50 [INFO] [stdout] | [INFO] [stdout] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr)?, $err:literal) => { [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] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:69:47 [INFO] [stdout] | [INFO] [stdout] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk: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] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:69:62 [INFO] [stdout] | [INFO] [stdout] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk: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] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/util/info.rs:135:6 [INFO] [stderr] | [INFO] [stderr] 135 | ($into:expr_2021, $fmt:literal, $args: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] warning: unused variable: `label` [INFO] [stderr] --> src/semanitc/mod.rs:80:40 [INFO] [stderr] | [INFO] [stderr] 80 | ast::Statement::Continue { label} => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/semanitc/mod.rs:83:37 [INFO] [stderr] | [INFO] [stderr] 83 | ast::Statement::Break { label, expr } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:89:48 [INFO] [stderr] | [INFO] [stderr] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:90:45 [INFO] [stderr] | [INFO] [stderr] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | (@, $self:ident, $tok:pat => $blk: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] 75 | (@, $self:ident, $tok:pat => $blk:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk: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] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk:expr $(,)?)* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/tacky/mod.rs:90:52 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/parser/mod.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk: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] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk:expr_2021 $(,)?)* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semanitc/mod.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{self, Path, Type}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util/info.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | ($into:expr, $fmt:literal, $args: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] 135 | ($into:expr_2021, $fmt:literal, $args:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | ast::Statement::Continue { label} => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | ast::Statement::Break { label, expr } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `cond` [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:89:48 [INFO] [stdout] | [INFO] [stdout] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/tacky/mod.rs:320:17 [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 320 | cond, [INFO] [stderr] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:321:17 [INFO] [stderr] | [INFO] [stderr] 321 | label, [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `met` [INFO] [stderr] --> src/tacky/mod.rs:322:17 [INFO] [stderr] | [INFO] [stderr] 322 | met, [INFO] [stderr] | ^^^ help: try ignoring the field: `met: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `not_met` [INFO] [stderr] --> src/tacky/mod.rs:323:17 [INFO] [stderr] | [INFO] [stderr] 323 | not_met, [INFO] [stderr] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `inner` [INFO] [stderr] --> src/tacky/mod.rs:328:40 [INFO] [stderr] | [INFO] [stderr] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:328:47 [INFO] [stderr] | [INFO] [stderr] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 11 warnings emitted [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: unused variable: `expr` [INFO] [stdout] --> src/tacky/mod.rs:90:52 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/tacky/mod.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | label, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `met` [INFO] [stdout] --> src/tacky/mod.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | met, [INFO] [stdout] | ^^^ help: try ignoring the field: `met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_met` [INFO] [stdout] --> src/tacky/mod.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | not_met, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/tacky/mod.rs:328:40 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:328:47 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `util::error::ErrorKind` is more private than the item `util::error::::err_node` [INFO] [stdout] --> src/util/error.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn err_node<'a>( [INFO] [stdout] 45 | | &self, [INFO] [stdout] 46 | | kind: ErrorKind, [INFO] [stdout] 47 | | info: &CompilerInfo<'a>, [INFO] [stdout] 48 | | msg: String, [INFO] [stdout] 49 | | ) -> ErrorNode<'a> { [INFO] [stdout] | |______________________^ method `util::error::::err_node` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `util::error::ErrorKind` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/util/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | enum ErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `block_expr_to_tacky` is never used [INFO] [stdout] --> src/tacky/mod.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a, 'b> TackyGen<'a, 'b> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 338 | fn block_expr_to_tacky( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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/semanitc/mod.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(expr) = &mut decl.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/semanitc/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | } [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] 94 ~ match &mut decl.expr { Some(expr) => { [INFO] [stdout] 95 | self.resolve_expr(expr) [INFO] [stdout] 96 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/tacky/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(expr) = decl.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/tacky/mod.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match decl.expr { Some(expr) => { [INFO] [stdout] 70 | let src = self.expression_to_tacky(ins, expr); [INFO] [stdout] 71 | ins.push(ast::Instruction::Copy { src, dest: var }) [INFO] [stdout] 72 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/tacky/mod.rs:229:28 [INFO] [stdout] | [INFO] [stdout] 229 | if let Node(parser::ast::Expr::Ident(_), _) = &*lhs { [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/tacky/mod.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | } 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] 229 ~ match &*lhs { Node(parser::ast::Expr::Ident(_), _) => { [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | todo!("unsupported non identifier assignment"); [INFO] [stdout] 232 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `c_comp` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lex/mod.rs [INFO] [stderr] * src/parser/mod.rs [INFO] [stderr] * src/semanitc/mod.rs [INFO] [stderr] * src/tacky/mod.rs [INFO] [stderr] * src/util/info.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/lex/mod.rs:316:18 [INFO] [stderr] | [INFO] [stderr] 316 | ($expr: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/lex/mod.rs:327:30 [INFO] [stderr] | [INFO] [stderr] 327 | ($sel:ident, $expr: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/mod.rs:37:45 [INFO] [stderr] | [INFO] [stderr] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:53:45 [INFO] [stderr] | [INFO] [stderr] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:69:43 [INFO] [stderr] | [INFO] [stderr] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:69:62 [INFO] [stderr] | [INFO] [stderr] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:75:34 [INFO] [stderr] | [INFO] [stderr] 75 | (@, $self:ident, $tok:pat => $blk: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/mod.rs:78:56 [INFO] [stderr] | [INFO] [stderr] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk: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/mod.rs:78:75 [INFO] [stderr] | [INFO] [stderr] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk: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/util/info.rs:135:6 [INFO] [stderr] | [INFO] [stderr] 135 | ($into:expr_2021, $fmt:literal, $args: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] warning: unused variable: `label` [INFO] [stderr] --> src/semanitc/mod.rs:80:40 [INFO] [stderr] | [INFO] [stderr] 80 | ast::Statement::Continue { label} => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/semanitc/mod.rs:83:37 [INFO] [stderr] | [INFO] [stderr] 83 | ast::Statement::Break { label, expr } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:89:48 [INFO] [stderr] | [INFO] [stderr] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:90:45 [INFO] [stderr] | [INFO] [stderr] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/tacky/mod.rs:90:52 [INFO] [stderr] | [INFO] [stderr] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stderr] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cond` [INFO] [stderr] --> src/tacky/mod.rs:320:17 [INFO] [stderr] | [INFO] [stderr] 320 | cond, [INFO] [stderr] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:321:17 [INFO] [stderr] | [INFO] [stderr] 321 | label, [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `met` [INFO] [stderr] --> src/tacky/mod.rs:322:17 [INFO] [stderr] | [INFO] [stderr] 322 | met, [INFO] [stderr] | ^^^ help: try ignoring the field: `met: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `not_met` [INFO] [stderr] --> src/tacky/mod.rs:323:17 [INFO] [stderr] | [INFO] [stderr] 323 | not_met, [INFO] [stderr] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `inner` [INFO] [stderr] --> src/tacky/mod.rs:328:40 [INFO] [stderr] | [INFO] [stderr] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/tacky/mod.rs:328:47 [INFO] [stderr] | [INFO] [stderr] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 11 warnings emitted [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/code_gen/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [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/code_gen/mod.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [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/code_gen/mod.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | 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/code_gen/mod.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [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/lex/mod.rs:316:24 [INFO] [stdout] | [INFO] [stdout] 316 | ($expr: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] 316 | ($expr: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/lex/mod.rs:327:36 [INFO] [stdout] | [INFO] [stdout] 327 | ($sel:ident, $expr: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] 327 | ($sel:ident, $expr: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/mod.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr)?, $err:literal) => { [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] 37 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:53:50 [INFO] [stdout] | [INFO] [stdout] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr)?, $err:literal) => { [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] 53 | ($self:ident, $tok:pat, $span:pat $( => $blk:expr_2021)?, $err:literal) => { [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/mod.rs:69:47 [INFO] [stdout] | [INFO] [stdout] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk: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] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr_2021)? => $blk: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/parser/mod.rs:69:62 [INFO] [stdout] | [INFO] [stdout] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk: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] 69 | (@consume, $self:ident, $tok:pat $(if $if:expr)? => $blk: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/mod.rs:75:39 [INFO] [stdout] | [INFO] [stdout] 75 | (@, $self:ident, $tok:pat => $blk: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] 75 | (@, $self:ident, $tok:pat => $blk: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/mod.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk: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] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr_2021)? => $blk: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/parser/mod.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk: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] 78 | ($self:ident, $( $(@$consume:ident)? $tok:pat $(if $if:expr)? => $blk:expr_2021 $(,)?)* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semanitc/mod.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{self, Path, Type}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util/info.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | ($into:expr, $fmt:literal, $args: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] 135 | ($into:expr_2021, $fmt:literal, $args:tt) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | ast::Statement::Continue { label} => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | ast::Statement::Break { label, expr } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:89:48 [INFO] [stdout] | [INFO] [stdout] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/tacky/mod.rs:90:52 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/tacky/mod.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | label, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `met` [INFO] [stdout] --> src/tacky/mod.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | met, [INFO] [stdout] | ^^^ help: try ignoring the field: `met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_met` [INFO] [stdout] --> src/tacky/mod.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | not_met, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/tacky/mod.rs:328:40 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:328:47 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `util::error::ErrorKind` is more private than the item `util::error::::err_node` [INFO] [stdout] --> src/util/error.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn err_node<'a>( [INFO] [stdout] 45 | | &self, [INFO] [stdout] 46 | | kind: ErrorKind, [INFO] [stdout] 47 | | info: &CompilerInfo<'a>, [INFO] [stdout] 48 | | msg: String, [INFO] [stdout] 49 | | ) -> ErrorNode<'a> { [INFO] [stdout] | |______________________^ method `util::error::::err_node` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `util::error::ErrorKind` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/util/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | enum ErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `block_expr_to_tacky` is never used [INFO] [stdout] --> src/tacky/mod.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a, 'b> TackyGen<'a, 'b> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 338 | fn block_expr_to_tacky( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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/semanitc/mod.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(expr) = &mut decl.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/semanitc/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | } [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] 94 ~ match &mut decl.expr { Some(expr) => { [INFO] [stdout] 95 | self.resolve_expr(expr) [INFO] [stdout] 96 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/tacky/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(expr) = decl.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/tacky/mod.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match decl.expr { Some(expr) => { [INFO] [stdout] 70 | let src = self.expression_to_tacky(ins, expr); [INFO] [stdout] 71 | ins.push(ast::Instruction::Copy { src, dest: var }) [INFO] [stdout] 72 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/tacky/mod.rs:229:28 [INFO] [stdout] | [INFO] [stdout] 229 | if let Node(parser::ast::Expr::Ident(_), _) = &*lhs { [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/tacky/mod.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | } 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] 229 ~ match &*lhs { Node(parser::ast::Expr::Ident(_), _) => { [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | todo!("unsupported non identifier assignment"); [INFO] [stdout] 232 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.03s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking c_comp v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut ast = gen::AsmGen::new(info).gen(ast); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | 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] 223 | pub mod r#gen { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 235 | pub fn r#gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | 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] 223 | pub mod r#gen { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/code_gen/mod.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 235 | pub fn r#gen(&mut self, ast: tacky::ast::Program<'a>) -> code_gen::ast::Program<'a> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semanitc/mod.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{self, Path, Type}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semanitc/mod.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{self, Path, Type}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | ast::Statement::Continue { label} => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | ast::Statement::Break { label, expr } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | ast::Statement::Continue { label} => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/semanitc/mod.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | ast::Statement::Break { label, expr } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:89:48 [INFO] [stdout] | [INFO] [stdout] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/tacky/mod.rs:90:52 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/tacky/mod.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | label, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `met` [INFO] [stdout] --> src/tacky/mod.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | met, [INFO] [stdout] | ^^^ help: try ignoring the field: `met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_met` [INFO] [stdout] --> src/tacky/mod.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | not_met, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/tacky/mod.rs:328:40 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:328:47 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:89:48 [INFO] [stdout] | [INFO] [stdout] 89 | parser::ast::Statement::Continue { label } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/tacky/mod.rs:90:52 [INFO] [stdout] | [INFO] [stdout] 90 | parser::ast::Statement::Break { label, expr } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/tacky/mod.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | label, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `met` [INFO] [stdout] --> src/tacky/mod.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | met, [INFO] [stdout] | ^^^ help: try ignoring the field: `met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_met` [INFO] [stdout] --> src/tacky/mod.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | not_met, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `not_met: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/tacky/mod.rs:328:40 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `inner: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/tacky/mod.rs:328:47 [INFO] [stdout] | [INFO] [stdout] 328 | parser::ast::Expr::Block { inner, label } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `label: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `c_comp` (bin "c_comp" test) due to 4 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `c_comp` (bin "c_comp") due to 4 previous errors; 12 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" "06131faae714394db7dca3b26f4a0af5ea525276d4c3703e1ecc0a2cb2a9867b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06131faae714394db7dca3b26f4a0af5ea525276d4c3703e1ecc0a2cb2a9867b", kill_on_drop: false }` [INFO] [stdout] 06131faae714394db7dca3b26f4a0af5ea525276d4c3703e1ecc0a2cb2a9867b