[INFO] cloning repository https://github.com/dovakin0007/Lox_clone [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dovakin0007/Lox_clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fad5236acead3b713ebff5e6b80bf3cba9031f78 [INFO] checking dovakin0007/Lox_clone/fad5236acead3b713ebff5e6b80bf3cba9031f78 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dovakin0007/Lox_clone on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] finished tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] tweaked toml for git repo https://github.com/dovakin0007/Lox_clone written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dovakin0007/Lox_clone 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fff85f338e3e72141cc9eedcda64b8b2f6cdf68bb3817757f0485e41501e718b [INFO] running `Command { std: "docker" "start" "-a" "fff85f338e3e72141cc9eedcda64b8b2f6cdf68bb3817757f0485e41501e718b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fff85f338e3e72141cc9eedcda64b8b2f6cdf68bb3817757f0485e41501e718b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fff85f338e3e72141cc9eedcda64b8b2f6cdf68bb3817757f0485e41501e718b", kill_on_drop: false }` [INFO] [stdout] fff85f338e3e72141cc9eedcda64b8b2f6cdf68bb3817757f0485e41501e718b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1f2901581ebd7b81ee3396e7e02f6ed93adf61244319e574a84b0b6f4886cfb [INFO] running `Command { std: "docker" "start" "-a" "f1f2901581ebd7b81ee3396e7e02f6ed93adf61244319e574a84b0b6f4886cfb", kill_on_drop: false }` [INFO] [stderr] Checking Lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/astprinter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/astprinter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/astprinter.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::Other` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Types` [INFO] [stdout] --> src/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::interpreter::Types; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `False` and `Return` [INFO] [stdout] --> src/parser.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::token::TokenType::{False, LeftParen, Return, RightParen, SemiColon, True}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] 47 + while self.peek().unwrap().t_type != TokenType::EOF { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | }; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 84 | if !matches!(self, TokenType::Comma) { [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `matches` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | }; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 420 | if !matches!(self, TokenType::Comma){ [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `matches` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/environment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/function.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expr` [INFO] [stdout] --> src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::ast::{Expr, Stmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/astprinter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/astprinter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::Other` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Types` [INFO] [stdout] --> src/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::interpreter::Types; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `False` and `Return` [INFO] [stdout] --> src/parser.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::token::TokenType::{False, LeftParen, Return, RightParen, SemiColon, True}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - while(self.peek().unwrap().t_type != TokenType::EOF){ [INFO] [stdout] 47 + while self.peek().unwrap().t_type != TokenType::EOF { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | }; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 84 | if !matches!(self, TokenType::Comma) { [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `matches` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | }; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 420 | if !matches!(self, TokenType::Comma){ [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this warning originates in the macro `matches` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/environment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/function.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expr` [INFO] [stdout] --> src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::ast::{Expr, Stmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/astprinter.rs:44:37 [INFO] [stdout] | [INFO] [stdout] 44 | Expr::Call {ref callee, ref paren, ref arguments ,..} =>{ [INFO] [stdout] | ^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:79:101 [INFO] [stdout] | [INFO] [stdout] 79 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | let mut expr = self.or()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/interpreter.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | body: Box::new(|args: &Vec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Token` [INFO] [stdout] --> src/interpreter.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/astprinter.rs:44:37 [INFO] [stdout] | [INFO] [stdout] 44 | Expr::Call {ref callee, ref paren, ref arguments ,..} =>{ [INFO] [stdout] | ^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:79:101 [INFO] [stdout] | [INFO] [stdout] 79 | ...nt {:?})", statements.iter().map(|x| self.visit_statement(s)).collect::()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | let mut expr = self.or()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | &Expr::Binary {ref left, ref op, ref right}=>{ [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/resolver.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | &Expr::Call {ref callee, ref paren, ref arguments}=>{ [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `paren: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/resolver.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | &Expr::Literal {ref token} => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:130:39 [INFO] [stdout] | [INFO] [stdout] 130 | &Expr::Logical {ref left, ref op, ref right}=>{ [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | &Expr::Unary {ref op, ref expr} => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/astprinter.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl AstPrinter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 15 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 26 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initializer` is never read [INFO] [stdout] --> src/function.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct UserFunction { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub is_initializer: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:996:46 [INFO] [stdout] | [INFO] [stdout] 996 | Stmt::Function(name, params, body) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/interpreter.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | body: Box::new(|args: &Vec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | interpreter.interpret(statements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = interpreter.interpret(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Token` [INFO] [stdout] --> src/interpreter.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | let body = self.block_statement()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | Ok(Stmt::Function(name, params, body)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 97 | let initializer = if self.peek().unwrap().t_type.clone() == TokenType::Equal{ [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 103 | Ok(Stmt::VarDeclaration(token, initializer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 210 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 213 | let body = self.statement()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 214 | Ok(Stmt::While(expr, Box::new(body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 220 | let value = if !self.check(SemiColon) { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 226 | Ok(Stmt::Return(keyword.clone(), value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 230 | let expr =self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | self.consume(TokenType::SemiColon, "Expect ';' after value.")?; [INFO] [stdout] 232 | Ok(Stmt::Print(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:238:12 [INFO] [stdout] | [INFO] [stdout] 236 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 237 | self.consume(TokenType::SemiColon, "Expect ';' after value.")?; [INFO] [stdout] 238 | Ok(Stmt::Expr(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:427:12 [INFO] [stdout] | [INFO] [stdout] 411 | fn finish_call(&mut self, callee: Expr) -> Result{ [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 412 | let mut args: Vec = Vec::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 427 | Ok(Expr::Call { [INFO] [stdout] | ____________^ [INFO] [stdout] 428 | | callee: Box::new(callee), [INFO] [stdout] 429 | | paren, [INFO] [stdout] 430 | | arguments: args [INFO] [stdout] 431 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/interpreter.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 35 | let globals = Environment::new(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | [INFO] [stdout] 37 | let clock: Types = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let asset_eql = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | globals: globals.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/interpreter.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 35 | let globals = Environment::new(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | [INFO] [stdout] 37 | let clock: Types = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let asset_eql = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | environment: globals.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | &Stmt::IfStmt(ref Expr, ref then, ref else_option) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | Stmt::Print(Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:165:34 [INFO] [stdout] | [INFO] [stdout] 165 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:165:41 [INFO] [stdout] | [INFO] [stdout] 165 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:182:29 [INFO] [stdout] | [INFO] [stdout] 182 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:182:39 [INFO] [stdout] | [INFO] [stdout] 182 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | self.environment.get(name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 369 | let _ = self.environment.get(name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/environment.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from(enclosing: Environment) -> Self { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | Self { [INFO] [stdout] 29 | enclosing: Some(Box::new(enclosing)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/environment.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from(enclosing: Environment) -> Self { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 30 | values: Rc::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | &Expr::Binary {ref left, ref op, ref right}=>{ [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/resolver.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | &Expr::Call {ref callee, ref paren, ref arguments}=>{ [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `paren: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/resolver.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | &Expr::Literal {ref token} => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:130:39 [INFO] [stdout] | [INFO] [stdout] 130 | &Expr::Logical {ref left, ref op, ref right}=>{ [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | &Expr::Unary {ref op, ref expr} => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Lox` (bin "Lox") due to 12 previous errors; 40 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 26 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initializer` is never read [INFO] [stdout] --> src/function.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct UserFunction { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub is_initializer: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | interpreter.interpret(statements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = interpreter.interpret(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | let body = self.block_statement()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | Ok(Stmt::Function(name, params, body)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 97 | let initializer = if self.peek().unwrap().t_type.clone() == TokenType::Equal{ [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 103 | Ok(Stmt::VarDeclaration(token, initializer)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 210 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 213 | let body = self.statement()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 214 | Ok(Stmt::While(expr, Box::new(body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 220 | let value = if !self.check(SemiColon) { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 226 | Ok(Stmt::Return(keyword.clone(), value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 230 | let expr =self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 231 | self.consume(TokenType::SemiColon, "Expect ';' after value.")?; [INFO] [stdout] 232 | Ok(Stmt::Print(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:238:12 [INFO] [stdout] | [INFO] [stdout] 236 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 237 | self.consume(TokenType::SemiColon, "Expect ';' after value.")?; [INFO] [stdout] 238 | Ok(Stmt::Expr(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser.rs:427:12 [INFO] [stdout] | [INFO] [stdout] 411 | fn finish_call(&mut self, callee: Expr) -> Result{ [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 412 | let mut args: Vec = Vec::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 427 | Ok(Expr::Call { [INFO] [stdout] | ____________^ [INFO] [stdout] 428 | | callee: Box::new(callee), [INFO] [stdout] 429 | | paren, [INFO] [stdout] 430 | | arguments: args [INFO] [stdout] 431 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/interpreter.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 35 | let globals = Environment::new(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | [INFO] [stdout] 37 | let clock: Types = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let asset_eql = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | globals: globals.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/interpreter.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 35 | let globals = Environment::new(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | [INFO] [stdout] 37 | let clock: Types = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let asset_eql = Types::Callable(Rc::new(Box::new(NativeFunction { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | environment: globals.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | &Stmt::IfStmt(ref Expr, ref then, ref else_option) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | Stmt::Print(Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:165:34 [INFO] [stdout] | [INFO] [stdout] 165 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:165:41 [INFO] [stdout] | [INFO] [stdout] 165 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:182:29 [INFO] [stdout] | [INFO] [stdout] 182 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:182:39 [INFO] [stdout] | [INFO] [stdout] 182 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | self.environment.get(name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 369 | let _ = self.environment.get(name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/environment.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from(enclosing: Environment) -> Self { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | Self { [INFO] [stdout] 29 | enclosing: Some(Box::new(enclosing)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/environment.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from(enclosing: Environment) -> Self { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 30 | values: Rc::new(RefCell::new(HashMap::new())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Lox` (bin "Lox" test) due to 12 previous errors; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f1f2901581ebd7b81ee3396e7e02f6ed93adf61244319e574a84b0b6f4886cfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1f2901581ebd7b81ee3396e7e02f6ed93adf61244319e574a84b0b6f4886cfb", kill_on_drop: false }` [INFO] [stdout] f1f2901581ebd7b81ee3396e7e02f6ed93adf61244319e574a84b0b6f4886cfb