[INFO] cloning repository https://github.com/terrarier2111/MathInterpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/terrarier2111/MathInterpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97a7495744aa771e82e24d73d3bbc8f6de0597d3 [INFO] checking terrarier2111/MathInterpreter against master#e0ba2d038db3afa968e13075b1d6eabd24339708 for pr-112988-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/terrarier2111/MathInterpreter on toolchain e0ba2d038db3afa968e13075b1d6eabd24339708 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e0ba2d038db3afa968e13075b1d6eabd24339708" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/terrarier2111/MathInterpreter [INFO] finished tweaking git repo https://github.com/terrarier2111/MathInterpreter [INFO] tweaked toml for git repo https://github.com/terrarier2111/MathInterpreter written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/terrarier2111/MathInterpreter 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" "+e0ba2d038db3afa968e13075b1d6eabd24339708" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simba v0.6.0 [INFO] [stderr] Downloaded bytecheck v0.6.9 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded rend v0.3.6 [INFO] [stderr] Downloaded rkyv v0.7.39 [INFO] [stderr] Downloaded bytemuck v1.12.3 [INFO] [stderr] Downloaded borsh v0.9.3 [INFO] [stderr] Downloaded once_cell v1.16.0 [INFO] [stderr] Downloaded serde v1.0.136 [INFO] [stderr] Downloaded serde_json v1.0.89 [INFO] [stderr] Downloaded safe_arch v0.6.0 [INFO] [stderr] Downloaded nalgebra v0.29.0 [INFO] [stderr] Downloaded wide v0.7.5 [INFO] [stderr] Downloaded rust_decimal v1.27.0 [INFO] [stderr] Downloaded libm v0.2.2 [INFO] [stderr] Downloaded rand_distr v0.4.3 [INFO] [stderr] Downloaded statrs v0.16.0 [INFO] [stderr] Downloaded matrixmultiply v0.3.2 [INFO] [stderr] Downloaded quote v1.0.15 [INFO] [stderr] Downloaded num-complex v0.4.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded paste v1.0.7 [INFO] [stderr] Downloaded approx v0.5.1 [INFO] [stderr] Downloaded colored v2.0.0 [INFO] [stderr] Downloaded arrayvec v0.7.2 [INFO] [stderr] Downloaded borsh-derive-internal v0.9.3 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Downloaded proc-macro-crate v0.1.5 [INFO] [stderr] Downloaded borsh-derive v0.9.3 [INFO] [stderr] Downloaded bytecheck_derive v0.6.9 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded itoa v1.0.4 [INFO] [stderr] Downloaded rust_decimal_macros v1.27.0 [INFO] [stderr] Downloaded rkyv_derive v0.7.39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+e0ba2d038db3afa968e13075b1d6eabd24339708" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] faf35cb12a15449b49be53d635ac360072429054edb9642e56030d09c30c0b22 [INFO] running `Command { std: "docker" "start" "-a" "faf35cb12a15449b49be53d635ac360072429054edb9642e56030d09c30c0b22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "faf35cb12a15449b49be53d635ac360072429054edb9642e56030d09c30c0b22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faf35cb12a15449b49be53d635ac360072429054edb9642e56030d09c30c0b22", kill_on_drop: false }` [INFO] [stdout] faf35cb12a15449b49be53d635ac360072429054edb9642e56030d09c30c0b22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+e0ba2d038db3afa968e13075b1d6eabd24339708" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcf4a23a69ae75f709451ace7f93aa5126dc6afc45c0b8208d811ea76fadcbab [INFO] running `Command { std: "docker" "start" "-a" "bcf4a23a69ae75f709451ace7f93aa5126dc6afc45c0b8208d811ea76fadcbab", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking bytemuck v1.12.3 [INFO] [stderr] Compiling syn v1.0.94 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking safe_arch v0.6.0 [INFO] [stderr] Compiling rust_decimal v1.27.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking wide v0.7.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling rust_decimal_macros v1.27.0 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking statrs v0.16.0 [INFO] [stderr] Checking MathInterpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `diagnostic_builder_spanned` [INFO] [stdout] --> src/ast_walker.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{diagnostic_builder, diagnostic_builder_spanned}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignKind` [INFO] [stdout] --> src/equation_evaluator.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::shared::{BinOpKind, LiteralKind, LiteralToken, Number, SignKind, TrailingSpace, UnaryOpKind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/equation_evaluator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ANSMode`, `Config`, `DiagnosticsConfig`, `Mode`, `_lib`, `parser` [INFO] [stdout] --> src/equation_simplifier.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{_lib, diagnostic_builder, parser, shared, ANSMode, Config, DiagnosticsConfig, Mode}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Neg` [INFO] [stdout] --> src/equation_simplifier.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Neg, Range}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignKind` [INFO] [stdout] --> src/lexer.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | BinOpKind, LiteralKind, LiteralToken, SignKind, Token, TokenKind, TrailingSpace, UnaryOpKind, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericSpan` [INFO] [stdout] --> src/lexer.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::span::{FixedTokenSpan, GenericSpan, Span}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/lexer.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | (('a'..='z') | ('A'..='Z') | '_' | '#') => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - (('a'..='z') | ('A'..='Z') | '_' | '#') => { [INFO] [stdout] 62 + ('a'..='z') | ('A'..='Z') | '_' | '#' => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Associativity`, `SignKind`, `num_to_num_and_sign` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | num_to_num_and_sign, ArgPosition, Associativity, BinOpKind, ImplicitlyMultiply, LiteralKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 8 | LiteralToken, Number, SignKind, Token, TokenKind, TrailingSpace, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `DiagnosticsConfig`, `_lib` [INFO] [stdout] --> src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | _lib, diagnostic_builder, diagnostic_builder_spanned, equation_evaluator, pluralize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | register_builtin_func, register_const, ANSMode, Config, DiagnosticsConfig, Mode, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Neg` [INFO] [stdout] --> src/parser.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::ops::Neg; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diagnostic_builder_spanned` [INFO] [stdout] --> src/ast_walker.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{diagnostic_builder, diagnostic_builder_spanned}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignKind` [INFO] [stdout] --> src/equation_evaluator.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::shared::{BinOpKind, LiteralKind, LiteralToken, Number, SignKind, TrailingSpace, UnaryOpKind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/equation_evaluator.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser` [INFO] [stdout] --> src/equation_simplifier.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{_lib, diagnostic_builder, parser, shared, ANSMode, Config, DiagnosticsConfig, Mode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Neg` [INFO] [stdout] --> src/equation_simplifier.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Neg, Range}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignKind` [INFO] [stdout] --> src/lexer.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | BinOpKind, LiteralKind, LiteralToken, SignKind, Token, TokenKind, TrailingSpace, UnaryOpKind, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericSpan` [INFO] [stdout] --> src/lexer.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::span::{FixedTokenSpan, GenericSpan, Span}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/lexer.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | (('a'..='z') | ('A'..='Z') | '_' | '#') => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - (('a'..='z') | ('A'..='Z') | '_' | '#') => { [INFO] [stdout] 62 + ('a'..='z') | ('A'..='Z') | '_' | '#' => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Associativity`, `SignKind`, `num_to_num_and_sign` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | num_to_num_and_sign, ArgPosition, Associativity, BinOpKind, ImplicitlyMultiply, LiteralKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 8 | LiteralToken, Number, SignKind, Token, TokenKind, TrailingSpace, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Neg` [INFO] [stdout] --> src/parser.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::ops::Neg; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/equation_simplifier.rs:467:33 [INFO] [stdout] | [INFO] [stdout] 467 | ... let mut num = lit_tok.content.parse::().unwrap(); [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/equation_simplifier.rs:641:33 [INFO] [stdout] | [INFO] [stdout] 641 | ... let mut num = lit_tok.content.parse::().unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potential_next_op` [INFO] [stdout] --> src/equation_simplifier.rs:794:21 [INFO] [stdout] | [INFO] [stdout] 794 | let potential_next_op = token_stream.look_ahead(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_potential_next_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/equation_solver.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diagnostics_builder` [INFO] [stdout] --> src/lexer.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut diagnostics_builder = DiagnosticBuilder::new(input.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_diagnostics_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut diagnostics_builder = DiagnosticBuilder::new(input.clone()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idx` is assigned to, but never used [INFO] [stdout] --> src/parser.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | Some(mut idx) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/parser.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | idx += 1; [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: variable does not need to be mutable [INFO] [stdout] --> src/equation_simplifier.rs:467:33 [INFO] [stdout] | [INFO] [stdout] 467 | ... let mut num = lit_tok.content.parse::().unwrap(); [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/parser.rs:854:13 [INFO] [stdout] | [INFO] [stdout] 854 | let mut walker = FunctionWalker { [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/equation_simplifier.rs:641:33 [INFO] [stdout] | [INFO] [stdout] 641 | ... let mut num = lit_tok.content.parse::().unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potential_next_op` [INFO] [stdout] --> src/equation_simplifier.rs:794:21 [INFO] [stdout] | [INFO] [stdout] 794 | let potential_next_op = token_stream.look_ahead(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_potential_next_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:986:13 [INFO] [stdout] | [INFO] [stdout] 986 | let mut walker = FunctionWalker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/equation_solver.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diagnostics_builder` [INFO] [stdout] --> src/lexer.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut diagnostics_builder = DiagnosticBuilder::new(input.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_diagnostics_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut diagnostics_builder = DiagnosticBuilder::new(input.clone()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idx` is assigned to, but never used [INFO] [stdout] --> src/parser.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | Some(mut idx) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/parser.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | idx += 1; [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: field `diagnostics` is never read [INFO] [stdout] --> src/_lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 11 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `color` and `printing_order` are never read [INFO] [stdout] --> src/_lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct DiagnosticsConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 28 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | printing_order: DiagnosticsPrintingOrder, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticsConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Before` is never constructed [INFO] [stdout] --> src/_lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum DiagnosticsPrintingOrder { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] 34 | Before, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticsPrintingOrder` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Simplify` and `Solve` are never constructed [INFO] [stdout] --> src/_lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 46 | Eval, [INFO] [stdout] 47 | Simplify, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | Solve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span` and `node` are never read [INFO] [stdout] --> src/ast.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AstEntry { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | pub(crate) span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub(crate) node: AstNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AstEntry` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner_span` is never read [INFO] [stdout] --> src/equation_simplifier.rs:945:5 [INFO] [stdout] | [INFO] [stdout] 942 | pub(crate) struct Region { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 945 | inner_span: Span, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/equation_simplifier.rs:959:19 [INFO] [stdout] | [INFO] [stdout] 948 | impl Region { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 959 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 967 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 971 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 979 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 990 | pub(crate) fn partition_by_comma(&mut self, tokens: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1040 | pub(crate) fn erase_and_provide_args(mut self, tokens: &mut Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1070 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_lin_1_arg` is never used [INFO] [stdout] --> src/equation_solver.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `error`, `warn_spanned`, `warn`, `note`, `suggest_spanned`, and `build_multi_span_string` are never used [INFO] [stdout] --> src/error.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl DiagnosticBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn warn_spanned(&mut self, warning: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn build_multi_span_string(len: usize, spans: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Warn`, `Suggestion`, and `Note` are never constructed [INFO] [stdout] --> src/error.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) enum DiagnosticItem { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 92 | Error(String, Span), [INFO] [stdout] 93 | Warn(String, Span), [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | Note(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONE` is never used [INFO] [stdout] --> src/parser.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const NONE: usize = usize::MAX; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `action` is never read [INFO] [stdout] --> src/parser.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | action: Action, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokens_to_string` is never used [INFO] [stdout] --> src/parser.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | fn tokens_to_string(tokens: &Box<[Token]>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lookup_const` and `exists_var` are never used [INFO] [stdout] --> src/parser.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 491 | impl ParseContext { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 551 | pub fn lookup_const(&self, name: &String, parse_ctx: &ParseContext) -> PResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn exists_var(&self, name: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DefineRecFunc` is never constructed [INFO] [stdout] --> src/parser.rs:699:5 [INFO] [stdout] | [INFO] [stdout] 696 | pub enum Action { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 699 | DefineRecFunc(String, Box<[String]>, (usize, usize)), // function name, function arguments, (recursive min idx, recursive min val) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `kind` is never used [INFO] [stdout] --> src/parser.rs:704:12 [INFO] [stdout] | [INFO] [stdout] 703 | impl Action { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 704 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DefineVar`, `DefineFunc`, `DefineRecFunc`, and `Eval` are never constructed [INFO] [stdout] --> src/parser.rs:716:5 [INFO] [stdout] | [INFO] [stdout] 715 | pub enum ActionKind { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 716 | DefineVar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 717 | DefineFunc, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 718 | DefineRecFunc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 719 | Eval, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parse_ctx` is never read [INFO] [stdout] --> src/parser.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 722 | struct FunctionWalker<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 723 | parse_ctx: &'a ParseContext, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `diagnostics`, `unwrap`, and `to_wrapped` are never used [INFO] [stdout] --> src/parser.rs:1044:12 [INFO] [stdout] | [INFO] [stdout] 1033 | impl ParseResult { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1044 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1052 | pub(crate) fn unwrap(self) -> (T, Option) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1058 | fn to_wrapped(self) -> Result, ParseResult> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Region` is never constructed [INFO] [stdout] --> src/shared.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Region(Span, Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `No` is never constructed [INFO] [stdout] --> src/shared.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub enum TrailingSpace { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 119 | No = 0, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrailingSpace` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/shared.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl TokenKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 149 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `associativity` is never used [INFO] [stdout] --> src/shared.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 256 | impl BinOpKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn associativity(&self) -> Associativity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:349:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub enum ArgsKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 349 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 350 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 351 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Plus` is never constructed [INFO] [stdout] --> src/shared.rs:378:5 [INFO] [stdout] | [INFO] [stdout] 376 | pub enum SignKind { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 377 | Default, // FIXME: replace this with the #[default] attribute on the Plus variant! [INFO] [stdout] 378 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_raw` is never used [INFO] [stdout] --> src/shared.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 382 | impl SignKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 383 | pub fn to_raw(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_to_num_and_sign` is never used [INFO] [stdout] --> src/shared.rs:393:15 [INFO] [stdout] | [INFO] [stdout] 393 | pub(crate) fn num_to_num_and_sign(num: Number) -> (Number, SignKind) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 402 | pub enum Associativity { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 403 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 404 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Associativity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/shared.rs:428:12 [INFO] [stdout] | [INFO] [stdout] 413 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 428 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `fixed_token`, `shrink_hi`, `shrink_lo`, and `expand_hi` are never used [INFO] [stdout] --> src/span.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Span { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn fixed_token(position: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn shrink_hi(&mut self) -> Result<(), ShrinkHiError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn shrink_lo(&mut self) -> Result<(), ShrinkLoError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn expand_hi(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/token_stream.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn eat(&mut self, token_kind: TokenKind) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn can_advance(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn can_go_back(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn look_ahead bool>(&self, dist: usize, func: F) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn look_back T>(&self, dist: usize, func: F) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cursor(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn push_checkpoint(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn pop_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn clear_checkpoints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn go_back_to_last_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn go_back_to_last_checkpoint_and_insert_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MathInterpreter` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `math_interpreter` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:854:13 [INFO] [stdout] | [INFO] [stdout] 854 | let mut walker = FunctionWalker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:986:13 [INFO] [stdout] | [INFO] [stdout] 986 | let mut walker = FunctionWalker { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `diagnostics` is never read [INFO] [stdout] --> src/_lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 11 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `color` and `printing_order` are never read [INFO] [stdout] --> src/_lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct DiagnosticsConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 28 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | printing_order: DiagnosticsPrintingOrder, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticsConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Before` is never constructed [INFO] [stdout] --> src/_lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum DiagnosticsPrintingOrder { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] 34 | Before, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticsPrintingOrder` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Solve` is never constructed [INFO] [stdout] --> src/_lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | Solve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span` and `node` are never read [INFO] [stdout] --> src/ast.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AstEntry { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | pub(crate) span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub(crate) node: AstNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AstEntry` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner_span` is never read [INFO] [stdout] --> src/equation_simplifier.rs:945:5 [INFO] [stdout] | [INFO] [stdout] 942 | pub(crate) struct Region { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 945 | inner_span: Span, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/equation_simplifier.rs:959:19 [INFO] [stdout] | [INFO] [stdout] 948 | impl Region { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 959 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 967 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 971 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 979 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 990 | pub(crate) fn partition_by_comma(&mut self, tokens: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1040 | pub(crate) fn erase_and_provide_args(mut self, tokens: &mut Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1070 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_lin_1_arg` is never used [INFO] [stdout] --> src/equation_solver.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `error`, `warn_spanned`, `warn`, `note`, `suggest_spanned`, and `build_multi_span_string` are never used [INFO] [stdout] --> src/error.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl DiagnosticBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn warn_spanned(&mut self, warning: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn build_multi_span_string(len: usize, spans: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Warn`, `Suggestion`, and `Note` are never constructed [INFO] [stdout] --> src/error.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 91 | pub(crate) enum DiagnosticItem { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 92 | Error(String, Span), [INFO] [stdout] 93 | Warn(String, Span), [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | Note(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONE` is never used [INFO] [stdout] --> src/parser.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const NONE: usize = usize::MAX; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `action` is never read [INFO] [stdout] --> src/parser.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | action: Action, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokens_to_string` is never used [INFO] [stdout] --> src/parser.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | fn tokens_to_string(tokens: &Box<[Token]>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lookup_const` and `exists_var` are never used [INFO] [stdout] --> src/parser.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 491 | impl ParseContext { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 551 | pub fn lookup_const(&self, name: &String, parse_ctx: &ParseContext) -> PResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 563 | pub fn exists_var(&self, name: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DefineRecFunc` is never constructed [INFO] [stdout] --> src/parser.rs:699:5 [INFO] [stdout] | [INFO] [stdout] 696 | pub enum Action { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 699 | DefineRecFunc(String, Box<[String]>, (usize, usize)), // function name, function arguments, (recursive min idx, recursive min val) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `kind` is never used [INFO] [stdout] --> src/parser.rs:704:12 [INFO] [stdout] | [INFO] [stdout] 703 | impl Action { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 704 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DefineVar`, `DefineFunc`, `DefineRecFunc`, and `Eval` are never constructed [INFO] [stdout] --> src/parser.rs:716:5 [INFO] [stdout] | [INFO] [stdout] 715 | pub enum ActionKind { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 716 | DefineVar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 717 | DefineFunc, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 718 | DefineRecFunc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 719 | Eval, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parse_ctx` is never read [INFO] [stdout] --> src/parser.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 722 | struct FunctionWalker<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 723 | parse_ctx: &'a ParseContext, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `diagnostics` and `to_wrapped` are never used [INFO] [stdout] --> src/parser.rs:1044:12 [INFO] [stdout] | [INFO] [stdout] 1033 | impl ParseResult { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1044 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1058 | fn to_wrapped(self) -> Result, ParseResult> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Region` is never constructed [INFO] [stdout] --> src/shared.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Region(Span, Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `No` is never constructed [INFO] [stdout] --> src/shared.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub enum TrailingSpace { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 119 | No = 0, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrailingSpace` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/shared.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 148 | impl TokenKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 149 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `associativity` is never used [INFO] [stdout] --> src/shared.rs:281:12 [INFO] [stdout] | [INFO] [stdout] 256 | impl BinOpKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn associativity(&self) -> Associativity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:349:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub enum ArgsKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 349 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 350 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 351 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Plus` is never constructed [INFO] [stdout] --> src/shared.rs:378:5 [INFO] [stdout] | [INFO] [stdout] 376 | pub enum SignKind { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 377 | Default, // FIXME: replace this with the #[default] attribute on the Plus variant! [INFO] [stdout] 378 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_raw` is never used [INFO] [stdout] --> src/shared.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 382 | impl SignKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 383 | pub fn to_raw(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_to_num_and_sign` is never used [INFO] [stdout] --> src/shared.rs:393:15 [INFO] [stdout] | [INFO] [stdout] 393 | pub(crate) fn num_to_num_and_sign(num: Number) -> (Number, SignKind) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 402 | pub enum Associativity { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 403 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 404 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Associativity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/shared.rs:428:12 [INFO] [stdout] | [INFO] [stdout] 413 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 428 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `fixed_token`, `shrink_hi`, `shrink_lo`, and `expand_hi` are never used [INFO] [stdout] --> src/span.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Span { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn fixed_token(position: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn shrink_hi(&mut self) -> Result<(), ShrinkHiError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn shrink_lo(&mut self) -> Result<(), ShrinkLoError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn expand_hi(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/token_stream.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn eat(&mut self, token_kind: TokenKind) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn can_advance(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn can_go_back(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn look_ahead bool>(&self, dist: usize, func: F) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn look_back T>(&self, dist: usize, func: F) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cursor(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn push_checkpoint(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn pop_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn clear_checkpoints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn go_back_to_last_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn go_back_to_last_checkpoint_and_insert_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MathInterpreter` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `math_interpreter` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 42.75s [INFO] running `Command { std: "docker" "inspect" "bcf4a23a69ae75f709451ace7f93aa5126dc6afc45c0b8208d811ea76fadcbab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcf4a23a69ae75f709451ace7f93aa5126dc6afc45c0b8208d811ea76fadcbab", kill_on_drop: false }` [INFO] [stdout] bcf4a23a69ae75f709451ace7f93aa5126dc6afc45c0b8208d811ea76fadcbab