[INFO] cloning repository https://github.com/therealansh/fxlang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/therealansh/fxlang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftherealansh%2Ffxlang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftherealansh%2Ffxlang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 664211f6e551353a517872a10dfe3be089ab511d [INFO] checking therealansh/fxlang against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftherealansh%2Ffxlang" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/therealansh/fxlang on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/therealansh/fxlang [INFO] finished tweaking git repo https://github.com/therealansh/fxlang [INFO] tweaked toml for git repo https://github.com/therealansh/fxlang written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/therealansh/fxlang 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88dc36b040cc21f13825d39f9f47a6ce13c1740ff075ae45a550e3e1e5b6b72e [INFO] running `Command { std: "docker" "start" "-a" "88dc36b040cc21f13825d39f9f47a6ce13c1740ff075ae45a550e3e1e5b6b72e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88dc36b040cc21f13825d39f9f47a6ce13c1740ff075ae45a550e3e1e5b6b72e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88dc36b040cc21f13825d39f9f47a6ce13c1740ff075ae45a550e3e1e5b6b72e", kill_on_drop: false }` [INFO] [stdout] 88dc36b040cc21f13825d39f9f47a6ce13c1740ff075ae45a550e3e1e5b6b72e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 911e00a923bb477ff4a4c283f6cc74f8bc486ff841f58e3e5f802a384985fb83 [INFO] running `Command { std: "docker" "start" "-a" "911e00a923bb477ff4a4c283f6cc74f8bc486ff841f58e3e5f802a384985fb83", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking fxlang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::frontend::expr::Expr::Literal` [INFO] [stdout] --> src/frontend/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::expr::Expr::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/frontend/parser.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] 55 + else if self.t_match(&[TokenType::Return]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | if(self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(self.is_at_end()) { [INFO] [stdout] 230 + if self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | if(!self.is_at_end()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if(!self.is_at_end()){ [INFO] [stdout] 245 + if !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:467:15 [INFO] [stdout] | [INFO] [stdout] 467 | if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 467 - if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] 467 + if self.previous().token_type==TokenType::Semicolon { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/frontend/interpreter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/frontend/fxfx.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitor` [INFO] [stdout] --> src/frontend/resolver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::expr::{Visitor, Expr, LiteralValue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser_error` [INFO] [stdout] --> src/frontend/resolver.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::error::{Error, parser_error, report}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::frontend::expr::Expr::Literal` [INFO] [stdout] --> src/frontend/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::expr::Expr::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/frontend/parser.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] 55 + else if self.t_match(&[TokenType::Return]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | if(self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(self.is_at_end()) { [INFO] [stdout] 230 + if self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | if(!self.is_at_end()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if(!self.is_at_end()){ [INFO] [stdout] 245 + if !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:467:15 [INFO] [stdout] | [INFO] [stdout] 467 | if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 467 - if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] 467 + if self.previous().token_type==TokenType::Semicolon { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/frontend/interpreter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/frontend/fxfx.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitor` [INFO] [stdout] --> src/frontend/resolver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::expr::{Visitor, Expr, LiteralValue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser_error` [INFO] [stdout] --> src/frontend/resolver.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::error::{Error, parser_error, report}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/frontend/expr.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/expr.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/frontend/expr.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:159:34 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:159:49 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/frontend/expr.rs:159:63 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/expr.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | fn visit_this_expr(&mut self, keyword: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/frontend/expr.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/expr.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/frontend/expr.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:159:34 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:159:49 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/frontend/expr.rs:159:63 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/expr.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | fn visit_this_expr(&mut self, keyword: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/parser.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | 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: variable does not need to be mutable [INFO] [stdout] --> src/frontend/parser.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | 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: unreachable pattern [INFO] [stdout] --> src/frontend/parser.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 471 | | TokenType::Var [INFO] [stdout] | -------------- matches all the relevant values [INFO] [stdout] 472 | | TokenType::Var [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | 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: unreachable pattern [INFO] [stdout] --> src/frontend/parser.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 471 | | TokenType::Var [INFO] [stdout] | -------------- matches all the relevant values [INFO] [stdout] 472 | | TokenType::Var [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | 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: `keyword` [INFO] [stdout] --> src/frontend/interpreter.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 389 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/interpreter.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 389 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/frontend/fxfx.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | FxFx::Native {body, ..} => unreachable!(), [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/frontend/fxfx.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | FxFx::Native {body, ..} => unreachable!(), [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:223:61 [INFO] [stdout] | [INFO] [stdout] 223 | fn visit_binary_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/resolver.rs:229:50 [INFO] [stdout] | [INFO] [stdout] 229 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:237:49 [INFO] [stdout] | [INFO] [stdout] 237 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result<(),Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/resolver.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frontend/resolver.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | fn visit_literal_expr(&mut self, val: &LiteralValue) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:275:62 [INFO] [stdout] | [INFO] [stdout] 275 | fn visit_logical_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn visit_unary_expr(&mut self, op: &Token, rhs: &Expr) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:223:61 [INFO] [stdout] | [INFO] [stdout] 223 | fn visit_binary_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/resolver.rs:229:50 [INFO] [stdout] | [INFO] [stdout] 229 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:237:49 [INFO] [stdout] | [INFO] [stdout] 237 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result<(),Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/resolver.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frontend/resolver.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | fn visit_literal_expr(&mut self, val: &LiteralValue) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:275:62 [INFO] [stdout] | [INFO] [stdout] 275 | fn visit_logical_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn visit_unary_expr(&mut self, op: &Token, rhs: &Expr) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sync` is never used [INFO] [stdout] --> src/frontend/parser.rs:464:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | fn sync(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [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] 47 | let _ = self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sync` is never used [INFO] [stdout] --> src/frontend/parser.rs:464:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | fn sync(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [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] 87 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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] 89 | let _ = self.consume(TokenType::RightParen,"Expect ')' after if condition"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [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] 154 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [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] 156 | let _ = self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [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] 162 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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] 176 | let _ = self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readNum` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readString` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `read_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | / self.exec_block( [INFO] [stdout] 335 | | statements, [INFO] [stdout] 336 | | Rc::new(RefCell::new(Environment::from(&self.env))), [INFO] [stdout] 337 | | ); [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] 334 | let _ = self.exec_block( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [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] 47 | let _ = self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | self.env.borrow_mut().assign(name, class); [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] 440 | let _ = self.env.borrow_mut().assign(name, class); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [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] 87 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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] 89 | let _ = self.consume(TokenType::RightParen,"Expect ')' after if condition"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [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] 154 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [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] 156 | let _ = self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [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] 162 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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] 176 | let _ = self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readNum` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readString` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `read_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | stmt.accept(self); [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] 45 | let _ = stmt.accept(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | expr.accept(self); [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] 49 | let _ = expr.accept(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | / self.exec_block( [INFO] [stdout] 335 | | statements, [INFO] [stdout] 336 | | Rc::new(RefCell::new(Environment::from(&self.env))), [INFO] [stdout] 337 | | ); [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] 334 | let _ = self.exec_block( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | self.env.borrow_mut().assign(name, class); [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] 440 | let _ = self.env.borrow_mut().assign(name, class); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | stmt.accept(self); [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] 45 | let _ = stmt.accept(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | expr.accept(self); [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] 49 | let _ = expr.accept(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fxlang::frontend::expr::AstPrinter` [INFO] [stdout] --> src/bin/fxlang.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use fxlang::frontend::expr::AstPrinter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdin` [INFO] [stdout] --> src/bin/fxlang.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fxlang::frontend::expr::AstPrinter` [INFO] [stdout] --> src/bin/fxlang.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use fxlang::frontend::expr::AstPrinter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdin` [INFO] [stdout] --> src/bin/fxlang.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "911e00a923bb477ff4a4c283f6cc74f8bc486ff841f58e3e5f802a384985fb83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "911e00a923bb477ff4a4c283f6cc74f8bc486ff841f58e3e5f802a384985fb83", kill_on_drop: false }` [INFO] [stdout] 911e00a923bb477ff4a4c283f6cc74f8bc486ff841f58e3e5f802a384985fb83 [INFO] checking therealansh/fxlang against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftherealansh%2Ffxlang" "/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/therealansh/fxlang on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/therealansh/fxlang [INFO] finished tweaking git repo https://github.com/therealansh/fxlang [INFO] tweaked toml for git repo https://github.com/therealansh/fxlang written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/therealansh/fxlang 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad07fcd69b8e6fa58847b26f15092dbf6807d0208da91d454ea1e8221d167e7a [INFO] running `Command { std: "docker" "start" "-a" "ad07fcd69b8e6fa58847b26f15092dbf6807d0208da91d454ea1e8221d167e7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad07fcd69b8e6fa58847b26f15092dbf6807d0208da91d454ea1e8221d167e7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad07fcd69b8e6fa58847b26f15092dbf6807d0208da91d454ea1e8221d167e7a", kill_on_drop: false }` [INFO] [stdout] ad07fcd69b8e6fa58847b26f15092dbf6807d0208da91d454ea1e8221d167e7a [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 -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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0640d5cd2903c1b5ea80a151be89d95edc0a508b709eb40bca87da7ae3700893 [INFO] running `Command { std: "docker" "start" "-a" "0640d5cd2903c1b5ea80a151be89d95edc0a508b709eb40bca87da7ae3700893", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking fxlang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::frontend::expr::Expr::Literal` [INFO] [stdout] --> src/frontend/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::expr::Expr::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/frontend/parser.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] 55 + else if self.t_match(&[TokenType::Return]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | if(self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(self.is_at_end()) { [INFO] [stdout] 230 + if self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | if(!self.is_at_end()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if(!self.is_at_end()){ [INFO] [stdout] 245 + if !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:467:15 [INFO] [stdout] | [INFO] [stdout] 467 | if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 467 - if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] 467 + if self.previous().token_type==TokenType::Semicolon { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/frontend/interpreter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/frontend/fxfx.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitor` [INFO] [stdout] --> src/frontend/resolver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::expr::{Visitor, Expr, LiteralValue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser_error` [INFO] [stdout] --> src/frontend/resolver.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::error::{Error, parser_error, report}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::frontend::expr::Expr::Literal` [INFO] [stdout] --> src/frontend/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::expr::Expr::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/frontend/parser.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - else if self.t_match((&[TokenType::Return])) { [INFO] [stdout] 55 + else if self.t_match(&[TokenType::Return]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:230:11 [INFO] [stdout] | [INFO] [stdout] 230 | if(self.is_at_end()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(self.is_at_end()) { [INFO] [stdout] 230 + if self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:245:11 [INFO] [stdout] | [INFO] [stdout] 245 | if(!self.is_at_end()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - if(!self.is_at_end()){ [INFO] [stdout] 245 + if !self.is_at_end() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/frontend/parser.rs:467:15 [INFO] [stdout] | [INFO] [stdout] 467 | if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 467 - if(self.previous().token_type==TokenType::Semicolon) { return; } [INFO] [stdout] 467 + if self.previous().token_type==TokenType::Semicolon { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/frontend/interpreter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/frontend/fxfx.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitor` [INFO] [stdout] --> src/frontend/resolver.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::expr::{Visitor, Expr, LiteralValue}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser_error` [INFO] [stdout] --> src/frontend/resolver.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::frontend::error::{Error, parser_error, report}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/frontend/expr.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/expr.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/frontend/expr.rs:151:35 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/frontend/expr.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/expr.rs:151:50 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/frontend/expr.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:159:34 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:159:49 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/frontend/expr.rs:159:34 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/frontend/expr.rs:159:63 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/expr.rs:159:49 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/frontend/expr.rs:159:63 [INFO] [stdout] | [INFO] [stdout] 159 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/expr.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/expr.rs:163:53 [INFO] [stdout] | [INFO] [stdout] 163 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | fn visit_this_expr(&mut self, keyword: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/expr.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | fn visit_this_expr(&mut self, keyword: &Token) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/parser.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | 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: variable does not need to be mutable [INFO] [stdout] --> src/frontend/parser.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | 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: unreachable pattern [INFO] [stdout] --> src/frontend/parser.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 471 | | TokenType::Var [INFO] [stdout] | -------------- matches all the relevant values [INFO] [stdout] 472 | | TokenType::Var [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/frontend/parser.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 471 | | TokenType::Var [INFO] [stdout] | -------------- matches all the relevant values [INFO] [stdout] 472 | | TokenType::Var [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | 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: `args` [INFO] [stdout] --> src/frontend/interpreter.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | 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: `keyword` [INFO] [stdout] --> src/frontend/interpreter.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 389 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/frontend/interpreter.rs:389:37 [INFO] [stdout] | [INFO] [stdout] 389 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Option) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/frontend/fxfx.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | FxFx::Native {body, ..} => unreachable!(), [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/frontend/fxfx.rs:67:27 [INFO] [stdout] | [INFO] [stdout] 67 | FxFx::Native {body, ..} => unreachable!(), [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/frontend/fxfx.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut env = Rc::new(RefCell::new(Environment::from(closure))); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:223:61 [INFO] [stdout] | [INFO] [stdout] 223 | fn visit_binary_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/resolver.rs:229:50 [INFO] [stdout] | [INFO] [stdout] 229 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:237:49 [INFO] [stdout] | [INFO] [stdout] 237 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result<(),Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/resolver.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frontend/resolver.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | fn visit_literal_expr(&mut self, val: &LiteralValue) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:275:62 [INFO] [stdout] | [INFO] [stdout] 275 | fn visit_logical_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:223:61 [INFO] [stdout] | [INFO] [stdout] 223 | fn visit_binary_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn visit_unary_expr(&mut self, op: &Token, rhs: &Expr) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/frontend/resolver.rs:229:50 [INFO] [stdout] | [INFO] [stdout] 229 | fn visit_call_expr(&mut self, callee: &Expr, paren: &Token, arguments: &Vec) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:237:49 [INFO] [stdout] | [INFO] [stdout] 237 | fn visit_get_expr(&mut self, object: &Expr, name: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/frontend/resolver.rs:242:49 [INFO] [stdout] | [INFO] [stdout] 242 | fn visit_set_expr(&mut self, object: &Expr, name: &Token, value: &Expr) -> Result<(),Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/frontend/resolver.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | fn visit_super_expr(&mut self, keyword: &Token, method: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frontend/resolver.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | fn visit_literal_expr(&mut self, val: &LiteralValue) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:275:62 [INFO] [stdout] | [INFO] [stdout] 275 | fn visit_logical_expr(&mut self, lhs: &Expr, rhs: &Expr, op: &Token) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/frontend/resolver.rs:281:36 [INFO] [stdout] | [INFO] [stdout] 281 | fn visit_unary_expr(&mut self, op: &Token, rhs: &Expr) -> Result<(), Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sync` is never used [INFO] [stdout] --> src/frontend/parser.rs:464:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | fn sync(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sync` is never used [INFO] [stdout] --> src/frontend/parser.rs:464:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | fn sync(&mut self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/frontend/parser.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 42 | let init = if self.t_match(&[TokenType::Equal]){ [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 48 | Ok(Stmt::Var{name:name, initializer:init}) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [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] 47 | let _ = self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [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/frontend/parser.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 88 | let condition = self.expression()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [INFO] [stdout] 90 | let then_branch = Box::new(self.statement()?); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 91 | let else_branch = if self.t_match(&[TokenType::Else]){ [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 97 | Ok(Stmt::If { [INFO] [stdout] | ____________^ [INFO] [stdout] 98 | | condition, else_branch, then_branch [INFO] [stdout] 99 | | }) [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] | | 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] | [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: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [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] 87 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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] 89 | let _ = self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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/frontend/parser.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 104 | let val= if !self.check(TokenType::Semicolon){ [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Stmt::Return {keyword,value:val}) [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/frontend/parser.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 131 | let body = self.block()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 132 | Ok(Stmt::FxFx {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] [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/frontend/parser.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 145 | let mut methods: 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] 150 | Ok(Stmt::Class {name, superclass: superclass.map(|name| Expr::Variable {name}),methods}) [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/frontend/expr.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 201 | let expression = Expr::Binary { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 221 | printer.print(expression).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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/frontend/parser.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 155 | let condition = self.expression()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] 157 | let body = Box::new(self.statement()?); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 158 | Ok(Stmt::While {condition,statement: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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [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] 154 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [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/frontend/parser.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 42 | let init = if self.t_match(&[TokenType::Equal]){ [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 48 | Ok(Stmt::Var{name:name, initializer:init}) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [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] 156 | let _ = self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [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] 47 | let _ = self.consume(TokenType::Semicolon, "Expect ';' after variable declaration"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [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] 162 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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] 176 | let _ = self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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/frontend/parser.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 208 | let value = self.expression()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 209 | self.consume(TokenType::Semicolon,"Expect ';' after value")?; [INFO] [stdout] 210 | Ok(Stmt::Print { expr: 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/frontend/parser.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 88 | let condition = self.expression()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [INFO] [stdout] 90 | let then_branch = Box::new(self.statement()?); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 91 | let else_branch = if self.t_match(&[TokenType::Else]){ [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 97 | Ok(Stmt::If { [INFO] [stdout] | ____________^ [INFO] [stdout] 98 | | condition, else_branch, then_branch [INFO] [stdout] 99 | | }) [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] | | 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] | [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/frontend/parser.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 214 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 215 | self.consume(TokenType::Semicolon, "Expect ';' after expression.")?; [INFO] [stdout] 216 | Ok(Stmt::Expression { 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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [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] 87 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'if'."); [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/frontend/parser.rs:415:12 [INFO] [stdout] | [INFO] [stdout] 399 | 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] 400 | //C has 127 argument limit [INFO] [stdout] 401 | let mut arguments: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] 415 | Ok(Expr::Call { [INFO] [stdout] | ____________^ [INFO] [stdout] 416 | | callee:Box::new(callee), [INFO] [stdout] 417 | | paren, [INFO] [stdout] 418 | | arguments [INFO] [stdout] 419 | | }) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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] 89 | let _ = self.consume(TokenType::RightParen,"Expect ')' after if condition"); [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/frontend/parser.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 104 | let val= if !self.check(TokenType::Semicolon){ [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Stmt::Return {keyword,value:val}) [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/frontend/interpreter.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 24 | let globals = Rc::new(RefCell::new(Environment::new())); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let clock:FxUnit = FxUnit::Callable( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | globals:Rc::clone(&globals), [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/frontend/parser.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 131 | let body = self.block()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 132 | Ok(Stmt::FxFx {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] [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/frontend/interpreter.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 24 | let globals = Rc::new(RefCell::new(Environment::new())); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let clock:FxUnit = FxUnit::Callable( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 72 | env: Rc::clone(&globals), [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 `readNum` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readString` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `read_string` [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/frontend/parser.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 145 | let mut methods: 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] 150 | Ok(Stmt::Class {name, superclass: superclass.map(|name| Expr::Variable {name}),methods}) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | / self.exec_block( [INFO] [stdout] 335 | | statements, [INFO] [stdout] 336 | | Rc::new(RefCell::new(Environment::from(&self.env))), [INFO] [stdout] 337 | | ); [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] 334 | let _ = self.exec_block( [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/frontend/parser.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 155 | let condition = self.expression()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] 157 | let body = Box::new(self.statement()?); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 158 | Ok(Stmt::While {condition,statement: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/frontend/interpreter.rs:391:13 [INFO] [stdout] | [INFO] [stdout] 390 | let return_val = value.as_ref().map(|v| self.evaluate(v)).unwrap_or(Ok(FxUnit::Nil))?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 391 | Err(Error::Return {value:return_val}) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [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] 154 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'while'."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | self.env.borrow_mut().assign(name, class); [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] 440 | let _ = self.env.borrow_mut().assign(name, class); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.consume(TokenType::RightParen,"Expect ')' after condition."); [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] 156 | let _ = self.consume(TokenType::RightParen,"Expect ')' after condition."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [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] 162 | let _ = self.consume(TokenType::LeftParen, "Expect '(' after 'for'"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/parser.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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] 176 | let _ = self.consume(TokenType::Semicolon,"Expeect ';' after loop condition"); [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/frontend/parser.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 208 | let value = self.expression()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 209 | self.consume(TokenType::Semicolon,"Expect ';' after value")?; [INFO] [stdout] 210 | Ok(Stmt::Print { expr: 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/frontend/parser.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 214 | let expr = self.expression()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 215 | self.consume(TokenType::Semicolon, "Expect ';' after expression.")?; [INFO] [stdout] 216 | Ok(Stmt::Expression { 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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | stmt.accept(self); [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] 45 | let _ = stmt.accept(self); [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/frontend/parser.rs:415:12 [INFO] [stdout] | [INFO] [stdout] 399 | 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] 400 | //C has 127 argument limit [INFO] [stdout] 401 | let mut arguments: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] 415 | Ok(Expr::Call { [INFO] [stdout] | ____________^ [INFO] [stdout] 416 | | callee:Box::new(callee), [INFO] [stdout] 417 | | paren, [INFO] [stdout] 418 | | arguments [INFO] [stdout] 419 | | }) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | expr.accept(self); [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] 49 | let _ = expr.accept(self); [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/frontend/interpreter.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 24 | let globals = Rc::new(RefCell::new(Environment::new())); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let clock:FxUnit = FxUnit::Callable( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | globals:Rc::clone(&globals), [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/frontend/interpreter.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 24 | let globals = Rc::new(RefCell::new(Environment::new())); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | let clock:FxUnit = FxUnit::Callable( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 72 | env: Rc::clone(&globals), [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/frontend/fxclass.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 38 | let instance = FxClassInstance{ [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | FxUnit::Instance(Rc::new(RefCell::new(instance))) [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 `readNum` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let readNum:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readString` should have a snake case name [INFO] [stdout] --> src/frontend/interpreter.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let readString:FxUnit = FxUnit::Callable( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `read_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | / self.exec_block( [INFO] [stdout] 335 | | statements, [INFO] [stdout] 336 | | Rc::new(RefCell::new(Environment::from(&self.env))), [INFO] [stdout] 337 | | ); [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] 334 | let _ = self.exec_block( [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/frontend/interpreter.rs:391:13 [INFO] [stdout] | [INFO] [stdout] 390 | let return_val = value.as_ref().map(|v| self.evaluate(v)).unwrap_or(Ok(FxUnit::Nil))?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 391 | Err(Error::Return {value:return_val}) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/interpreter.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | self.env.borrow_mut().assign(name, class); [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] 440 | let _ = self.env.borrow_mut().assign(name, class); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | stmt.accept(self); [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] 45 | let _ = stmt.accept(self); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/frontend/resolver.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | expr.accept(self); [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] 49 | let _ = expr.accept(self); [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/frontend/fxclass.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 38 | let instance = FxClassInstance{ [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | FxUnit::Instance(Rc::new(RefCell::new(instance))) [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 13 previous errors; 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fxlang` (lib) due to 14 previous errors; 51 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `fxlang` (lib test) due to 15 previous errors; 51 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0640d5cd2903c1b5ea80a151be89d95edc0a508b709eb40bca87da7ae3700893", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0640d5cd2903c1b5ea80a151be89d95edc0a508b709eb40bca87da7ae3700893", kill_on_drop: false }` [INFO] [stdout] 0640d5cd2903c1b5ea80a151be89d95edc0a508b709eb40bca87da7ae3700893