[INFO] fetching crate jist 0.1.9... [INFO] testing jist-0.1.9 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate jist 0.1.9 into /workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate jist 0.1.9 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2db77980abd24c8584064591fec46800f49ee39ac8b04285f8150e0242023d7 [INFO] running `Command { std: "docker" "start" "-a" "e2db77980abd24c8584064591fec46800f49ee39ac8b04285f8150e0242023d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2db77980abd24c8584064591fec46800f49ee39ac8b04285f8150e0242023d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2db77980abd24c8584064591fec46800f49ee39ac8b04285f8150e0242023d7", kill_on_drop: false }` [INFO] [stdout] e2db77980abd24c8584064591fec46800f49ee39ac8b04285f8150e0242023d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f47279a8311ab3bf1056e073e76c0216dc2f9a3af81bcf9bd12c02fad16fbe3d [INFO] running `Command { std: "docker" "start" "-a" "f47279a8311ab3bf1056e073e76c0216dc2f9a3af81bcf9bd12c02fad16fbe3d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling crossterm v0.26.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling 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] [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: 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: 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 10.92s [INFO] running `Command { std: "docker" "inspect" "f47279a8311ab3bf1056e073e76c0216dc2f9a3af81bcf9bd12c02fad16fbe3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f47279a8311ab3bf1056e073e76c0216dc2f9a3af81bcf9bd12c02fad16fbe3d", kill_on_drop: false }` [INFO] [stdout] f47279a8311ab3bf1056e073e76c0216dc2f9a3af81bcf9bd12c02fad16fbe3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14d95c1b0d0889ded625ed81d7043c2588fa01516057a108c2faf47365ef6d89 [INFO] running `Command { std: "docker" "start" "-a" "14d95c1b0d0889ded625ed81d7043c2588fa01516057a108c2faf47365ef6d89", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling predicates-core v1.0.8 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling wait-timeout v0.2.0 [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: 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] [stderr] Compiling predicates-tree v1.0.11 [INFO] [stderr] Compiling predicates v3.1.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling bstr v1.11.0 [INFO] [stderr] Compiling predicates v1.0.8 [INFO] [stderr] Compiling 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] [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: 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: `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: `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: `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: `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: 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: 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: 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: 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: `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: `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: 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: 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: 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: 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: 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: 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 13.78s [INFO] running `Command { std: "docker" "inspect" "14d95c1b0d0889ded625ed81d7043c2588fa01516057a108c2faf47365ef6d89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14d95c1b0d0889ded625ed81d7043c2588fa01516057a108c2faf47365ef6d89", kill_on_drop: false }` [INFO] [stdout] 14d95c1b0d0889ded625ed81d7043c2588fa01516057a108c2faf47365ef6d89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c4f8137d33bce7a33f58c0e553ff0edbf0946ac7c98112a000431ff918914b3e [INFO] running `Command { std: "docker" "start" "-a" "c4f8137d33bce7a33f58c0e553ff0edbf0946ac7c98112a000431ff918914b3e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::base_variable::base_types::StringWrapper` [INFO] [stderr] --> src/compilers/function.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::base_variable::base_types::StringWrapper; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/compilers/function.rs:2:38 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::base_variable::variable::{self, Variable}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::process::exit` [INFO] [stderr] --> src/compilers/function.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::process::exit; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FUNCTION_STACK` [INFO] [stderr] --> src/compilers/function.rs:18:23 [INFO] [stderr] | [INFO] [stderr] 18 | use crate::function::{FUNCTION_STACK, USER_FUNCTION_STACK}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `USER_FUNCTIONS` [INFO] [stderr] --> src/compilers/function.rs:19:38 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::function_map::{FUNCTIONS, USER_FUNCTIONS}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stderr] | [INFO] [stderr] 282 | exit(1); [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 312 | return none; [INFO] [stderr] | ^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/compiler.rs:124:25 [INFO] [stderr] | [INFO] [stderr] 124 | let result = compile_dot_statement(expression); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:212:37 [INFO] [stderr] | [INFO] [stderr] 212 | ... index += 2; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:221:29 [INFO] [stderr] | [INFO] [stderr] 221 | ... index += 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:240:37 [INFO] [stderr] | [INFO] [stderr] 240 | ... index += 2; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:249:29 [INFO] [stderr] | [INFO] [stderr] 249 | ... index += 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:268:37 [INFO] [stderr] | [INFO] [stderr] 268 | ... index += 2; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `index` is never read [INFO] [stderr] --> src/compiler.rs:277:29 [INFO] [stderr] | [INFO] [stderr] 277 | ... index += 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/function.rs:400:25 [INFO] [stderr] | [INFO] [stderr] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/node.rs:105:30 [INFO] [stderr] | [INFO] [stderr] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/node.rs:106:32 [INFO] [stderr] | [INFO] [stderr] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/node.rs:107:34 [INFO] [stderr] | [INFO] [stderr] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args_a` [INFO] [stderr] --> src/token_type.rs:265:40 [INFO] [stderr] | [INFO] [stderr] 265 | arguments: ref args_a, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args_b` [INFO] [stderr] --> src/token_type.rs:271:40 [INFO] [stderr] | [INFO] [stderr] 271 | arguments: ref args_b, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/token_type.rs:402:35 [INFO] [stderr] | [INFO] [stderr] 402 | TokenTypes::Try { block } => "Try".to_string(), [INFO] [stderr] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/token_type.rs:403:37 [INFO] [stderr] | [INFO] [stderr] 403 | TokenTypes::Catch { block } => "Catch".to_string(), [INFO] [stderr] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/token_type.rs:404:39 [INFO] [stderr] | [INFO] [stderr] 404 | TokenTypes::Finally { block } => "Finally".to_string(), [INFO] [stderr] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `char` [INFO] [stderr] --> src/statement_tokenizer/basic_tokenizer.rs:164:45 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn read_numbers(expression: String, char: char, index: usize) -> ParseInfo { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `i` [INFO] [stdout] running 28 tests [INFO] [stderr] --> src/statement_tokenizer/conditional_tokenizer.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | let i = 0; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `keyword` [INFO] [stderr] --> src/statement_tokenizer/conditional_tokenizer.rs:42:13 [INFO] [stderr] | [INFO] [stderr] 42 | let keyword = String::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stderr] [INFO] [stderr] warning: variable `j` is assigned to, but never used [INFO] [stderr] --> src/statement_tokenizer/function_tokenizer.rs:120:17 [INFO] [stderr] | [INFO] [stderr] 120 | let mut j = index; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_j` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `j` is never read [INFO] [stderr] --> src/statement_tokenizer/function_tokenizer.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | j = return_found.1.unwrap(); [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `j` is never read [INFO] [stderr] --> src/statement_tokenizer/function_tokenizer.rs:156:17 [INFO] [stderr] | [INFO] [stderr] 156 | let mut j = index; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `j` is never read [INFO] [stderr] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stderr] | [INFO] [stderr] 242 | j += consumed; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `catch_handled` is never read [INFO] [stderr] --> src/compilers/conditional.rs:264:37 [INFO] [stderr] | [INFO] [stderr] 264 | ... catch_handled = true; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `catch_handled` is never read [INFO] [stderr] --> src/compilers/conditional.rs:269:37 [INFO] [stderr] | [INFO] [stderr] 269 | ... catch_handled = false; // Indicate failure [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/compilers/conditional.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | index: usize, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/compilers/function.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | let mut parameters: Vec<(String, String, String)>; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/compilers/function.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | let mut function_return_type: String; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/compilers/function.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | let mut function_body: Vec; [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/compilers/function.rs:299:13 [INFO] [stderr] | [INFO] [stderr] 299 | let result: BaseTypes; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `evaluation_result` is never read [INFO] [stderr] --> src/compilers/loops.rs:96:29 [INFO] [stderr] | [INFO] [stderr] 96 | let mut evaluation_result: bool = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `Result` [INFO] [stderr] --> src/compilers/loops.rs:121:33 [INFO] [stderr] | [INFO] [stderr] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Result` [INFO] [stderr] [INFO] [stderr] warning: variable `variable` is assigned to, but never used [INFO] [stderr] --> src/compilers/variable.rs:113:17 [INFO] [stderr] | [INFO] [stderr] 113 | let variable: (String, BaseTypes); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_variable` instead [INFO] [stderr] [INFO] [stderr] warning: variable `collection` is assigned to, but never used [INFO] [stderr] --> src/compilers/variable.rs:114:17 [INFO] [stderr] | [INFO] [stderr] 114 | let collection: (String, Vec); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_collection` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/compilers/variable.rs:127:37 [INFO] [stderr] | [INFO] [stderr] 127 | ASTNode::ObjectCall(c) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/compilers/variable.rs:174:37 [INFO] [stdout] test compiler::complier_tests::test_operation_addition ... ok [INFO] [stderr] | [INFO] [stdout] test compiler::complier_tests::test_parse_operator_divition ... ok [INFO] [stderr] 174 | ... name, [INFO] [stdout] test compiler::complier_tests::test_operation_divition ... ok [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/compilers/variable.rs:175:37 [INFO] [stderr] | [INFO] [stderr] 175 | ... data, [INFO] [stderr] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value_type` [INFO] [stderr] --> src/compilers/variable.rs:176:37 [INFO] [stderr] | [INFO] [stderr] 176 | ... value_type, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `collection` is never read [INFO] [stderr] --> src/compilers/variable.rs:215:21 [INFO] [stderr] | [INFO] [stderr] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `variable` is never read [INFO] [stderr] --> src/compilers/variable.rs:218:21 [INFO] [stderr] | [INFO] [stdout] test compiler::complier_tests::test_parse_operator_multiplication ... ok [INFO] [stderr] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `var_value` is never read [INFO] [stderr] --> src/compilers/variable.rs:411:13 [INFO] [stdout] test compiler::complier_tests::test_operation_multiplication ... ok [INFO] [stderr] | [INFO] [stdout] test compiler::complier_tests::test_operation_subtraction ... ok [INFO] [stderr] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable `first` is assigned to, but never used [INFO] [stderr] --> src/compilers/variable.rs:412:13 [INFO] [stderr] | [INFO] [stderr] 412 | let mut first: Option = Option::None; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_first` instead [INFO] [stderr] [INFO] [stderr] warning: variable `parenthesis` is assigned to, but never used [INFO] [stderr] --> src/compilers/variable.rs:413:13 [INFO] [stderr] | [INFO] [stderr] 413 | let mut parenthesis: bool = false; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_parenthesis` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `first` is never read [INFO] [stderr] --> src/compilers/variable.rs:531:21 [INFO] [stderr] | [INFO] [stderr] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `first` is never read [INFO] [stderr] --> src/compilers/variable.rs:544:21 [INFO] [stderr] | [INFO] [stderr] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `parenthesis` is never read [INFO] [stderr] --> src/compilers/variable.rs:569:17 [INFO] [stderr] | [INFO] [stderr] 569 | parenthesis = true; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: associated function `len` is never used [INFO] [stderr] --> src/function_map.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 51 | impl FunctionMap { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 163 | fn len(s: String) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `eq` is never used [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 54 | impl ParseInfo { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_function_in_stack` is never used [INFO] [stderr] --> src/compilers/function.rs:50:4 [INFO] [stderr] | [INFO] [stderr] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/base_variable.rs:319:46 [INFO] [stderr] | [INFO] [stderr] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/base_variable.rs:331:46 [INFO] [stderr] | [INFO] [stderr] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/base_variable.rs:350:46 [INFO] [stderr] | [INFO] [stderr] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/base_variable.rs:362:46 [INFO] [stderr] | [INFO] [stderr] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: trait method `GetType` should have a snake case name [INFO] [stderr] --> src/base_variable.rs:620:12 [INFO] [stderr] | [INFO] [stderr] 620 | fn GetType(&self) -> String; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stderr] | [INFO] [stderr] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/function.rs:61:14 [INFO] [stderr] | [INFO] [stderr] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/function.rs:66:25 [INFO] [stderr] | [INFO] [stderr] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/function.rs:68:22 [INFO] [stderr] | [INFO] [stderr] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/function.rs:461:37 [INFO] [stderr] | [INFO] [stderr] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/compilers/loops.rs:33:34 [INFO] [stderr] | [INFO] [stderr] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] test compiler::complier_tests::test_parse_operator_subtraction ... ok [INFO] [stderr] | [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_function_declaration ... ok [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/compilers/loops.rs:38:41 [INFO] [stderr] | [INFO] [stderr] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/compilers/loops.rs:57:45 [INFO] [stderr] | [INFO] [stderr] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_function_call ... ok [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_operation ... ok [INFO] [stderr] [INFO] [stderr] warning: variable `Result` should have a snake case name [INFO] [stderr] --> src/compilers/loops.rs:121:33 [INFO] [stderr] | [INFO] [stderr] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/variable.rs:42:30 [INFO] [stderr] | [INFO] [stderr] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/variable.rs:247:33 [INFO] [stderr] | [INFO] [stderr] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/compilers/variable.rs:289:30 [INFO] [stderr] | [INFO] [stderr] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/compilers/variable.rs:487:25 [INFO] [stderr] | [INFO] [stderr] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/compilers/variable.rs:591:9 [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict ... ok [INFO] [stderr] | [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_bool_string ... ok [INFO] [stderr] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_char_float ... ok [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_operation_with_parethisis ... ok [INFO] [stderr] | [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_boolean ... ok [INFO] [stderr] = note: for more information, see [INFO] [stdout] test compiler::complier_tests::test_parse_operator_addition ... ok [INFO] [stderr] = 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] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_char ... ok [INFO] [stderr] [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_float ... ok [INFO] [stderr] warning: `jist` (lib) generated 74 warnings (run `cargo fix --lib -p jist` to apply 8 suggestions) [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_int ... ok [INFO] [stderr] warning: `jist` (lib test) generated 74 warnings (74 duplicates) [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_string ... ok [INFO] [stderr] warning: variable `result` is assigned to, but never used [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_boolean_false ... ok [INFO] [stderr] --> src/main.rs:113:13 [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_boolean_true ... ok [INFO] [stderr] | [INFO] [stderr] 113 | let mut result = true; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_result` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `result` is never read [INFO] [stderr] --> src/main.rs:168:13 [INFO] [stderr] | [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_float ... ok [INFO] [stderr] 168 | result = route_to_parser(&mut tokenized_expression, None)?; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `to_tokenize` is never read [INFO] [stderr] --> src/main.rs:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | to_tokenize = tokens.clone(); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable `hasroot` is assigned to, but never used [INFO] [stderr] --> src/main.rs:323:17 [INFO] [stderr] | [INFO] [stderr] 323 | let mut hasroot = true; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_hasroot` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/main.rs:339:30 [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_int ... ok [INFO] [stderr] | [INFO] [stderr] 339 | ASTNode::Try(t) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/main.rs:351:32 [INFO] [stderr] | [INFO] [stderr] 351 | ASTNode::Catch(c) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/main.rs:376:34 [INFO] [stderr] | [INFO] [stderr] 376 | ASTNode::Finally(f) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/main.rs:389:35 [INFO] [stderr] | [INFO] [stderr] 389 | ASTNode::Function(f) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/main.rs:440:43 [INFO] [stderr] | [INFO] [stderr] 440 | ASTNode::Function(f) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `hasroot` is never read [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_char ... ok [INFO] [stderr] --> src/main.rs:463:21 [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_string ... ok [INFO] [stderr] | [INFO] [stderr] 463 | hasroot = true; // Mark that we have a valid root [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: struct `AST` is never constructed [INFO] [stderr] --> src/ast.rs:5:16 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct AST { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `add_child` are never used [INFO] [stderr] --> src/ast.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 9 | impl AST { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] 10 | pub fn new(root: ASTNode) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn add_child(&mut self, node: ASTNode) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Print` is never constructed [INFO] [stderr] --> src/collection.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 109 | pub enum ArrayFunctions { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 116 | Print, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `print` is never used [INFO] [stderr] --> src/collection.rs:146:12 [INFO] [stderr] | [INFO] [stderr] 119 | impl ArrayFunctions { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 146 | pub fn print(&mut self, array: &Array) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Print` is never constructed [INFO] [stderr] --> src/collection.rs:158:5 [INFO] [stderr] | [INFO] [stderr] 151 | pub enum DictionaryFunctions { [INFO] [stderr] | ------------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 158 | Print, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `print` is never used [INFO] [stderr] --> src/collection.rs:247:12 [INFO] [stderr] | [INFO] [stderr] 211 | impl DictionaryFunctions { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 247 | pub fn print(&mut self, dictionary: &Dictionary) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `len` is never used [INFO] [stderr] --> src/function_map.rs:163:8 [INFO] [stderr] | [INFO] [stderr] 51 | impl FunctionMap { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 163 | fn len(s: String) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ElseNode` is never constructed [INFO] [stderr] --> src/node.rs:292:16 [INFO] [stderr] | [INFO] [stderr] 292 | pub struct ElseNode; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/node.rs:295:16 [INFO] [stderr] | [INFO] [stderr] 294 | impl ElseNode { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 295 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FatArrowNode` is never constructed [INFO] [stderr] --> src/node.rs:357:16 [INFO] [stderr] | [INFO] [stderr] 357 | pub struct FatArrowNode; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ArgumentCallNode` is never constructed [INFO] [stderr] --> src/node.rs:465:16 [INFO] [stderr] | [INFO] [stderr] 465 | pub struct ArgumentCallNode { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `FunctionCallArgumentsNode` is never constructed [INFO] [stderr] --> src/node.rs:470:16 [INFO] [stderr] | [INFO] [stderr] 470 | pub struct FunctionCallArgumentsNode { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `display_info` are never used [INFO] [stderr] --> src/node.rs:475:16 [INFO] [stderr] | [INFO] [stderr] 474 | impl FunctionCallArgumentsNode { [INFO] [stderr] | ------------------------------ associated items in this implementation [INFO] [stderr] 475 | pub fn new(value: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 478 | pub fn display_info(&self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SemiColonNode` is never constructed [INFO] [stderr] --> src/node.rs:518:16 [INFO] [stderr] | [INFO] [stderr] 518 | pub struct SemiColonNode; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `display_info` are never used [INFO] [stderr] --> src/node.rs:521:16 [INFO] [stderr] | [INFO] [stderr] 520 | impl SemiColonNode { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 521 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 524 | pub fn display_info(&self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch ... ok [INFO] [stderr] [INFO] [stderr] warning: method `to_string` is never used [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:43:16 [INFO] [stderr] | [INFO] [stderr] 35 | impl ParseInfo { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 43 | pub fn to_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Token` is never constructed [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:60:16 [INFO] [stderr] | [INFO] [stderr] 60 | pub struct Token { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `to_string` is never used [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:65:16 [INFO] [stderr] | [INFO] [stderr] 64 | impl Token { [INFO] [stderr] | ----------------------------------- method in this implementation [INFO] [stderr] 65 | pub fn to_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/statement_tokenizer/tokenizer.rs:74:16 [INFO] [stderr] | [INFO] [stderr] 73 | impl Token { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 74 | pub fn new(value: T, token_type: TokenTypes) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/main.rs:602:30 [INFO] [stderr] | [INFO] [stderr] 602 | for variable in unsafe { VARIABLE_STACK.iter() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/base_variable.rs:319:46 [INFO] [stderr] | [INFO] [stderr] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `jist` (bin "jist" test) generated 103 warnings (72 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jist-b5f0f81f137cfd3c) [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch_finally ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/jist-40408ed6429e9f0f) [INFO] [stdout] [INFO] [stdout] running 50 tests [INFO] [stdout] test compiler::complier_tests::test_operation_divition ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_multiplication ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_addition ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_subtraction ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_multiplication ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_divition ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_subtraction ... ok [INFO] [stdout] test main_test::test_check_file_extension ... ok [INFO] [stdout] test main_test::test_check_file_extension_invalid ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_bool_string ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_char_float ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_function_declaration ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_addition ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_operation ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_function_call ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_operation_with_parethisis ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_boolean ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_char ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_int ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_string ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_float ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_int ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_boolean_false ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_boolean_true ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_char ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch ... ok [INFO] [stdout] test test_input_output::test_char_variable_declaration ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_string ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_float ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch_finally ... ok [INFO] [stdout] test test_input_output::test_array_float_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_bool_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_boolean_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_dict_int_string_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_dict_int_char_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_array_char_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_float_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_array_boolean_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_array_int_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_multi_line_comments ... ok [INFO] [stdout] test test_input_output::test_dict_float_int_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_dict_boolean_string_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_empty_file ... ok [INFO] [stdout] test test_input_output::test_int_variable_declarations ... ok [INFO] [stdout] test test_input_output::test_dict_string_float_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_string_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_variable_reassignment ... ok [INFO] [stdout] test test_input_output::test_single_line_comments ... ok [INFO] [stdout] test test_input_output::test_file_write ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_input_output::test_file_write stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_input_output::test_file_write' (111) panicked at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5: [INFO] [stdout] Unexpected failure. [INFO] [stdout] code=101 [INFO] [stdout] stderr=```<87 lines total> [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] thread \'main\' (115) panicked at src/function_map.rs:58:44: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: \"Read-only file system\" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5c1a6c9e2df2 - std::backtrace_rs::backtrace::libunwind::trace::hc4a5f428cfb78751 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5c1a6c9e2df2 - std::backtrace_rs::backtrace::trace_unsynchronized::h20e1095684b4c296 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5c1a6c9e2df2 - std::sys::backtrace::_print_fmt::h461f2e3a8f6b29e2 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5c1a6c9e2df2 - ::fmt::h4ee3a75aa71a2c45 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5c1a6ca04e1f - core::fmt::rt::Argument::fmt::h6f1564705cd089af [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5c1a6ca04e1f - core::fmt::write::h21ca93b65a7c281a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5c1a6c9d4283 - std::io::default_write_fmt::h745a1edf2999cb3b [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5c1a6c9d4283 - std::io::Write::write_fmt::hfc56e66d6e189682 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] ``` [INFO] [stdout] <27 lines omitted> [INFO] [stdout] ``` [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:324:22 [INFO] [stdout] 22: 0x5c1a6c8f968b - jist::compilers::function::parse_function_call::hab7a0a9759ea5079 [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:224:26 [INFO] [stdout] 23: 0x5c1a6c8f3b6f - jist::compiler::compilers::route_to_parser::hbe4dd13df95ae28d [INFO] [stdout] at /opt/rustwide/workdir/src/compiler.rs:331:34 [INFO] [stdout] 24: 0x5c1a6c8ca236 - jist::parse_file::h1450c3c3d625154f [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:445:38 [INFO] [stdout] 25: 0x5c1a6c8cb3e3 - jist::main::h6419218b1cd647ce [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:596:21 [INFO] [stdout] 26: 0x5c1a6c9001db - core::ops::function::FnOnce::call_once::h57287c9d5c202d31 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 27: 0x5c1a6c8fe5be - std::sys::backtrace::__rust_begin_short_backtrace::h67ecd153c1e8fd0f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 28: 0x5c1a6c921ef1 - std::rt::lang_start::{{closure}}::h060387c19d3304e3 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:206:18 [INFO] [stdout] 29: 0x5c1a6c9e3c10 - core::ops::function::impls:: for &F>::call_once::hae16bf8966719858 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 30: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::do_call::hd4eb7cf01d0f66cd [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::h35b4afc45093edf5 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 32: 0x5c1a6c9e3c10 - std::panic::catch_unwind::h5a7ef11ac2fa7980 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 33: 0x5c1a6c9e3c10 - std::rt::lang_start_internal::{{closure}}::h18f8e059e8eb5f5a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:175:24 [INFO] [stdout] 34: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::do_call::hb4f94f34ea41283f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 35: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::hfbb31091ea806204 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 36: 0x5c1a6c9e3c10 - std::panic::catch_unwind::hc88f452387620cfb [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 37: 0x5c1a6c9e3c10 - std::rt::lang_start_internal::h23cfb6dcbf9c9010 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:171:5 [INFO] [stdout] 38: 0x5c1a6c921f47 - std::rt::lang_start::hd84b6df50e3d4222 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:205:5 [INFO] [stdout] 39: 0x5c1a6c8d315e - main [INFO] [stdout] 40: 0x7b0d920ce1ca - [INFO] [stdout] 41: 0x7b0d920ce28b - __libc_start_main [INFO] [stdout] 42: 0x5c1a6c8b7a95 - _start [INFO] [stdout] 43: 0x0 - [INFO] [stdout] ``` [INFO] [stdout] ``` [INFO] [stdout] command=`"/opt/rustwide/target/debug/jist" "test_files/file_write.jist"` [INFO] [stdout] code=101 [INFO] [stdout] stdout="" [INFO] [stdout] stderr=<87 lines total> [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] thread \'main\' (115) panicked at src/function_map.rs:58:44: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: \"Read-only file system\" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5c1a6c9e2df2 - std::backtrace_rs::backtrace::libunwind::trace::hc4a5f428cfb78751 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5c1a6c9e2df2 - std::backtrace_rs::backtrace::trace_unsynchronized::h20e1095684b4c296 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5c1a6c9e2df2 - std::sys::backtrace::_print_fmt::h461f2e3a8f6b29e2 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5c1a6c9e2df2 - ::fmt::h4ee3a75aa71a2c45 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5c1a6ca04e1f - core::fmt::rt::Argument::fmt::h6f1564705cd089af [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5c1a6ca04e1f - core::fmt::write::h21ca93b65a7c281a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5c1a6c9d4283 - std::io::default_write_fmt::h745a1edf2999cb3b [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5c1a6c9d4283 - std::io::Write::write_fmt::hfc56e66d6e189682 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] ``` [INFO] [stdout] <27 lines omitted> [INFO] [stdout] ``` [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:324:22 [INFO] [stdout] 22: 0x5c1a6c8f968b - jist::compilers::function::parse_function_call::hab7a0a9759ea5079 [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:224:26 [INFO] [stdout] 23: 0x5c1a6c8f3b6f - jist::compiler::compilers::route_to_parser::hbe4dd13df95ae28d [INFO] [stdout] at /opt/rustwide/workdir/src/compiler.rs:331:34 [INFO] [stdout] 24: 0x5c1a6c8ca236 - jist::parse_file::h1450c3c3d625154f [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:445:38 [INFO] [stdout] 25: 0x5c1a6c8cb3e3 - jist::main::h6419218b1cd647ce [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:596:21 [INFO] [stdout] 26: 0x5c1a6c9001db - core::ops::function::FnOnce::call_once::h57287c9d5c202d31 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 27: 0x5c1a6c8fe5be - std::sys::backtrace::__rust_begin_short_backtrace::h67ecd153c1e8fd0f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 28: 0x5c1a6c921ef1 - std::rt::lang_start::{{closure}}::h060387c19d3304e3 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:206:18 [INFO] [stdout] 29: 0x5c1a6c9e3c10 - core::ops::function::impls:: for &F>::call_once::hae16bf8966719858 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 30: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::do_call::hd4eb7cf01d0f66cd [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::h35b4afc45093edf5 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 32: 0x5c1a6c9e3c10 - std::panic::catch_unwind::h5a7ef11ac2fa7980 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 33: 0x5c1a6c9e3c10 - std::rt::lang_start_internal::{{closure}}::h18f8e059e8eb5f5a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:175:24 [INFO] [stdout] 34: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::do_call::hb4f94f34ea41283f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 35: 0x5c1a6c9e3c10 - std::panicking::catch_unwind::hfbb31091ea806204 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 36: 0x5c1a6c9e3c10 - std::panic::catch_unwind::hc88f452387620cfb [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 37: 0x5c1a6c9e3c10 - std::rt::lang_start_internal::h23cfb6dcbf9c9010 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:171:5 [INFO] [stdout] 38: 0x5c1a6c921f47 - std::rt::lang_start::hd84b6df50e3d4222 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:205:5 [INFO] [stdout] 39: 0x5c1a6c8d315e - main [INFO] [stdout] 40: 0x7b0d920ce1ca - [INFO] [stdout] 41: 0x7b0d920ce28b - __libc_start_main [INFO] [stdout] 42: 0x5c1a6c8b7a95 - _start [INFO] [stdout] 43: 0x0 - [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x602635750e72 - std::backtrace_rs::backtrace::libunwind::trace::hc4a5f428cfb78751 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x602635750e72 - std::backtrace_rs::backtrace::trace_unsynchronized::h20e1095684b4c296 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x602635750e72 - std::sys::backtrace::_print_fmt::h461f2e3a8f6b29e2 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x602635750e72 - ::fmt::h4ee3a75aa71a2c45 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x60263577513f - core::fmt::rt::Argument::fmt::h6f1564705cd089af [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x60263577513f - core::fmt::write::h21ca93b65a7c281a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x60263573db43 - std::io::default_write_fmt::h6f3360f4711e9130 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x60263573db43 - std::io::Write::write_fmt::hf4539125c0e0bc30 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x602635751482 - std::sys::backtrace::BacktraceLock::print::h58d5d73f9e953cf1 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x60263573c19c - std::panicking::default_hook::{{closure}}::h1457fbe47c9457d1 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x60263573c014 - std::panicking::default_hook::hccb5e73b206c0830 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x6026356980be - as core::ops::function::Fn>::call::h04940a86aa899793 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x6026356980be - test::test_main_with_exit_callback::{{closure}}::hca6cc295403b83e8 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x60263573cdf3 - as core::ops::function::Fn>::call::h9d85285925beb538 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x60263573cdf3 - std::panicking::panic_with_hook::h3190ecc6229cdd29 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x60263575128a - std::panicking::panic_handler::{{closure}}::ha1f1b769bc2bb40c [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x6026357511e9 - std::sys::backtrace::__rust_end_short_backtrace::h5f9cf66f19c2a172 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x60263573ca9d - __rustc[a93bd50104b99ad4]::rust_begin_unwind [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x60263577e3f0 - core::panicking::panic_fmt::hc70c3c83f13c1375 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x6026356e6a00 - core::panicking::panic_display::he9c0048a72ff8715 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panicking.rs:268:5 [INFO] [stdout] 20: 0x6026356db08b - assert_cmd::assert::AssertError::panic::panic_cold_display::h65e99c1a3d49255c [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panic.rs:100:13 [INFO] [stdout] 21: 0x6026356dc287 - assert_cmd::assert::AssertError::panic::h85093382979c263b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assert_cmd-2.0.16/src/assert.rs:1033:9 [INFO] [stdout] 22: 0x6026356d7667 - core::ops::function::FnOnce::call_once::hff587bf2c57da4bc [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x6026356e1524 - core::result::Result::unwrap_or_else::h926705a9cbc26273 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/result.rs:1612:23 [INFO] [stdout] 24: 0x6026356db5a6 - assert_cmd::assert::Assert::success::h9c0e511e645adb5d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assert_cmd-2.0.16/src/assert.rs:158:28 [INFO] [stdout] 25: 0x602635673a77 - jist::test_input_output::run_jist_command::h61dc4a837f8169dd [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:639:37 [INFO] [stdout] 26: 0x6026356735d1 - jist::test_input_output::test_file_write::h88fe2c039c5940b8 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:885:9 [INFO] [stdout] 27: 0x602635675c87 - jist::test_input_output::test_file_write::{{closure}}::h04de44cb9e40a899 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:883:25 [INFO] [stdout] 28: 0x60263567b786 - core::ops::function::FnOnce::call_once::hc65a35b411fad1ae [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 29: 0x60263569913b - core::ops::function::FnOnce::call_once::h70d190c46966003b [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 30: 0x60263569913b - test::__rust_begin_short_backtrace::hb077ccaabb17d2ec [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:663:18 [INFO] [stdout] 31: 0x602635696da5 - test::run_test_in_process::{{closure}}::hd73eeb633a1507bd [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:686:74 [INFO] [stdout] 32: 0x602635696da5 - as core::ops::function::FnOnce<()>>::call_once::h033c82756fc9d192 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 33: 0x602635696da5 - std::panicking::catch_unwind::do_call::h734b44e243d34585 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 34: 0x602635696da5 - std::panicking::catch_unwind::h5e85417122517fb1 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 35: 0x602635696da5 - std::panic::catch_unwind::h0900e58a82a7d188 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 36: 0x602635696da5 - test::run_test_in_process::h27721efd62ae77d0 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:686:27 [INFO] [stdout] 37: 0x602635696da5 - test::run_test::{{closure}}::h8b1264838cc597aa [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:607:43 [INFO] [stdout] 38: 0x6026356bdcb4 - test::run_test::{{closure}}::h6ecb96835e2eae4f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/test/src/lib.rs:637:41 [INFO] [stdout] 39: 0x6026356bdcb4 - std::sys::backtrace::__rust_begin_short_backtrace::h098f38ee82a820a7 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 40: 0x6026356a48ca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h042592f748f5e369 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 41: 0x6026356a48ca - as core::ops::function::FnOnce<()>>::call_once::h134fe7f3a2d9ec8d [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 42: 0x6026356a48ca - std::panicking::catch_unwind::do_call::heb87d604f60aee16 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 43: 0x6026356a48ca - std::panicking::catch_unwind::h2203a0f553b89fd7 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 44: 0x6026356a48ca - std::panic::catch_unwind::h4d383e0b0e25d838 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 45: 0x6026356a48ca - std::thread::Builder::spawn_unchecked_::{{closure}}::h76cbdd4635cfd58b [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 46: 0x6026356a48ca - core::ops::function::FnOnce::call_once{{vtable.shim}}::he72e066680f5e267 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 47: 0x60263572665f - as core::ops::function::FnOnce>::call_once::h1b9c6fea2cbefc68 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 48: 0x60263572665f - std::sys::pal::unix::thread::Thread::new::thread_start::h92caa992bc760789 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 49: 0x7e97b5c83aa4 - [INFO] [stdout] 50: 0x7e97b5d10a34 - clone [INFO] [stdout] 51: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_input_output::test_file_write [INFO] [stdout] [INFO] [stdout] test result: FAILED. 49 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin jist` [INFO] running `Command { std: "docker" "inspect" "c4f8137d33bce7a33f58c0e553ff0edbf0946ac7c98112a000431ff918914b3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4f8137d33bce7a33f58c0e553ff0edbf0946ac7c98112a000431ff918914b3e", kill_on_drop: false }` [INFO] [stdout] c4f8137d33bce7a33f58c0e553ff0edbf0946ac7c98112a000431ff918914b3e