[INFO] fetching crate jist 0.1.9... [INFO] checking jist-0.1.9 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate jist 0.1.9 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate jist 0.1.9 [INFO] finished tweaking crates.io crate jist 0.1.9 [INFO] tweaked toml for crates.io crate jist 0.1.9 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jist 0.1.9 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jist 0.1.9 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4eeb614098d8bb0a9e0727f965993f5ee657296f1e705fa6b97982c4b5d73795 [INFO] running `Command { std: "docker" "start" "-a" "4eeb614098d8bb0a9e0727f965993f5ee657296f1e705fa6b97982c4b5d73795", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eeb614098d8bb0a9e0727f965993f5ee657296f1e705fa6b97982c4b5d73795", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eeb614098d8bb0a9e0727f965993f5ee657296f1e705fa6b97982c4b5d73795", kill_on_drop: false }` [INFO] [stdout] 4eeb614098d8bb0a9e0727f965993f5ee657296f1e705fa6b97982c4b5d73795 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bbaaeb5b1c82af53f6e53712135deaae6525312392f3ff6d20953f8a749083e [INFO] running `Command { std: "docker" "start" "-a" "9bbaaeb5b1c82af53f6e53712135deaae6525312392f3ff6d20953f8a749083e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking predicates-core v1.0.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking predicates-tree v1.0.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking predicates v3.1.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking float-cmp v0.8.0 [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 wait-timeout v0.2.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.26.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [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] Checking regex v1.11.1 [INFO] [stderr] Checking bstr v1.11.0 [INFO] [stderr] Checking jist v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::base_variable::base_types::StringWrapper` [INFO] [stdout] --> src/compilers/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::base_variable::base_types::StringWrapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/compilers/function.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::base_variable::variable::{self, Variable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compilers/function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FUNCTION_STACK` [INFO] [stdout] --> src/compilers/function.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::function::{FUNCTION_STACK, USER_FUNCTION_STACK}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `USER_FUNCTIONS` [INFO] [stdout] --> src/compilers/function.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::function_map::{FUNCTIONS, USER_FUNCTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 282 | exit(1); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 312 | return none; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compiler.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let result = compile_dot_statement(expression); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | ... index += 2; [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: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/function.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:40 [INFO] [stdout] | [INFO] [stdout] 265 | arguments: ref args_a, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_b` [INFO] [stdout] --> src/token_type.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | arguments: ref args_b, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:402:35 [INFO] [stdout] | [INFO] [stdout] 402 | TokenTypes::Try { block } => "Try".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:403:37 [INFO] [stdout] | [INFO] [stdout] 403 | TokenTypes::Catch { block } => "Catch".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | TokenTypes::Finally { block } => "Finally".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn read_numbers(expression: String, char: char, index: usize) -> ParseInfo { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let keyword = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `j` is assigned to, but never used [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_j` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | j = return_found.1.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | j += consumed; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:264:37 [INFO] [stdout] | [INFO] [stdout] 264 | ... catch_handled = true; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:269:37 [INFO] [stdout] | [INFO] [stdout] 269 | ... catch_handled = false; // Indicate failure [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compilers/conditional.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | index: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compilers/function.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut parameters: Vec<(String, String, String)>; [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/compilers/function.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut function_return_type: String; [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/compilers/function.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut function_body: Vec; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compilers/function.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let result: BaseTypes; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let mut evaluation_result: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Result` [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `variable` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let variable: (String, BaseTypes); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_variable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collection` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let collection: (String, Vec); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_collection` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/compilers/variable.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ASTNode::ObjectCall(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compilers/variable.rs:174:37 [INFO] [stdout] | [INFO] [stdout] 174 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/compilers/variable.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | ... data, [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/compilers/variable.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ... value_type, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collection` is never read [INFO] [stdout] --> src/compilers/variable.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `variable` is never read [INFO] [stdout] --> src/compilers/variable.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_value` is never read [INFO] [stdout] --> src/compilers/variable.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | let mut first: Option = Option::None; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut parenthesis: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parenthesis` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:544:21 [INFO] [stdout] | [INFO] [stdout] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parenthesis` is never read [INFO] [stdout] --> src/compilers/variable.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | parenthesis = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `len` is never used [INFO] [stdout] --> src/function_map.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FunctionMap { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | fn len(s: String) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eq` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_function_in_stack` is never used [INFO] [stdout] --> src/compilers/function.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:319:46 [INFO] [stdout] | [INFO] [stdout] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:331:46 [INFO] [stdout] | [INFO] [stdout] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:350:46 [INFO] [stdout] | [INFO] [stdout] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:362:46 [INFO] [stdout] | [INFO] [stdout] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetType` should have a snake case name [INFO] [stdout] --> src/base_variable.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn GetType(&self) -> String; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Result` should have a snake case name [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:247:33 [INFO] [stdout] | [INFO] [stdout] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::base_variable::base_types::StringWrapper` [INFO] [stdout] --> src/compilers/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::base_variable::base_types::StringWrapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/compilers/function.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::base_variable::variable::{self, Variable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compilers/function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FUNCTION_STACK` [INFO] [stdout] --> src/compilers/function.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::function::{FUNCTION_STACK, USER_FUNCTION_STACK}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `USER_FUNCTIONS` [INFO] [stdout] --> src/compilers/function.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::function_map::{FUNCTIONS, USER_FUNCTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::base_variable::base_types::StringWrapper` [INFO] [stdout] --> src/compilers/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::base_variable::base_types::StringWrapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/compilers/function.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::base_variable::variable::{self, Variable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compilers/function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FUNCTION_STACK` [INFO] [stdout] --> src/compilers/function.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::function::{FUNCTION_STACK, USER_FUNCTION_STACK}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `USER_FUNCTIONS` [INFO] [stdout] --> src/compilers/function.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::function_map::{FUNCTIONS, USER_FUNCTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::base_variable::base_types::StringWrapper` [INFO] [stdout] --> src/compilers/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::base_variable::base_types::StringWrapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/compilers/function.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::base_variable::variable::{self, Variable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/compilers/function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FUNCTION_STACK` [INFO] [stdout] --> src/compilers/function.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::function::{FUNCTION_STACK, USER_FUNCTION_STACK}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `USER_FUNCTIONS` [INFO] [stdout] --> src/compilers/function.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::function_map::{FUNCTIONS, USER_FUNCTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 282 | exit(1); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 312 | return none; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compiler.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let result = compile_dot_statement(expression); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | ... index += 2; [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: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/function.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:40 [INFO] [stdout] | [INFO] [stdout] 265 | arguments: ref args_a, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_b` [INFO] [stdout] --> src/token_type.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | arguments: ref args_b, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:402:35 [INFO] [stdout] | [INFO] [stdout] 402 | TokenTypes::Try { block } => "Try".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:403:37 [INFO] [stdout] | [INFO] [stdout] 403 | TokenTypes::Catch { block } => "Catch".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | TokenTypes::Finally { block } => "Finally".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn read_numbers(expression: String, char: char, index: usize) -> ParseInfo { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let keyword = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `j` is assigned to, but never used [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_j` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | j = return_found.1.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | j += consumed; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 282 | exit(1); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 312 | return none; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:264:37 [INFO] [stdout] | [INFO] [stdout] 264 | ... catch_handled = true; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:269:37 [INFO] [stdout] | [INFO] [stdout] 269 | ... catch_handled = false; // Indicate failure [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compilers/conditional.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | index: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compilers/function.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut parameters: Vec<(String, String, String)>; [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/compilers/function.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut function_return_type: String; [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/compilers/function.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut function_body: Vec; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compilers/function.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let result: BaseTypes; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let mut evaluation_result: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Result` [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `variable` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let variable: (String, BaseTypes); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_variable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collection` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let collection: (String, Vec); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_collection` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/compilers/variable.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ASTNode::ObjectCall(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compilers/variable.rs:174:37 [INFO] [stdout] | [INFO] [stdout] 174 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/compilers/variable.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | ... data, [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/compilers/variable.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ... value_type, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collection` is never read [INFO] [stdout] --> src/compilers/variable.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `variable` is never read [INFO] [stdout] --> src/compilers/variable.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_value` is never read [INFO] [stdout] --> src/compilers/variable.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | let mut first: Option = Option::None; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut parenthesis: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parenthesis` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:544:21 [INFO] [stdout] | [INFO] [stdout] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parenthesis` is never read [INFO] [stdout] --> src/compilers/variable.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | parenthesis = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `len` is never used [INFO] [stdout] --> src/function_map.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FunctionMap { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | fn len(s: String) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eq` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_function_in_stack` is never used [INFO] [stdout] --> src/compilers/function.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:319:46 [INFO] [stdout] | [INFO] [stdout] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:331:46 [INFO] [stdout] | [INFO] [stdout] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:350:46 [INFO] [stdout] | [INFO] [stdout] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:362:46 [INFO] [stdout] | [INFO] [stdout] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetType` should have a snake case name [INFO] [stdout] --> src/base_variable.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn GetType(&self) -> String; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Result` should have a snake case name [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:247:33 [INFO] [stdout] | [INFO] [stdout] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compiler.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let result = compile_dot_statement(expression); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | ... index += 2; [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: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/function.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:40 [INFO] [stdout] | [INFO] [stdout] 265 | arguments: ref args_a, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_b` [INFO] [stdout] --> src/token_type.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | arguments: ref args_b, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:402:35 [INFO] [stdout] | [INFO] [stdout] 402 | TokenTypes::Try { block } => "Try".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:403:37 [INFO] [stdout] | [INFO] [stdout] 403 | TokenTypes::Catch { block } => "Catch".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | TokenTypes::Finally { block } => "Finally".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:264:37 [INFO] [stdout] | [INFO] [stdout] 264 | ... catch_handled = true; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:269:37 [INFO] [stdout] | [INFO] [stdout] 269 | ... catch_handled = false; // Indicate failure [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compilers/conditional.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | index: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compilers/function.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut parameters: Vec<(String, String, String)>; [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/compilers/function.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut function_return_type: String; [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/compilers/function.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut function_body: Vec; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compilers/function.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let result: BaseTypes; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 282 | exit(1); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 312 | return none; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let mut evaluation_result: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Result` [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `variable` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let variable: (String, BaseTypes); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_variable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collection` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let collection: (String, Vec); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_collection` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/compilers/variable.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ASTNode::ObjectCall(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compilers/variable.rs:174:37 [INFO] [stdout] | [INFO] [stdout] 174 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/compilers/variable.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | ... data, [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/compilers/variable.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ... value_type, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collection` is never read [INFO] [stdout] --> src/compilers/variable.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `variable` is never read [INFO] [stdout] --> src/compilers/variable.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_value` is never read [INFO] [stdout] --> src/compilers/variable.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | let mut first: Option = Option::None; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut parenthesis: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parenthesis` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:544:21 [INFO] [stdout] | [INFO] [stdout] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parenthesis` is never read [INFO] [stdout] --> src/compilers/variable.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | parenthesis = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn read_numbers(expression: String, char: char, index: usize) -> ParseInfo { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let keyword = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `j` is assigned to, but never used [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_j` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | j = return_found.1.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | j += consumed; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let mut result = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | result = route_to_parser(&mut tokenized_expression, None)?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_tokenize` is never read [INFO] [stdout] --> src/main.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | to_tokenize = tokens.clone(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hasroot` is assigned to, but never used [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let mut hasroot = true; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_hasroot` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:339:30 [INFO] [stdout] | [INFO] [stdout] 339 | ASTNode::Try(t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:351:32 [INFO] [stdout] | [INFO] [stdout] 351 | ASTNode::Catch(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:376:34 [INFO] [stdout] | [INFO] [stdout] 376 | ASTNode::Finally(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:389:35 [INFO] [stdout] | [INFO] [stdout] 389 | ASTNode::Function(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:440:43 [INFO] [stdout] | [INFO] [stdout] 440 | ASTNode::Function(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hasroot` is never read [INFO] [stdout] --> src/main.rs:463:21 [INFO] [stdout] | [INFO] [stdout] 463 | hasroot = true; // Mark that we have a valid root [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/ast.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_child` are never used [INFO] [stdout] --> src/ast.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl AST { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(root: ASTNode) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_child(&mut self, node: ASTNode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Print` is never constructed [INFO] [stdout] --> src/collection.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum ArrayFunctions { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/collection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl ArrayFunctions { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn print(&mut self, array: &Array) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Print` is never constructed [INFO] [stdout] --> src/collection.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub enum DictionaryFunctions { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 158 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/collection.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 211 | impl DictionaryFunctions { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn print(&mut self, dictionary: &Dictionary) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `len` is never used [INFO] [stdout] --> src/function_map.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FunctionMap { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | fn len(s: String) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElseNode` is never constructed [INFO] [stdout] --> src/node.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct ElseNode; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:295:16 [INFO] [stdout] | [INFO] [stdout] 294 | impl ElseNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 295 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FatArrowNode` is never constructed [INFO] [stdout] --> src/node.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | pub struct FatArrowNode; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArgumentCallNode` is never constructed [INFO] [stdout] --> src/node.rs:465:16 [INFO] [stdout] | [INFO] [stdout] 465 | pub struct ArgumentCallNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionCallArgumentsNode` is never constructed [INFO] [stdout] --> src/node.rs:470:16 [INFO] [stdout] | [INFO] [stdout] 470 | pub struct FunctionCallArgumentsNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `display_info` are never used [INFO] [stdout] --> src/node.rs:475:16 [INFO] [stdout] | [INFO] [stdout] 474 | impl FunctionCallArgumentsNode { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 475 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn display_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SemiColonNode` is never constructed [INFO] [stdout] --> src/node.rs:518:16 [INFO] [stdout] | [INFO] [stdout] 518 | pub struct SemiColonNode; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `display_info` are never used [INFO] [stdout] --> src/node.rs:521:16 [INFO] [stdout] | [INFO] [stdout] 520 | impl SemiColonNode { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 521 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 524 | pub fn display_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_function_in_stack` is never used [INFO] [stdout] --> src/compilers/function.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 35 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eq` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 65 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 73 | impl Token { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new(value: T, token_type: TokenTypes) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:602:30 [INFO] [stdout] | [INFO] [stdout] 602 | for variable in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:319:46 [INFO] [stdout] | [INFO] [stdout] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:331:46 [INFO] [stdout] | [INFO] [stdout] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:350:46 [INFO] [stdout] | [INFO] [stdout] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:362:46 [INFO] [stdout] | [INFO] [stdout] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetType` should have a snake case name [INFO] [stdout] --> src/base_variable.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn GetType(&self) -> String; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Result` should have a snake case name [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:247:33 [INFO] [stdout] | [INFO] [stdout] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compiler.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let result = compile_dot_statement(expression); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | ... index += 2; [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: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/function.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:40 [INFO] [stdout] | [INFO] [stdout] 265 | arguments: ref args_a, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_b` [INFO] [stdout] --> src/token_type.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | arguments: ref args_b, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:402:35 [INFO] [stdout] | [INFO] [stdout] 402 | TokenTypes::Try { block } => "Try".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:403:37 [INFO] [stdout] | [INFO] [stdout] 403 | TokenTypes::Catch { block } => "Catch".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/token_type.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | TokenTypes::Finally { block } => "Finally".to_string(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:264:37 [INFO] [stdout] | [INFO] [stdout] 264 | ... catch_handled = true; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `catch_handled` is never read [INFO] [stdout] --> src/compilers/conditional.rs:269:37 [INFO] [stdout] | [INFO] [stdout] 269 | ... catch_handled = false; // Indicate failure [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compilers/conditional.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | index: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compilers/function.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut parameters: Vec<(String, String, String)>; [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/compilers/function.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut function_return_type: String; [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/compilers/function.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut function_body: Vec; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compilers/function.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let result: BaseTypes; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let mut evaluation_result: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Result` [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `variable` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let variable: (String, BaseTypes); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_variable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collection` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let collection: (String, Vec); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_collection` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/compilers/variable.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ASTNode::ObjectCall(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compilers/variable.rs:174:37 [INFO] [stdout] | [INFO] [stdout] 174 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/compilers/variable.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | ... data, [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/compilers/variable.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ... value_type, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collection` is never read [INFO] [stdout] --> src/compilers/variable.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `variable` is never read [INFO] [stdout] --> src/compilers/variable.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_value` is never read [INFO] [stdout] --> src/compilers/variable.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | let mut first: Option = Option::None; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut parenthesis: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parenthesis` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:544:21 [INFO] [stdout] | [INFO] [stdout] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parenthesis` is never read [INFO] [stdout] --> src/compilers/variable.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | parenthesis = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn read_numbers(expression: String, char: char, index: usize) -> ParseInfo { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/statement_tokenizer/conditional_tokenizer.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let keyword = String::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `j` is assigned to, but never used [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_j` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | j = return_found.1.unwrap(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let mut j = index; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | j += consumed; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let mut result = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/main.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | result = route_to_parser(&mut tokenized_expression, None)?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_tokenize` is never read [INFO] [stdout] --> src/main.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | to_tokenize = tokens.clone(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hasroot` is assigned to, but never used [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let mut hasroot = true; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_hasroot` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:339:30 [INFO] [stdout] | [INFO] [stdout] 339 | ASTNode::Try(t) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:351:32 [INFO] [stdout] | [INFO] [stdout] 351 | ASTNode::Catch(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:376:34 [INFO] [stdout] | [INFO] [stdout] 376 | ASTNode::Finally(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:389:35 [INFO] [stdout] | [INFO] [stdout] 389 | ASTNode::Function(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:440:43 [INFO] [stdout] | [INFO] [stdout] 440 | ASTNode::Function(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hasroot` is never read [INFO] [stdout] --> src/main.rs:463:21 [INFO] [stdout] | [INFO] [stdout] 463 | hasroot = true; // Mark that we have a valid root [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/ast.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_child` are never used [INFO] [stdout] --> src/ast.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl AST { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(root: ASTNode) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_child(&mut self, node: ASTNode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Print` is never constructed [INFO] [stdout] --> src/collection.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum ArrayFunctions { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/collection.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl ArrayFunctions { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn print(&mut self, array: &Array) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Print` is never constructed [INFO] [stdout] --> src/collection.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub enum DictionaryFunctions { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 158 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/collection.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 211 | impl DictionaryFunctions { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn print(&mut self, dictionary: &Dictionary) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `len` is never used [INFO] [stdout] --> src/function_map.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FunctionMap { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | fn len(s: String) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElseNode` is never constructed [INFO] [stdout] --> src/node.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct ElseNode; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node.rs:295:16 [INFO] [stdout] | [INFO] [stdout] 294 | impl ElseNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 295 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FatArrowNode` is never constructed [INFO] [stdout] --> src/node.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | pub struct FatArrowNode; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArgumentCallNode` is never constructed [INFO] [stdout] --> src/node.rs:465:16 [INFO] [stdout] | [INFO] [stdout] 465 | pub struct ArgumentCallNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionCallArgumentsNode` is never constructed [INFO] [stdout] --> src/node.rs:470:16 [INFO] [stdout] | [INFO] [stdout] 470 | pub struct FunctionCallArgumentsNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `display_info` are never used [INFO] [stdout] --> src/node.rs:475:16 [INFO] [stdout] | [INFO] [stdout] 474 | impl FunctionCallArgumentsNode { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 475 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn display_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SemiColonNode` is never constructed [INFO] [stdout] --> src/node.rs:518:16 [INFO] [stdout] | [INFO] [stdout] 518 | pub struct SemiColonNode; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `display_info` are never used [INFO] [stdout] --> src/node.rs:521:16 [INFO] [stdout] | [INFO] [stdout] 520 | impl SemiColonNode { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 521 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 524 | pub fn display_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_function_in_stack` is never used [INFO] [stdout] --> src/compilers/function.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 35 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eq` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 64 | impl Token { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 65 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 73 | impl Token { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new(value: T, token_type: TokenTypes) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:602:30 [INFO] [stdout] | [INFO] [stdout] 602 | for variable in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:319:46 [INFO] [stdout] | [INFO] [stdout] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:331:46 [INFO] [stdout] | [INFO] [stdout] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:350:46 [INFO] [stdout] | [INFO] [stdout] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:362:46 [INFO] [stdout] | [INFO] [stdout] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetType` should have a snake case name [INFO] [stdout] --> src/base_variable.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn GetType(&self) -> String; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Result` should have a snake case name [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:247:33 [INFO] [stdout] | [INFO] [stdout] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.29s [INFO] running `Command { std: "docker" "inspect" "9bbaaeb5b1c82af53f6e53712135deaae6525312392f3ff6d20953f8a749083e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bbaaeb5b1c82af53f6e53712135deaae6525312392f3ff6d20953f8a749083e", kill_on_drop: false }` [INFO] [stdout] 9bbaaeb5b1c82af53f6e53712135deaae6525312392f3ff6d20953f8a749083e