[INFO] cloning repository https://github.com/Lokasku/lazy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lokasku/lazy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 902e21df2e0a552724ffc7e9acb2995f850fc4ae [INFO] checking Lokasku/lazy/902e21df2e0a552724ffc7e9acb2995f850fc4ae against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy" "/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/Lokasku/lazy 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/Lokasku/lazy [INFO] finished tweaking git repo https://github.com/Lokasku/lazy [INFO] tweaked toml for git repo https://github.com/Lokasku/lazy written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Lokasku/lazy 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] d244f8bb77476511295ff36f5f6e87f79f50d8290308bda260929cd9227f05b1 [INFO] running `Command { std: "docker" "start" "-a" "d244f8bb77476511295ff36f5f6e87f79f50d8290308bda260929cd9227f05b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d244f8bb77476511295ff36f5f6e87f79f50d8290308bda260929cd9227f05b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d244f8bb77476511295ff36f5f6e87f79f50d8290308bda260929cd9227f05b1", kill_on_drop: false }` [INFO] [stdout] d244f8bb77476511295ff36f5f6e87f79f50d8290308bda260929cd9227f05b1 [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] 79007ba79407575ba247757f9cfc169ea2aebec5e258953365a1ec6688776d45 [INFO] running `Command { std: "docker" "start" "-a" "79007ba79407575ba247757f9cfc169ea2aebec5e258953365a1ec6688776d45", 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 cc v1.0.92 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking concolor-query v0.3.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking never-say-never v6.6.666 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking higher-kinded-types v0.1.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking polonius-the-crab v0.4.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking concolor v0.1.1 [INFO] [stderr] Checking ariadne v0.4.0 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Compiling logos-codegen v0.14.0 [INFO] [stderr] Compiling logos-derive v0.14.0 [INFO] [stderr] Checking logos v0.14.0 [INFO] [stderr] Checking risk 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 `risk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bytecode/chunk.rs [INFO] [stderr] * src/compiler/mod.rs [INFO] [stderr] * src/parser/lexer.rs [INFO] [stderr] * src/parser/test.rs [INFO] [stderr] * src/semantics/tc/error.rs [INFO] [stderr] * src/semantics/tc/mod.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/parser/test.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | ($s:expr_2021, $e:expr_2021, $i: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/test.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | ($s:expr_2021, $e:expr_2021, $i: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/test.rs:13:34 [INFO] [stderr] | [INFO] [stderr] 13 | ($s:expr_2021, $e:expr_2021, $i: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/lexer.rs:296:21 [INFO] [stderr] | [INFO] [stderr] 296 | (pc_identifier, $id: 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/lexer.rs:302:18 [INFO] [stderr] | [INFO] [stderr] 302 | (identifier, $id: 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/lexer.rs:309:15 [INFO] [stderr] | [INFO] [stderr] 309 | (integer, $int: 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/lexer.rs:315:13 [INFO] [stderr] | [INFO] [stderr] 315 | (float, $float: 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/lexer.rs:321:14 [INFO] [stderr] | [INFO] [stderr] 321 | (string, $str: 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/lexer.rs:327:12 [INFO] [stderr] | [INFO] [stderr] 327 | (char, $char: 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] warning: elided lifetime has a name [INFO] [stderr] --> src/parser/lexer.rs:209:41 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stderr] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | | [INFO] [stderr] | lifetime `'a` declared here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:55:56 [INFO] [stderr] | [INFO] [stderr] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:58:50 [INFO] [stderr] | [INFO] [stderr] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:61:51 [INFO] [stderr] | [INFO] [stderr] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:67:17 [INFO] [stderr] | [INFO] [stderr] 67 | span, [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:74:54 [INFO] [stderr] | [INFO] [stderr] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/semantics/tc/mod.rs:80:39 [INFO] [stderr] | [INFO] [stderr] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/mod.rs:80:45 [INFO] [stderr] | [INFO] [stderr] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/semantics/tc/mod.rs:94:17 [INFO] [stderr] | [INFO] [stderr] 94 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/semantics/tc/mod.rs:95:17 [INFO] [stderr] | [INFO] [stderr] 95 | args, [INFO] [stderr] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/semantics/tc/mod.rs:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | expr, [INFO] [stderr] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/mod.rs:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | span [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/bytecode/chunk.rs:58:36 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ret` [INFO] [stderr] --> src/compiler/mod.rs:162:35 [INFO] [stderr] | [INFO] [stderr] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stderr] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors; 14 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/compiler/mod.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | Type::Generic(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] = 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/compiler/mod.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | self.spans.push(gen.span.clone()); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/compiler/mod.rs:245:82 [INFO] [stdout] | [INFO] [stdout] 245 | let index = self.current_chunk.addConstant(Constant::new_string(&gen.name)); [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: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [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/parser/test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($s:expr, $e:expr, $i: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] 13 | ($s:expr_2021, $e:expr, $i: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/test.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | ($s:expr, $e:expr, $i: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] 13 | ($s:expr, $e:expr_2021, $i: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/test.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | ($s:expr, $e:expr, $i: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] 13 | ($s:expr, $e:expr, $i:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/lexer.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` 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/parser/lexer.rs:296:26 [INFO] [stdout] | [INFO] [stdout] 296 | (pc_identifier, $id: 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] 296 | (pc_identifier, $id: 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/lexer.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | (identifier, $id: 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] 302 | (identifier, $id: 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/lexer.rs:309:21 [INFO] [stdout] | [INFO] [stdout] 309 | (integer, $int: 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] 309 | (integer, $int: 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/lexer.rs:315:21 [INFO] [stdout] | [INFO] [stdout] 315 | (float, $float: 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] 315 | (float, $float: 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/lexer.rs:321:20 [INFO] [stdout] | [INFO] [stdout] 321 | (string, $str: 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] 321 | (string, $str: 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/lexer.rs:327:19 [INFO] [stdout] | [INFO] [stdout] 327 | (char, $char: 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 | (char, $char: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ParsedExpr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 137 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 290 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 311 | impl Pattern { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 312 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/parser/mod.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn expect(&mut self, token: Token<'a>) -> ParserResult> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectedNewline`, `UnexpectedEOF`, `UnexpectedTokenInPattern`, and `TooMuchExpr` are never constructed [INFO] [stdout] --> src/parser/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UnexpectedToken { expected: String, found: Span }, [INFO] [stdout] 25 | ExpectedNewline { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UnexpectedEOF { expected: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | UnexpectedEndOfInput, [INFO] [stdout] 28 | UnexpectedTokenInPattern { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | TooMuchExpr { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Variant` is never used [INFO] [stdout] --> src/semantics/tc/mod.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type Variant = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/semantics/tc/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeChecker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_type`, and `analyze_statement` are never used [INFO] [stdout] --> src/semantics/tc/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(filename: &'static str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_type(&self, expr: AnnExpr) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn analyze_statement(&mut self, statement: Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Annot` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Annot = (Span, Type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypedExpr` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type TypedExpr = AnnExpr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TypedExpr { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 7 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerErrorKind` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypeCheckerErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeCheckerError` is never constructed [INFO] [stdout] --> src/semantics/tc/error.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `report` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl TypeCheckerError { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 37 | pub fn report(&self, filename: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_int` is never used [INFO] [stdout] --> src/bytecode/constant.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_int(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dis_constinue` is never read [INFO] [stdout] --> src/bytecode/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | dis_constinue: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getOpCodeCount` and `getConstantCount` are never used [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Chunk { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | if let Err(e) = ast { [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/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | } else { [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] 42 ~ match ast { Err(e) => { [INFO] [stdout] 43 | e.report(&args[1]); [INFO] [stdout] 44 ~ } _ => { [INFO] [stdout] 45 | let mut ao = AnalysisOutput::new(); [INFO] [stdout] ... [INFO] [stdout] 66 | println!("╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯"); [INFO] [stdout] 67 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, i64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, i64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (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/semantics/tc/mod.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | if let Some(typ) = self.symbols.get(&Symbol { [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] | | [INFO] [stdout] 64 | | span: id.span.clone(), [INFO] [stdout] 65 | | scope_id: self.scope_id, [INFO] [stdout] 66 | | level: self.level [INFO] [stdout] 67 | | }) { [INFO] [stdout] | |__________________^ [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/semantics/tc/mod.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | } 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] 63 ~ match self.symbols.get(&Symbol { [INFO] [stdout] 64 | span: id.span.clone(), [INFO] [stdout] 65 | scope_id: self.scope_id, [INFO] [stdout] 66 | level: self.level [INFO] [stdout] 67 ~ }) { Some(typ) => { [INFO] [stdout] 68 | Some(typ.clone()) [INFO] [stdout] 69 ~ } _ => { [INFO] [stdout] 70 | None [INFO] [stdout] 71 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics/tc/mod.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(typ) = self.variants.get(&id.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/semantics/tc/mod.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | } 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] 74 ~ match self.variants.get(&id.name) { Some(typ) => { [INFO] [stdout] 75 | Some(typ.clone()) [INFO] [stdout] 76 ~ } _ => { [INFO] [stdout] 77 | None [INFO] [stdout] 78 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics/tc/mod.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some(typ) = self.variants.get(&ident.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/semantics/tc/mod.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | } 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] 81 ~ match self.variants.get(&ident.name) { Some(typ) => { [INFO] [stdout] 82 | Some(typ.clone()) [INFO] [stdout] 83 ~ } _ => { [INFO] [stdout] 84 | None [INFO] [stdout] 85 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn addOpCode(&mut self, op: OpCode, span: Span) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn addByte(&mut self, byte: u8, span: Span) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn addConstant(&mut self, constant: Constant) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `add_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOpCode(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn getConstant(&self, index: usize) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCodeCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_op_code_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstantCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dissassembleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn dissassembleInstruction(&mut self, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dissassemble_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `constantInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn constantInstruction(&mut self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constant_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `simpleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn simpleInstruction(&self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `simple_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn addByte(&mut self, byte: u8) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | fn addOpCode(&mut self, op: OpCode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `risk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bytecode/chunk.rs [INFO] [stderr] * src/compiler/mod.rs [INFO] [stderr] * src/parser/lexer.rs [INFO] [stderr] * src/semantics/tc/error.rs [INFO] [stderr] * src/semantics/tc/mod.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/parser/lexer.rs:296:21 [INFO] [stderr] | [INFO] [stderr] 296 | (pc_identifier, $id: 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/lexer.rs:302:18 [INFO] [stderr] | [INFO] [stderr] 302 | (identifier, $id: 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/lexer.rs:309:15 [INFO] [stderr] | [INFO] [stderr] 309 | (integer, $int: 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/lexer.rs:315:13 [INFO] [stderr] | [INFO] [stderr] 315 | (float, $float: 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/lexer.rs:321:14 [INFO] [stderr] | [INFO] [stderr] 321 | (string, $str: 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/lexer.rs:327:12 [INFO] [stderr] | [INFO] [stderr] 327 | (char, $char: 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] warning: elided lifetime has a name [INFO] [stderr] --> src/parser/lexer.rs:209:41 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stderr] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | | [INFO] [stderr] | lifetime `'a` declared here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:55:56 [INFO] [stderr] | [INFO] [stderr] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:58:50 [INFO] [stderr] | [INFO] [stderr] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:61:51 [INFO] [stderr] | [INFO] [stderr] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:67:17 [INFO] [stderr] | [INFO] [stderr] 67 | span, [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/error.rs:74:54 [INFO] [stderr] | [INFO] [stderr] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/semantics/tc/mod.rs:80:39 [INFO] [stderr] | [INFO] [stderr] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/mod.rs:80:45 [INFO] [stderr] | [INFO] [stderr] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/semantics/tc/mod.rs:94:17 [INFO] [stderr] | [INFO] [stderr] 94 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/semantics/tc/mod.rs:95:17 [INFO] [stderr] | [INFO] [stderr] 95 | args, [INFO] [stderr] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> src/semantics/tc/mod.rs:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | expr, [INFO] [stderr] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `span` [INFO] [stderr] --> src/semantics/tc/mod.rs:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | span [INFO] [stderr] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/bytecode/chunk.rs:58:36 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ret` [INFO] [stderr] --> src/compiler/mod.rs:162:35 [INFO] [stderr] | [INFO] [stderr] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stderr] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 14 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/compiler/mod.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | Type::Generic(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] = 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/compiler/mod.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | self.spans.push(gen.span.clone()); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/compiler/mod.rs:245:82 [INFO] [stdout] | [INFO] [stdout] 245 | let index = self.current_chunk.addConstant(Constant::new_string(&gen.name)); [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: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/lexer.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` 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/parser/lexer.rs:296:26 [INFO] [stdout] | [INFO] [stdout] 296 | (pc_identifier, $id: 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] 296 | (pc_identifier, $id: 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/lexer.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | (identifier, $id: 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] 302 | (identifier, $id: 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/lexer.rs:309:21 [INFO] [stdout] | [INFO] [stdout] 309 | (integer, $int: 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] 309 | (integer, $int: 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/lexer.rs:315:21 [INFO] [stdout] | [INFO] [stdout] 315 | (float, $float: 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] 315 | (float, $float: 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/lexer.rs:321:20 [INFO] [stdout] | [INFO] [stdout] 321 | (string, $str: 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] 321 | (string, $str: 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/lexer.rs:327:19 [INFO] [stdout] | [INFO] [stdout] 327 | (char, $char: 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 | (char, $char: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ParsedExpr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 137 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 290 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 311 | impl Pattern { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 312 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/parser/mod.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn expect(&mut self, token: Token<'a>) -> ParserResult> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectedNewline`, `UnexpectedEOF`, `UnexpectedTokenInPattern`, and `TooMuchExpr` are never constructed [INFO] [stdout] --> src/parser/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UnexpectedToken { expected: String, found: Span }, [INFO] [stdout] 25 | ExpectedNewline { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UnexpectedEOF { expected: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | UnexpectedEndOfInput, [INFO] [stdout] 28 | UnexpectedTokenInPattern { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | TooMuchExpr { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Variant` is never used [INFO] [stdout] --> src/semantics/tc/mod.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type Variant = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/semantics/tc/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeChecker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_type`, and `analyze_statement` are never used [INFO] [stdout] --> src/semantics/tc/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(filename: &'static str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_type(&self, expr: AnnExpr) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn analyze_statement(&mut self, statement: Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Annot` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Annot = (Span, Type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypedExpr` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type TypedExpr = AnnExpr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TypedExpr { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 7 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerErrorKind` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypeCheckerErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeCheckerError` is never constructed [INFO] [stdout] --> src/semantics/tc/error.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `report` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl TypeCheckerError { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 37 | pub fn report(&self, filename: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_int`, `into_bytecode`, and `from_bytecode` are never used [INFO] [stdout] --> src/bytecode/constant.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Constant { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_int(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn into_bytecode(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn from_bytecode(bytes: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dis_constinue` is never read [INFO] [stdout] --> src/bytecode/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | dis_constinue: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getOpCodeCount` and `getConstantCount` are never used [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Chunk { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | if let Err(e) = ast { [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/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | } else { [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] 42 ~ match ast { Err(e) => { [INFO] [stdout] 43 | e.report(&args[1]); [INFO] [stdout] 44 ~ } _ => { [INFO] [stdout] 45 | let mut ao = AnalysisOutput::new(); [INFO] [stdout] ... [INFO] [stdout] 66 | println!("╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯"); [INFO] [stdout] 67 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, i64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, i64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f64, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, &'s str, TokenKind<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/parser/lexer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Logos, Debug, PartialEq, Copy, Clone)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (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/semantics/tc/mod.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | if let Some(typ) = self.symbols.get(&Symbol { [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] | | [INFO] [stdout] 64 | | span: id.span.clone(), [INFO] [stdout] 65 | | scope_id: self.scope_id, [INFO] [stdout] 66 | | level: self.level [INFO] [stdout] 67 | | }) { [INFO] [stdout] | |__________________^ [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/semantics/tc/mod.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | } 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] 63 ~ match self.symbols.get(&Symbol { [INFO] [stdout] 64 | span: id.span.clone(), [INFO] [stdout] 65 | scope_id: self.scope_id, [INFO] [stdout] 66 | level: self.level [INFO] [stdout] 67 ~ }) { Some(typ) => { [INFO] [stdout] 68 | Some(typ.clone()) [INFO] [stdout] 69 ~ } _ => { [INFO] [stdout] 70 | None [INFO] [stdout] 71 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics/tc/mod.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(typ) = self.variants.get(&id.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/semantics/tc/mod.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | } 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] 74 ~ match self.variants.get(&id.name) { Some(typ) => { [INFO] [stdout] 75 | Some(typ.clone()) [INFO] [stdout] 76 ~ } _ => { [INFO] [stdout] 77 | None [INFO] [stdout] 78 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics/tc/mod.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some(typ) = self.variants.get(&ident.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/semantics/tc/mod.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | } 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] 81 ~ match self.variants.get(&ident.name) { Some(typ) => { [INFO] [stdout] 82 | Some(typ.clone()) [INFO] [stdout] 83 ~ } _ => { [INFO] [stdout] 84 | None [INFO] [stdout] 85 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn addOpCode(&mut self, op: OpCode, span: Span) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn addByte(&mut self, byte: u8, span: Span) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn addConstant(&mut self, constant: Constant) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `add_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOpCode(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn getConstant(&self, index: usize) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCodeCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_op_code_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstantCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dissassembleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn dissassembleInstruction(&mut self, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dissassemble_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `constantInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn constantInstruction(&mut self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constant_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `simpleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn simpleInstruction(&self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `simple_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn addByte(&mut self, byte: u8) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | fn addOpCode(&mut self, op: OpCode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.74s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking risk v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compiler/mod.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | Type::Generic(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] 243 | Type::Generic(r#gen) => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/compiler/mod.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | Type::Generic(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] 243 | Type::Generic(r#gen) => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/compiler/mod.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | self.spans.push(gen.span.clone()); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/compiler/mod.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | self.spans.push(gen.span.clone()); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/lexer.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/lexer.rs:209:41 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn lexer<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `risk` (bin "risk") due to 3 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `risk` (bin "risk" test) due to 3 previous errors; 16 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" "79007ba79407575ba247757f9cfc169ea2aebec5e258953365a1ec6688776d45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79007ba79407575ba247757f9cfc169ea2aebec5e258953365a1ec6688776d45", kill_on_drop: false }` [INFO] [stdout] 79007ba79407575ba247757f9cfc169ea2aebec5e258953365a1ec6688776d45