[INFO] cloning repository https://github.com/bugzmanov/test-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bugzmanov/test-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugzmanov%2Ftest-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugzmanov%2Ftest-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1aa04978b7a017dca1e5ab27faf43cfb9a76ee1f [INFO] checking bugzmanov/test-ai against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugzmanov%2Ftest-ai" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bugzmanov/test-ai [INFO] finished tweaking git repo https://github.com/bugzmanov/test-ai [INFO] tweaked toml for git repo https://github.com/bugzmanov/test-ai written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bugzmanov/test-ai on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bugzmanov/test-ai 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07ad4ac37d35929aa67ad89c38856464e5f1c5e964d1e3fb5d3a057b1de713b0 [INFO] running `Command { std: "docker" "start" "-a" "07ad4ac37d35929aa67ad89c38856464e5f1c5e964d1e3fb5d3a057b1de713b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07ad4ac37d35929aa67ad89c38856464e5f1c5e964d1e3fb5d3a057b1de713b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07ad4ac37d35929aa67ad89c38856464e5f1c5e964d1e3fb5d3a057b1de713b0", kill_on_drop: false }` [INFO] [stdout] 07ad4ac37d35929aa67ad89c38856464e5f1c5e964d1e3fb5d3a057b1de713b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f956cc1a2ec1a3638680a7ed113250328cfefeb20909200549d7da6171550ba [INFO] running `Command { std: "docker" "start" "-a" "8f956cc1a2ec1a3638680a7ed113250328cfefeb20909200549d7da6171550ba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking clap_builder v4.5.31 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking tempfile v3.17.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Checking clap v4.5.31 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking scalariform-rs v0.2.10 (/opt/rustwide/workdir) [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/formatter/type_formatter.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | } else if let Some(ref last_token) = element.last_token() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/parser/scala_parser.rs:5637:20 [INFO] [stdout] | [INFO] [stdout] 5637 | && let Some(tokens) = base_expr.contents[dot_idx].downcast_ref::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/formatter/type_formatter.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | } else if let Some(ref last_token) = element.last_token() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/parser/scala_parser.rs:5637:20 [INFO] [stdout] | [INFO] [stdout] 5637 | && let Some(tokens) = base_expr.contents[dot_idx].downcast_ref::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::super::parser::print_ast` [INFO] [stdout] --> src/ast/debug.rs:2264:9 [INFO] [stdout] | [INFO] [stdout] 2264 | use super::super::super::parser::print_ast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/ast/debug.rs:2265:9 [INFO] [stdout] | [INFO] [stdout] 2265 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/formatter/intertok_formatting.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::Guard` [INFO] [stdout] --> src/formatter/preferences.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::Guard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/formatter/preferences.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NoFormatResult` [INFO] [stdout] --> src/formatter/scala_formatter.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::formatter::format_result::{FormatResult, NoFormatResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::formatter::type_formatter::format_type` [INFO] [stdout] --> src/formatter/scala_formatter.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::formatter::type_formatter::format_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::formatter::xml_formatter::format_xml` [INFO] [stdout] --> src/formatter/scala_formatter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::formatter::xml_formatter::format_xml; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ScalaLexer` and `ScalaVersion` [INFO] [stdout] --> src/formatter/scala_formatter.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lexer::{HiddenToken, HiddenTokens, ScalaLexer, ScalaVersion, Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `apply_edits` [INFO] [stdout] --> src/formatter/scala_formatter.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::utils::text_edit::{apply_edits, TextEdit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/formatter/scala_formatter.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::expr_formatter` [INFO] [stdout] --> src/formatter/scala_formatter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use super::expr_formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/lexer/scala_version.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/lexer/tests.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexer::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `test_tokens_forgive` [INFO] [stdout] --> src/lexer/tests.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | macro_rules! test_tokens_forgive { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/lexer/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CallExpr` and `CaseClause` [INFO] [stdout] --> src/parser/print_ast.rs:4:72 [INFO] [stdout] | [INFO] [stdout] 4 | AccessModifier, AnonymousFunction, AstNode, AstNodeExt, BlockExpr, CallExpr, CaseClause, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parser/scala_parser.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | if (expected == TokenType::RParen [INFO] [stdout] | ^ [INFO] [stdout] 207 | && self.current_token().unwrap().token_type != TokenType::RParen) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 ~ if expected == TokenType::RParen [INFO] [stdout] 207 ~ && self.current_token().unwrap().token_type != TokenType::RParen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StatSeq` and `TemplateBody` [INFO] [stdout] --> src/parser/tests.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | AstNode, AstNodeExt, ExprFunBody, FullDefOrDcl, FunDefOrDcl, StatSeq, TemplateBody, TmplDef, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ScalaLexer` and `Token` [INFO] [stdout] --> src/parser/tests.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::lexer::{self, ScalaLexer, Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/parser/tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/formatter/intertok_formatting.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::Guard` [INFO] [stdout] --> src/formatter/preferences.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::Guard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/formatter/preferences.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NoFormatResult` [INFO] [stdout] --> src/formatter/scala_formatter.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::formatter::format_result::{FormatResult, NoFormatResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::formatter::type_formatter::format_type` [INFO] [stdout] --> src/formatter/scala_formatter.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::formatter::type_formatter::format_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::formatter::xml_formatter::format_xml` [INFO] [stdout] --> src/formatter/scala_formatter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::formatter::xml_formatter::format_xml; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ScalaLexer` and `ScalaVersion` [INFO] [stdout] --> src/formatter/scala_formatter.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::lexer::{HiddenToken, HiddenTokens, ScalaLexer, ScalaVersion, Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `apply_edits` [INFO] [stdout] --> src/formatter/scala_formatter.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::utils::text_edit::{apply_edits, TextEdit}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/formatter/scala_formatter.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::expr_formatter` [INFO] [stdout] --> src/formatter/scala_formatter.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use super::expr_formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/lexer/scala_version.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CallExpr` and `CaseClause` [INFO] [stdout] --> src/parser/print_ast.rs:4:72 [INFO] [stdout] | [INFO] [stdout] 4 | AccessModifier, AnonymousFunction, AstNode, AstNodeExt, BlockExpr, CallExpr, CaseClause, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/parser/scala_parser.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | if (expected == TokenType::RParen [INFO] [stdout] | ^ [INFO] [stdout] 207 | && self.current_token().unwrap().token_type != TokenType::RParen) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 ~ if expected == TokenType::RParen [INFO] [stdout] 207 ~ && self.current_token().unwrap().token_type != TokenType::RParen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `trait_upcasting` has been stable since 1.86.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(trait_upcasting)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `let_chains` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(let_chains)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `trait_upcasting` has been stable since 1.86.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(trait_upcasting)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `let_chains` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(let_chains)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut items: Vec<_> = iter.into_iter().collect(); [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/utils/mod.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut items: Vec<_> = iter.into_iter().collect(); [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/utils/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut items: Vec<_> = iter.into_iter().collect(); [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/utils/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut items: Vec<_> = iter.into_iter().collect(); [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/utils/mod.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut items: Vec<_> = iter.into_iter().collect(); [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/utils/mod.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut items: Vec<_> = iter.into_iter().collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/parser/scala_parser.rs:1929:13 [INFO] [stdout] | [INFO] [stdout] 1928 | panic!("hooly"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 1929 | / return Err(ScalaParserError::UnexpectedToken { [INFO] [stdout] 1930 | | expected: "simple type".to_string(), [INFO] [stdout] 1931 | | got: format!("{:?}", self.current_token().map(|t| t.token_type)), [INFO] [stdout] 1932 | | position: self.current_position(), [INFO] [stdout] 1933 | | }); [INFO] [stdout] | |_______________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/parser/scala_parser.rs:1929:13 [INFO] [stdout] | [INFO] [stdout] 1928 | panic!("hooly"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 1929 | / return Err(ScalaParserError::UnexpectedToken { [INFO] [stdout] 1930 | | expected: "simple type".to_string(), [INFO] [stdout] 1931 | | got: format!("{:?}", self.current_token().map(|t| t.token_type)), [INFO] [stdout] 1932 | | position: self.current_position(), [INFO] [stdout] 1933 | | }); [INFO] [stdout] | |_______________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AstNode` [INFO] [stdout] --> src/parser/tests.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | AstNode, AstNodeExt, ExprFunBody, FullDefOrDcl, FunDefOrDcl, StatSeq, TemplateBody, TmplDef, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_type` [INFO] [stdout] --> src/ast/mod.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let token_type = token.token_type; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_type` [INFO] [stdout] --> src/ast/mod.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let token_type = token.token_type; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `case_clauses_node` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | case_clauses_node: &CaseClauses, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_case_clauses_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:453:5 [INFO] [stdout] | [INFO] [stdout] 453 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indent_level` [INFO] [stdout] --> src/formatter/comment_formatter.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | indent_level: usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indent_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val_or_var` [INFO] [stdout] --> src/formatter/expr_formatter.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | if let Some(ref val_or_var) = param.val_or_var_opt { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_val_or_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enumerators_section_contains_newline` [INFO] [stdout] --> src/formatter/expr_formatter.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | let enumerators_section_contains_newline = contains_newline(for_expr.enumerators.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enumerators_section_contains_newline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_body` [INFO] [stdout] --> src/formatter/expr_formatter.rs:817:17 [INFO] [stdout] | [INFO] [stdout] 817 | if let Some(template_body) = template_body_contents { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lparen` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1044:13 [INFO] [stdout] | [INFO] [stdout] 1044 | let lparen = &paren_args.lparen; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lparen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `named_args_present` is assigned to, but never used [INFO] [stdout] --> src/formatter/expr_formatter.rs:1066:17 [INFO] [stdout] | [INFO] [stdout] 1066 | let mut named_args_present = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_named_args_present` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `named_args_present` is never read [INFO] [stdout] --> src/formatter/expr_formatter.rs:1111:21 [INFO] [stdout] | [INFO] [stdout] 1111 | named_args_present = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pcdata` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1484:24 [INFO] [stdout] | [INFO] [stdout] 1484 | } else if let Some(pcdata) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pcdata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cdata` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1486:24 [INFO] [stdout] | [INFO] [stdout] 1486 | } else if let Some(cdata) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cdata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1488:24 [INFO] [stdout] | [INFO] [stdout] 1488 | } else if let Some(comment) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1490:24 [INFO] [stdout] | [INFO] [stdout] 1490 | } else if let Some(unparsed) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1492:24 [INFO] [stdout] | [INFO] [stdout] 1492 | } else if let Some(pi) = element.downcast_ref::() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1588:5 [INFO] [stdout] | [INFO] [stdout] 1588 | state: &FormatterState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1589:5 [INFO] [stdout] | [INFO] [stdout] 1589 | prefs: &FormattingPreferences, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lparen` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1627:9 [INFO] [stdout] | [INFO] [stdout] 1627 | let lparen = &paren_expr.lparen; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lparen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | let mut first_non_whitespace = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | first_non_whitespace = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | first_non_whitespace = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `case_clauses_node` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | case_clauses_node: &CaseClauses, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_case_clauses_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/formatter/case_clause_formatter.rs:453:5 [INFO] [stdout] | [INFO] [stdout] 453 | formatter: &T, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indent_level` [INFO] [stdout] --> src/formatter/comment_formatter.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | indent_level: usize, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indent_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val_or_var` [INFO] [stdout] --> src/formatter/expr_formatter.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | if let Some(ref val_or_var) = param.val_or_var_opt { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_val_or_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enumerators_section_contains_newline` [INFO] [stdout] --> src/formatter/expr_formatter.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | let enumerators_section_contains_newline = contains_newline(for_expr.enumerators.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enumerators_section_contains_newline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template_body` [INFO] [stdout] --> src/formatter/expr_formatter.rs:817:17 [INFO] [stdout] | [INFO] [stdout] 817 | if let Some(template_body) = template_body_contents { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/formatter/preferences.rs:188:30 [INFO] [stdout] | [INFO] [stdout] 188 | fn newline_before(&self, node: &dyn crate::ast::AstNode) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/preferences.rs:192:39 [INFO] [stdout] | [INFO] [stdout] 192 | fn hiddens_contain_newline(&self, token: &crate::lexer::Token) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/preferences.rs:196:39 [INFO] [stdout] | [INFO] [stdout] 196 | fn hiddens_contain_comment(&self, token: &crate::lexer::Token) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `case_pattern` [INFO] [stdout] --> src/formatter/preferences.rs:201:44 [INFO] [stdout] | [INFO] [stdout] 201 | fn get_formatted_pattern_length(&self, case_pattern: &crate::ast::CasePattern) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_case_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lparen` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1044:13 [INFO] [stdout] | [INFO] [stdout] 1044 | let lparen = &paren_args.lparen; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lparen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `named_args_present` is assigned to, but never used [INFO] [stdout] --> src/formatter/expr_formatter.rs:1066:17 [INFO] [stdout] | [INFO] [stdout] 1066 | let mut named_args_present = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_named_args_present` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `named_args_present` is never read [INFO] [stdout] --> src/formatter/expr_formatter.rs:1111:21 [INFO] [stdout] | [INFO] [stdout] 1111 | named_args_present = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `separator` [INFO] [stdout] --> src/formatter/scala_formatter.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 157 | for (separator, enumerator) in &for_expr.enumerators.rest { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_separator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pcdata` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1484:24 [INFO] [stdout] | [INFO] [stdout] 1484 | } else if let Some(pcdata) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pcdata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cdata` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1486:24 [INFO] [stdout] | [INFO] [stdout] 1486 | } else if let Some(cdata) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cdata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1488:24 [INFO] [stdout] | [INFO] [stdout] 1488 | } else if let Some(comment) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1490:24 [INFO] [stdout] | [INFO] [stdout] 1490 | } else if let Some(unparsed) = element.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1492:24 [INFO] [stdout] | [INFO] [stdout] 1492 | } else if let Some(pi) = element.downcast_ref::() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:420:18 [INFO] [stdout] | [INFO] [stdout] 420 | for (comma, other_import_selector) in other_import_selectors { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:446:18 [INFO] [stdout] | [INFO] [stdout] 446 | for (comma, other_import_selector) in other_import_selectors { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1588:5 [INFO] [stdout] | [INFO] [stdout] 1588 | state: &FormatterState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1589:5 [INFO] [stdout] | [INFO] [stdout] 1589 | prefs: &FormattingPreferences, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lparen` [INFO] [stdout] --> src/formatter/expr_formatter.rs:1627:9 [INFO] [stdout] | [INFO] [stdout] 1627 | let lparen = &paren_expr.lparen; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lparen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_expr_newline_count` is never read [INFO] [stdout] --> src/formatter/scala_formatter.rs:983:17 [INFO] [stdout] | [INFO] [stdout] 983 | let mut current_expr_newline_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_expr_newline_count` is never read [INFO] [stdout] --> src/formatter/scala_formatter.rs:1048:33 [INFO] [stdout] | [INFO] [stdout] 1048 | ... current_expr_newline_count = self.count_newlines_in_hiddens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | let mut first_non_whitespace = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | first_non_whitespace = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first_non_whitespace` is never read [INFO] [stdout] --> src/formatter/xml_formatter.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | first_non_whitespace = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1618:22 [INFO] [stdout] | [INFO] [stdout] 1618 | for (i, (comma, selector)) in block_import [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1644:14 [INFO] [stdout] | [INFO] [stdout] 1644 | for (comma, other_import_expr) in &import_clause.other_import_exprs { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatting_instruction` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1716:25 [INFO] [stdout] | [INFO] [stdout] 1716 | let formatting_instruction = if next_token_opt [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatting_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_token_unindents` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1732:25 [INFO] [stdout] | [INFO] [stdout] 1732 | let next_token_unindents = next_token_opt [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_token_unindents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_buffer_before_next_token` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1737:25 [INFO] [stdout] | [INFO] [stdout] 1737 | let include_buffer_before_next_token = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_buffer_before_next_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/scala_formatter.rs:2611:48 [INFO] [stdout] | [INFO] [stdout] 2611 | HiddenToken::ScalaDocComment { token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatted` [INFO] [stdout] --> src/formatter/scala_formatter.rs:3073:13 [INFO] [stdout] | [INFO] [stdout] 3073 | let formatted = format_case_pattern(self, case_pattern, None, &temp_state); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatted` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/formatter/preferences.rs:188:30 [INFO] [stdout] | [INFO] [stdout] 188 | fn newline_before(&self, node: &dyn crate::ast::AstNode) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/preferences.rs:192:39 [INFO] [stdout] | [INFO] [stdout] 192 | fn hiddens_contain_newline(&self, token: &crate::lexer::Token) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/preferences.rs:196:39 [INFO] [stdout] | [INFO] [stdout] 196 | fn hiddens_contain_comment(&self, token: &crate::lexer::Token) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `case_pattern` [INFO] [stdout] --> src/formatter/preferences.rs:201:44 [INFO] [stdout] | [INFO] [stdout] 201 | fn get_formatted_pattern_length(&self, case_pattern: &crate::ast::CasePattern) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_case_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `separator` [INFO] [stdout] --> src/formatter/scala_formatter.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 157 | for (separator, enumerator) in &for_expr.enumerators.rest { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_separator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:420:18 [INFO] [stdout] | [INFO] [stdout] 420 | for (comma, other_import_selector) in other_import_selectors { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:446:18 [INFO] [stdout] | [INFO] [stdout] 446 | for (comma, other_import_selector) in other_import_selectors { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_expr_newline_count` is never read [INFO] [stdout] --> src/formatter/scala_formatter.rs:983:17 [INFO] [stdout] | [INFO] [stdout] 983 | let mut current_expr_newline_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_expr_newline_count` is never read [INFO] [stdout] --> src/formatter/scala_formatter.rs:1048:33 [INFO] [stdout] | [INFO] [stdout] 1048 | ... current_expr_newline_count = self.count_newlines_in_hiddens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1618:22 [INFO] [stdout] | [INFO] [stdout] 1618 | for (i, (comma, selector)) in block_import [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1644:14 [INFO] [stdout] | [INFO] [stdout] 1644 | for (comma, other_import_expr) in &import_clause.other_import_exprs { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/whitespace.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let mut inferencer = Self { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatting_instruction` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1716:25 [INFO] [stdout] | [INFO] [stdout] 1716 | let formatting_instruction = if next_token_opt [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatting_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_token_unindents` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1732:25 [INFO] [stdout] | [INFO] [stdout] 1732 | let next_token_unindents = next_token_opt [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_token_unindents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `include_buffer_before_next_token` [INFO] [stdout] --> src/formatter/scala_formatter.rs:1737:25 [INFO] [stdout] | [INFO] [stdout] 1737 | let include_buffer_before_next_token = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_include_buffer_before_next_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/formatter/scala_formatter.rs:2611:48 [INFO] [stdout] | [INFO] [stdout] 2611 | HiddenToken::ScalaDocComment { token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatted` [INFO] [stdout] --> src/formatter/scala_formatter.rs:3073:13 [INFO] [stdout] | [INFO] [stdout] 3073 | let formatted = format_case_pattern(self, case_pattern, None, &temp_state); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatted` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/parser/print_ast.rs:510:34 [INFO] [stdout] | [INFO] [stdout] 510 | crate::ast::Either::Left(cases) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cases` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser/scala_parser.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser/scala_parser.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 353 | Some(TokenType::LParen) => true, [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 359 | Some(TokenType::LParen) => true, [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: `lbrace` [INFO] [stdout] --> src/parser/scala_parser.rs:498:21 [INFO] [stdout] | [INFO] [stdout] 498 | let lbrace = self.accept(TokenType::LBrace)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lbrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rbrace` [INFO] [stdout] --> src/parser/scala_parser.rs:500:21 [INFO] [stdout] | [INFO] [stdout] 500 | let rbrace = self.accept(TokenType::RBrace)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rbrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newline_token` is never read [INFO] [stdout] --> src/parser/scala_parser.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut newline_token = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `terminal_string` is never read [INFO] [stdout] --> src/parser/scala_parser.rs:1459:17 [INFO] [stdout] | [INFO] [stdout] 1459 | let mut terminal_string = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/whitespace.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let mut inferencer = Self { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/parser/print_ast.rs:510:34 [INFO] [stdout] | [INFO] [stdout] 510 | crate::ast::Either::Left(cases) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cases` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser/scala_parser.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser/scala_parser.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 353 | Some(TokenType::LParen) => true, [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 359 | Some(TokenType::LParen) => true, [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: `lbrace` [INFO] [stdout] --> src/parser/scala_parser.rs:498:21 [INFO] [stdout] | [INFO] [stdout] 498 | let lbrace = self.accept(TokenType::LBrace)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lbrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rbrace` [INFO] [stdout] --> src/parser/scala_parser.rs:500:21 [INFO] [stdout] | [INFO] [stdout] 500 | let rbrace = self.accept(TokenType::RBrace)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rbrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_state` [INFO] [stdout] --> src/parser/scala_parser.rs:3570:13 [INFO] [stdout] | [INFO] [stdout] 3570 | let saved_state = self.save_state(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/parser/scala_parser.rs:3650:17 [INFO] [stdout] | [INFO] [stdout] 3650 | let id = self.advance(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newline_token` is never read [INFO] [stdout] --> src/parser/scala_parser.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut newline_token = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brace_level` [INFO] [stdout] --> src/parser/scala_parser.rs:4076:33 [INFO] [stdout] | [INFO] [stdout] 4076 | ... let brace_level = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brace_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `terminal_string` is never read [INFO] [stdout] --> src/parser/scala_parser.rs:1459:17 [INFO] [stdout] | [INFO] [stdout] 1459 | let mut terminal_string = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/scala_parser.rs:5547:13 [INFO] [stdout] | [INFO] [stdout] 5547 | let mut dot_opt = None; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_state` [INFO] [stdout] --> src/parser/scala_parser.rs:3570:13 [INFO] [stdout] | [INFO] [stdout] 3570 | let saved_state = self.save_state(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/parser/scala_parser.rs:3650:17 [INFO] [stdout] | [INFO] [stdout] 3650 | let id = self.advance(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/parser/mod.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse(tokens: &[Token], forgive_errors: bool) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `forgive_errors` [INFO] [stdout] --> src/parser/mod.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse(tokens: &[Token], forgive_errors: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_forgive_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brace_level` [INFO] [stdout] --> src/parser/scala_parser.rs:4076:33 [INFO] [stdout] | [INFO] [stdout] 4076 | ... let brace_level = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brace_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scalariform-rs` (lib test) due to 2 previous errors; 81 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/scala_parser.rs:5547:13 [INFO] [stdout] | [INFO] [stdout] 5547 | let mut dot_opt = None; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/parser/mod.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse(tokens: &[Token], forgive_errors: bool) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `forgive_errors` [INFO] [stdout] --> src/parser/mod.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse(tokens: &[Token], forgive_errors: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_forgive_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scalariform-rs` (lib) due to 2 previous errors; 72 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f956cc1a2ec1a3638680a7ed113250328cfefeb20909200549d7da6171550ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f956cc1a2ec1a3638680a7ed113250328cfefeb20909200549d7da6171550ba", kill_on_drop: false }` [INFO] [stdout] 8f956cc1a2ec1a3638680a7ed113250328cfefeb20909200549d7da6171550ba