[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] fc97b3913636cea0eee77a02f3a07f20fdda5e8b [INFO] checking terrarier2111/MathInterpreter against try#6619027b13a87a3597115f2c8231f107bf3a7a5f for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/terrarier2111/MathInterpreter on toolchain 6619027b13a87a3597115f2c8231f107bf3a7a5f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "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-5-tc2/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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b17d07d52c4fe8525b30a58f5c7e6ce3a9ef9bbdd1d8553a658fb31d445edc36 [INFO] running `Command { std: "docker" "start" "-a" "b17d07d52c4fe8525b30a58f5c7e6ce3a9ef9bbdd1d8553a658fb31d445edc36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b17d07d52c4fe8525b30a58f5c7e6ce3a9ef9bbdd1d8553a658fb31d445edc36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b17d07d52c4fe8525b30a58f5c7e6ce3a9ef9bbdd1d8553a658fb31d445edc36", kill_on_drop: false }` [INFO] [stdout] b17d07d52c4fe8525b30a58f5c7e6ce3a9ef9bbdd1d8553a658fb31d445edc36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd17fc60b4020a300426d04e5d80e3b162ea76ff2f789187b7fbb034637adeb7 [INFO] running `Command { std: "docker" "start" "-a" "dd17fc60b4020a300426d04e5d80e3b162ea76ff2f789187b7fbb034637adeb7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling const_fn v0.4.10 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking arpfloat v0.1.10 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking strip-ansi-escapes v0.2.0 [INFO] [stderr] Checking clitty v0.1.0 (https://github.com/terrarier2111/CLItty#7cb14990) [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling likely_stable v0.1.2 [INFO] [stderr] Checking swap-arc v0.1.1 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Checking statrs v0.17.1 [INFO] [stderr] Checking MathInterpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Neg` [INFO] [stdout] --> src/equation_evaluator.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::{Add, Neg, Sub}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:90:44 [INFO] [stdout] | [INFO] [stdout] 90 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:99:49 [INFO] [stdout] | [INFO] [stdout] 99 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:104:53 [INFO] [stdout] | [INFO] [stdout] 104 | fn walk_maybe_func(&self, node: &MaybeFuncNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:129:48 [INFO] [stdout] | [INFO] [stdout] 129 | fn walk_binop(&self, node: &mut BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:138:53 [INFO] [stdout] | [INFO] [stdout] 138 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:172:43 [INFO] [stdout] | [INFO] [stdout] 172 | fn walk_binop(&self, node: BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:181:48 [INFO] [stdout] | [INFO] [stdout] 181 | fn walk_unary_op(&self, node: UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:186:52 [INFO] [stdout] | [INFO] [stdout] 186 | fn walk_maybe_func(&self, node: MaybeFuncNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:218:44 [INFO] [stdout] | [INFO] [stdout] 218 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> PResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:243:49 [INFO] [stdout] | [INFO] [stdout] 243 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> PResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:307:48 [INFO] [stdout] | [INFO] [stdout] 307 | fn walk_binop(&self, node: &mut BinOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:312:24 [INFO] [stdout] | [INFO] [stdout] 312 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:312:49 [INFO] [stdout] | [INFO] [stdout] 312 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:316:29 [INFO] [stdout] | [INFO] [stdout] 316 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:316:53 [INFO] [stdout] | [INFO] [stdout] 316 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:320:31 [INFO] [stdout] | [INFO] [stdout] 320 | fn walk_maybe_func(&self, node: &mut MaybeFuncNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:320:57 [INFO] [stdout] | [INFO] [stdout] 320 | fn walk_maybe_func(&self, node: &mut MaybeFuncNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | node: &mut FuncCallOrFuncDefNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potential_next_op` [INFO] [stdout] --> src/equation_simplifier.rs:785:21 [INFO] [stdout] | [INFO] [stdout] 785 | 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] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/equation_simplifier.rs:844:5 [INFO] [stdout] | [INFO] [stdout] 844 | input: &String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/equation_simplifier.rs:872:5 [INFO] [stdout] | [INFO] [stdout] 872 | input: &String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [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:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let diagnostics_builder = DiagnosticBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_diagnostics_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parse_ctx` [INFO] [stdout] --> src/parser.rs:646:9 [INFO] [stdout] | [INFO] [stdout] 646 | parse_ctx: &ParseContext, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parse_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:860:49 [INFO] [stdout] | [INFO] [stdout] 860 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:879:48 [INFO] [stdout] | [INFO] [stdout] 879 | fn walk_lit(&self, lit_tok: &LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:890:44 [INFO] [stdout] | [INFO] [stdout] 890 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:895:49 [INFO] [stdout] | [INFO] [stdout] 895 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:952:48 [INFO] [stdout] | [INFO] [stdout] 952 | fn walk_lit(&self, lit_tok: &LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Neg` [INFO] [stdout] --> src/equation_evaluator.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::{Add, Neg, Sub}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:90:44 [INFO] [stdout] | [INFO] [stdout] 90 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:99:49 [INFO] [stdout] | [INFO] [stdout] 99 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:104:53 [INFO] [stdout] | [INFO] [stdout] 104 | fn walk_maybe_func(&self, node: &MaybeFuncNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:129:48 [INFO] [stdout] | [INFO] [stdout] 129 | fn walk_binop(&self, node: &mut BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:138:53 [INFO] [stdout] | [INFO] [stdout] 138 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:172:43 [INFO] [stdout] | [INFO] [stdout] 172 | fn walk_binop(&self, node: BinOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:181:48 [INFO] [stdout] | [INFO] [stdout] 181 | fn walk_unary_op(&self, node: UnaryOpNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:186:52 [INFO] [stdout] | [INFO] [stdout] 186 | fn walk_maybe_func(&self, node: MaybeFuncNode, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/ast_walker.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:218:44 [INFO] [stdout] | [INFO] [stdout] 218 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> PResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:243:49 [INFO] [stdout] | [INFO] [stdout] 243 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> PResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | window: &Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:307:48 [INFO] [stdout] | [INFO] [stdout] 307 | fn walk_binop(&self, node: &mut BinOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:312:24 [INFO] [stdout] | [INFO] [stdout] 312 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:312:49 [INFO] [stdout] | [INFO] [stdout] 312 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:316:29 [INFO] [stdout] | [INFO] [stdout] 316 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:316:53 [INFO] [stdout] | [INFO] [stdout] 316 | fn walk_unary_op(&self, node: &mut UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:320:31 [INFO] [stdout] | [INFO] [stdout] 320 | fn walk_maybe_func(&self, node: &mut MaybeFuncNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:320:57 [INFO] [stdout] | [INFO] [stdout] 320 | fn walk_maybe_func(&self, node: &mut MaybeFuncNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/equation_evaluator.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | node: &mut FuncCallOrFuncDefNode, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/equation_evaluator.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | span: Span, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `diagnostics` and `circle_unit` are never read [INFO] [stdout] --> src/_lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub(crate) ans_mode: ANSMode, [INFO] [stdout] 12 | pub(crate) circle_unit: CircleUnit, [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:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct DiagnosticsConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 32 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | 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:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum DiagnosticsPrintingOrder { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] 38 | 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: function `simplify` is never used [INFO] [stdout] --> src/_lib.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn simplify(input: String, eval_ctx: &EvalContext) -> ParseResult> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/_lib.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn solve(input: String, eval_ctx: &EvalContext) -> ParseResult> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_init` is never used [INFO] [stdout] --> src/conc_once_cell.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ConcurrentOnceCell { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn is_init(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BraceOpPrioritySimplificationPass` is never constructed [INFO] [stdout] --> src/equation_simplifier.rs:773:8 [INFO] [stdout] | [INFO] [stdout] 773 | struct BraceOpPrioritySimplificationPass; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner_span` is never read [INFO] [stdout] --> src/equation_simplifier.rs:930:5 [INFO] [stdout] | [INFO] [stdout] 927 | pub(crate) struct Region { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 930 | 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:944:19 [INFO] [stdout] | [INFO] [stdout] 933 | impl Region { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 944 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 952 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 964 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 975 | pub(crate) fn partition_by_comma(&mut self, tokens: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1025 | pub(crate) fn erase_and_provide_args(mut self, tokens: &mut Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1055 | 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:33:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DiagnosticBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn warn_spanned(&mut self, warning: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | 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:86:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) enum DiagnosticItem { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 85 | Error(String, Span), [INFO] [stdout] 86 | Warn(String, Span), [INFO] [stdout] | ^^^^ [INFO] [stdout] 87 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 88 | 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: function `tokens_to_string` is never used [INFO] [stdout] --> src/parser.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | fn tokens_to_string(tokens: &Box<[Token]>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `unregister_all_sets`, `get_input`, `lookup_const`, and `exists_var` are never used [INFO] [stdout] --> src/parser.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 531 | impl ParseContext { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 605 | pub fn unregister_all_sets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | pub fn get_input(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 643 | pub fn lookup_const( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 657 | pub fn exists_var(&self, name: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:832:10 [INFO] [stdout] | [INFO] [stdout] 832 | Eval(Option), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 832 - Eval(Option), [INFO] [stdout] 832 + Eval(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DefineRecFunc` is never constructed [INFO] [stdout] --> src/parser.rs:831:5 [INFO] [stdout] | [INFO] [stdout] 828 | pub enum Action { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 831 | 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:836:12 [INFO] [stdout] | [INFO] [stdout] 835 | impl Action { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 836 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ActionKind` is never used [INFO] [stdout] --> src/parser.rs:847:10 [INFO] [stdout] | [INFO] [stdout] 847 | pub enum ActionKind { [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:855:5 [INFO] [stdout] | [INFO] [stdout] 854 | struct FunctionWalker<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 855 | parse_ctx: &'a ParseContext, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecFunctionInitValidator` is never constructed [INFO] [stdout] --> src/parser.rs:945:8 [INFO] [stdout] | [INFO] [stdout] 945 | struct RecFunctionInitValidator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `diagnostics`, `unwrap`, and `to_wrapped` are never used [INFO] [stdout] --> src/parser.rs:1278:12 [INFO] [stdout] | [INFO] [stdout] 1267 | impl ParseResult { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1278 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1286 | pub(crate) fn unwrap(self) -> (T, Option) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1292 | 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:24:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | 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: method `to_string` is never used [INFO] [stdout] --> src/shared.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TokenKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 145 | 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:260:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl BinOpKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 260 | 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:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | pub enum ArgsKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 321 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 322 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 323 | 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:350:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub enum SignKind { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 349 | Default, // FIXME: replace this with the #[default] attribute on the Plus variant! [INFO] [stdout] 350 | 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:355:12 [INFO] [stdout] | [INFO] [stdout] 354 | impl SignKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 355 | pub fn to_raw(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:777:5 [INFO] [stdout] | [INFO] [stdout] 776 | pub enum Associativity { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 777 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 778 | 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:802:12 [INFO] [stdout] | [INFO] [stdout] 787 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 802 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 808 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 817 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 821 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 839 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 844 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 848 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref` and `into_ptr` are never used [INFO] [stdout] --> src/sized_box.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl SizedBox { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_ref(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn into_ptr(self) -> NonNull { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `fixed_token`, `shrink_hi`, and `shrink_lo` 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] 36 | pub fn shrink_hi(self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn shrink_lo(self) -> Result { [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] 88 | pub fn cursor(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn push_checkpoint(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn pop_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn clear_checkpoints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn go_back_to_last_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn go_back_to_last_checkpoint_and_insert_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | calc.cli.await_input(&calc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = calc.cli.await_input(&calc); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `potential_next_op` [INFO] [stdout] --> src/equation_simplifier.rs:785:21 [INFO] [stdout] | [INFO] [stdout] 785 | 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] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/conc_once_cell.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | self.try_init(f()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = self.try_init(f()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/equation_evaluator.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | self.walk(&mut node.lhs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 308 | let _ = self.walk(&mut node.lhs); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/equation_simplifier.rs:844:5 [INFO] [stdout] | [INFO] [stdout] 844 | input: &String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/equation_simplifier.rs:872:5 [INFO] [stdout] | [INFO] [stdout] 872 | input: &String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [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:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let diagnostics_builder = DiagnosticBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_diagnostics_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parse_ctx` [INFO] [stdout] --> src/parser.rs:646:9 [INFO] [stdout] | [INFO] [stdout] 646 | parse_ctx: &ParseContext, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parse_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:860:49 [INFO] [stdout] | [INFO] [stdout] 860 | fn walk_lit(&self, node: &mut LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:879:48 [INFO] [stdout] | [INFO] [stdout] 879 | fn walk_lit(&self, lit_tok: &LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:890:44 [INFO] [stdout] | [INFO] [stdout] 890 | fn walk_binop(&self, node: &BinOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:895:49 [INFO] [stdout] | [INFO] [stdout] 895 | fn walk_unary_op(&self, node: &UnaryOpNode, span: Span) -> PResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/parser.rs:952:48 [INFO] [stdout] | [INFO] [stdout] 952 | fn walk_lit(&self, lit_tok: &LiteralToken, span: Span) -> Result<(), DiagnosticBuilder> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | window: &Window, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `diagnostics` and `circle_unit` are never read [INFO] [stdout] --> src/_lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 10 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub(crate) ans_mode: ANSMode, [INFO] [stdout] 12 | pub(crate) circle_unit: CircleUnit, [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:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct DiagnosticsConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 32 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | 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:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum DiagnosticsPrintingOrder { [INFO] [stdout] | ------------------------ variant in this enum [INFO] [stdout] 38 | 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: function `solve` is never used [INFO] [stdout] --> src/_lib.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn solve(input: String, eval_ctx: &EvalContext) -> ParseResult> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_init` is never used [INFO] [stdout] --> src/conc_once_cell.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ConcurrentOnceCell { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn is_init(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BraceOpPrioritySimplificationPass` is never constructed [INFO] [stdout] --> src/equation_simplifier.rs:773:8 [INFO] [stdout] | [INFO] [stdout] 773 | struct BraceOpPrioritySimplificationPass; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner_span` is never read [INFO] [stdout] --> src/equation_simplifier.rs:930:5 [INFO] [stdout] | [INFO] [stdout] 927 | pub(crate) struct Region { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 930 | 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:944:19 [INFO] [stdout] | [INFO] [stdout] 933 | impl Region { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 944 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 952 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 964 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 975 | pub(crate) fn partition_by_comma(&mut self, tokens: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1025 | pub(crate) fn erase_and_provide_args(mut self, tokens: &mut Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1055 | 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:33:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DiagnosticBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn warn_spanned(&mut self, warning: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | 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:86:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) enum DiagnosticItem { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 85 | Error(String, Span), [INFO] [stdout] 86 | Warn(String, Span), [INFO] [stdout] | ^^^^ [INFO] [stdout] 87 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 88 | 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: function `tokens_to_string` is never used [INFO] [stdout] --> src/parser.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | fn tokens_to_string(tokens: &Box<[Token]>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `unregister_all_sets`, `lookup_const`, and `exists_var` are never used [INFO] [stdout] --> src/parser.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 531 | impl ParseContext { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 605 | pub fn unregister_all_sets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 643 | pub fn lookup_const( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 657 | pub fn exists_var(&self, name: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:832:10 [INFO] [stdout] | [INFO] [stdout] 832 | Eval(Option), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 832 - Eval(Option), [INFO] [stdout] 832 + Eval(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DefineRecFunc` is never constructed [INFO] [stdout] --> src/parser.rs:831:5 [INFO] [stdout] | [INFO] [stdout] 828 | pub enum Action { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 831 | 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:836:12 [INFO] [stdout] | [INFO] [stdout] 835 | impl Action { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 836 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ActionKind` is never used [INFO] [stdout] --> src/parser.rs:847:10 [INFO] [stdout] | [INFO] [stdout] 847 | pub enum ActionKind { [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:855:5 [INFO] [stdout] | [INFO] [stdout] 854 | struct FunctionWalker<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 855 | parse_ctx: &'a ParseContext, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecFunctionInitValidator` is never constructed [INFO] [stdout] --> src/parser.rs:945:8 [INFO] [stdout] | [INFO] [stdout] 945 | struct RecFunctionInitValidator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `diagnostics` and `to_wrapped` are never used [INFO] [stdout] --> src/parser.rs:1278:12 [INFO] [stdout] | [INFO] [stdout] 1267 | impl ParseResult { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1278 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1292 | 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:24:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | 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: method `to_string` is never used [INFO] [stdout] --> src/shared.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TokenKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 145 | 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:260:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl BinOpKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 260 | 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:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | pub enum ArgsKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 321 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 322 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 323 | 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:350:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub enum SignKind { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 349 | Default, // FIXME: replace this with the #[default] attribute on the Plus variant! [INFO] [stdout] 350 | 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:355:12 [INFO] [stdout] | [INFO] [stdout] 354 | impl SignKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 355 | pub fn to_raw(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/shared.rs:777:5 [INFO] [stdout] | [INFO] [stdout] 776 | pub enum Associativity { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 777 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 778 | 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:802:12 [INFO] [stdout] | [INFO] [stdout] 787 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 802 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 808 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 817 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 821 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 839 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 844 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 848 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref` and `into_ptr` are never used [INFO] [stdout] --> src/sized_box.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl SizedBox { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_ref(&self) -> &T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn into_ptr(self) -> NonNull { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `fixed_token`, `shrink_hi`, and `shrink_lo` 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] 36 | pub fn shrink_hi(self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn shrink_lo(self) -> Result { [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] 88 | pub fn cursor(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn push_checkpoint(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn pop_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn clear_checkpoints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn go_back_to_last_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn go_back_to_last_checkpoint_and_insert_checkpoint(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | calc.cli.await_input(&calc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = calc.cli.await_input(&calc); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/conc_once_cell.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | self.try_init(f()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = self.try_init(f()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/equation_evaluator.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | self.walk(&mut node.lhs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 308 | let _ = self.walk(&mut node.lhs); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.45s [INFO] running `Command { std: "docker" "inspect" "dd17fc60b4020a300426d04e5d80e3b162ea76ff2f789187b7fbb034637adeb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd17fc60b4020a300426d04e5d80e3b162ea76ff2f789187b7fbb034637adeb7", kill_on_drop: false }` [INFO] [stdout] dd17fc60b4020a300426d04e5d80e3b162ea76ff2f789187b7fbb034637adeb7