[INFO] fetching crate jist 0.1.9... [INFO] testing jist-0.1.9 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate jist 0.1.9 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate jist 0.1.9 [INFO] finished tweaking crates.io crate jist 0.1.9 [INFO] tweaked toml for crates.io crate jist 0.1.9 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jist 0.1.9 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jist 0.1.9 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded normalize-line-endings v0.3.0 [INFO] [stderr] Downloaded doc-comment v0.3.3 [INFO] [stderr] Downloaded assert_cmd v2.0.16 [INFO] [stderr] Downloaded termtree v0.4.1 [INFO] [stderr] Downloaded float-cmp v0.8.0 [INFO] [stderr] Downloaded predicates-tree v1.0.11 [INFO] [stderr] Downloaded difflib v0.4.0 [INFO] [stderr] Downloaded predicates v3.1.2 [INFO] [stderr] Downloaded wait-timeout v0.2.0 [INFO] [stderr] Downloaded crossterm v0.26.1 [INFO] [stderr] Downloaded mio v0.8.11 [INFO] [stderr] Downloaded predicates-core v1.0.8 [INFO] [stderr] Downloaded predicates v1.0.8 [INFO] [stderr] Downloaded difference v2.0.0 [INFO] [stderr] Downloaded bstr v1.11.0 [INFO] [stderr] Downloaded libc v0.2.167 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a5ad1e8d2a673ff74f323d76b4f2abf329402e33bf11a93ef0eb8e4755d697f [INFO] running `Command { std: "docker" "start" "-a" "6a5ad1e8d2a673ff74f323d76b4f2abf329402e33bf11a93ef0eb8e4755d697f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a5ad1e8d2a673ff74f323d76b4f2abf329402e33bf11a93ef0eb8e4755d697f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a5ad1e8d2a673ff74f323d76b4f2abf329402e33bf11a93ef0eb8e4755d697f", kill_on_drop: false }` [INFO] [stdout] 6a5ad1e8d2a673ff74f323d76b4f2abf329402e33bf11a93ef0eb8e4755d697f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a319d263dff09a31a862d2dfde8b20827d2d24631dfa9508777e17aebdc8aa7a [INFO] running `Command { std: "docker" "start" "-a" "a319d263dff09a31a862d2dfde8b20827d2d24631dfa9508777e17aebdc8aa7a", 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 lazy_static v1.5.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [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 13.98s [INFO] running `Command { std: "docker" "inspect" "a319d263dff09a31a862d2dfde8b20827d2d24631dfa9508777e17aebdc8aa7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a319d263dff09a31a862d2dfde8b20827d2d24631dfa9508777e17aebdc8aa7a", kill_on_drop: false }` [INFO] [stdout] a319d263dff09a31a862d2dfde8b20827d2d24631dfa9508777e17aebdc8aa7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05e9cd040d852c0e2ff86dc914e411d6215dfa2678490b857bfe9e0cf9bb1a1f [INFO] running `Command { std: "docker" "start" "-a" "05e9cd040d852c0e2ff86dc914e411d6215dfa2678490b857bfe9e0cf9bb1a1f", 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 assert_cmd v2.0.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.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 float-cmp v0.8.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling bstr v1.11.0 [INFO] [stderr] Compiling regex v1.11.1 [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: 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: 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: `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: 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: 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: `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: 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: `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: `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: `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: variable `variable` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let variable: (String, BaseTypes); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_variable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `collection` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let collection: (String, Vec); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_collection` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/compilers/variable.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ASTNode::ObjectCall(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/compilers/variable.rs:174:37 [INFO] [stdout] | [INFO] [stdout] 174 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/compilers/variable.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | ... data, [INFO] [stdout] | ^^^^ help: try ignoring the field: `data: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/compilers/variable.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | ... value_type, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `value_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `collection` is never read [INFO] [stdout] --> src/compilers/variable.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | collection = parse_collection_call(&object_nodes).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `variable` is never read [INFO] [stdout] --> src/compilers/variable.rs:218:21 [INFO] [stdout] | [INFO] [stdout] 218 | variable = parse_variable_call(object_nodes.get(0).unwrap())? [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_value` is never read [INFO] [stdout] --> src/compilers/variable.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut var_value = ASTNode::Int(IntNode { value: 0 }); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | let mut first: Option = Option::None; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut parenthesis: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parenthesis` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | first = Some(ASTNode::Float(f.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/compilers/variable.rs:544:21 [INFO] [stdout] | [INFO] [stdout] 544 | first = Some(ASTNode::String(s.clone())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parenthesis` is never read [INFO] [stdout] --> src/compilers/variable.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | parenthesis = true; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `len` is never used [INFO] [stdout] --> src/function_map.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl FunctionMap { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | fn len(s: String) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eq` is never used [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ParseInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 55 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_function_in_stack` is never used [INFO] [stdout] --> src/compilers/function.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_function_in_stack(function_name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:319:46 [INFO] [stdout] | [INFO] [stdout] 319 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:331:46 [INFO] [stdout] | [INFO] [stdout] 331 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:350:46 [INFO] [stdout] | [INFO] [stdout] 350 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/base_variable.rs:362:46 [INFO] [stdout] | [INFO] [stdout] 362 | for variable in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetType` should have a snake case name [INFO] [stdout] --> src/base_variable.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn GetType(&self) -> String; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/statement_tokenizer/variable_tokenizer.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &VARIABLE_STACK } { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 229 | for variable in unsafe { &raw const VARIABLE_STACK } { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe { VARIABLE_STACK.clone() }.push(var); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | for arg in unsafe { VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { VARIABLE_STACK.clone() }.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/function.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { VARIABLE_STACK.push(new_var) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/loops.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | for var in unsafe { VARIABLE_STACK.iter_mut() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Result` should have a snake case name [INFO] [stdout] --> src/compilers/loops.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... let Result = route_to_parser(&mut nodes, 0.into()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let var_stack = unsafe { VARIABLE_STACK.clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:247:33 [INFO] [stdout] | [INFO] [stdout] 247 | for var in unsafe { VARIABLE_STACK.iter() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | for var in unsafe { &VARIABLE_STACK.clone() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/compilers/variable.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | VARIABLE_STACK.push(variable.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `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 `test` profile [unoptimized + debuginfo] target(s) in 14.05s [INFO] running `Command { std: "docker" "inspect" "05e9cd040d852c0e2ff86dc914e411d6215dfa2678490b857bfe9e0cf9bb1a1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05e9cd040d852c0e2ff86dc914e411d6215dfa2678490b857bfe9e0cf9bb1a1f", kill_on_drop: false }` [INFO] [stdout] 05e9cd040d852c0e2ff86dc914e411d6215dfa2678490b857bfe9e0cf9bb1a1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] db709ae3f8b307beb3c8f7d0dcb7de42193f6d681c8d004e69a913af56b476c2 [INFO] running `Command { std: "docker" "start" "-a" "db709ae3f8b307beb3c8f7d0dcb7de42193f6d681c8d004e69a913af56b476c2", 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] [stderr] warning: unused variable: `i` [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] [stderr] | [INFO] [stderr] 174 | ... name, [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] [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] [stderr] | [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] [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: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] [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: 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] [stderr] | [INFO] [stderr] 591 | 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: `jist` (lib) generated 74 warnings (run `cargo fix --lib -p jist` to apply 8 suggestions) [INFO] [stderr] warning: `jist` (lib test) generated 74 warnings (74 duplicates) [INFO] [stderr] warning: variable `result` is assigned to, but never used [INFO] [stderr] --> src/main.rs:113:13 [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] [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] [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] [stderr] --> src/main.rs:463:21 [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] [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.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jist-b5f0f81f137cfd3c) [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test compiler::complier_tests::test_operation_addition ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_divition ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_subtraction ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_multiplication ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_addition ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_subtraction ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_function_declaration ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_char_float ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_multiplication ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict_bool_string ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_divition ... 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 ... 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_float ... 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_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_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_string ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_int ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch_finally ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_char ... 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_parse_operator_addition ... ok [INFO] [stdout] test compiler::complier_tests::test_operation_subtraction ... 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_function_declaration ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_divition ... ok [INFO] [stdout] test compiler::complier_tests::test_parse_operator_multiplication ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_collection_assignment_dict ... 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 ... 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_operation_with_parethisis ... 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_collection_assignment_dict_char_float ... 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_call_char ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_char ... 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_variable_declaration_boolean_true ... 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_string ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_declaration_int ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch_finally ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_try_catch ... ok [INFO] [stdout] test statement_tokenizer::tests::tokenizer_tests::test_tokenize_variable_call_float ... ok [INFO] [stdout] test test_input_output::test_array_float_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_array_char_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_bool_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_char_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_boolean_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_array_int_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_array_boolean_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_float_variable_declaration ... ok [INFO] [stdout] test test_input_output::test_int_variable_declarations ... ok [INFO] [stdout] test test_input_output::test_empty_file ... ok [INFO] [stdout] test test_input_output::test_dict_int_char_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_single_line_comments ... ok [INFO] [stdout] test test_input_output::test_dict_string_float_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_variable_reassignment ... ok [INFO] [stdout] test test_input_output::test_dict_boolean_string_collection_declaration ... ok [INFO] [stdout] test test_input_output::test_string_variable_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_int_string_collection_declaration ... 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' (112) panicked at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/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\' (113) 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: 0x630508f3e362 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x630508f3e362 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x630508f3e362 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x630508f3e362 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x630508f60e7f - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x630508f60e7f - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x630508f2f543 - std::io::default_write_fmt::hdd5e6d67566e664d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x630508f2f543 - std::io::Write::write_fmt::haa2231cbd9aebf95 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/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: 0x630508e5444b - jist::compilers::function::parse_function_call::he52c016d0ea0c603 [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:224:26 [INFO] [stdout] 23: 0x630508e4f2cf - jist::compiler::compilers::route_to_parser::ha3cb79fe94d21078 [INFO] [stdout] at /opt/rustwide/workdir/src/compiler.rs:331:34 [INFO] [stdout] 24: 0x630508e29736 - jist::parse_file::h5ecb5692999e6aee [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:445:38 [INFO] [stdout] 25: 0x630508e26453 - jist::main::hffd4ea9530f68d58 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:596:21 [INFO] [stdout] 26: 0x630508e5cd1b - core::ops::function::FnOnce::call_once::h06de0bddaf412e4c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 27: 0x630508e5a06e - std::sys::backtrace::__rust_begin_short_backtrace::hebe7ab211bfed7b6 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 28: 0x630508e50701 - std::rt::lang_start::{{closure}}::hf5bc574866cab0db [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:206:18 [INFO] [stdout] 29: 0x630508f3e970 - core::ops::function::impls:: for &F>::call_once::h32dc2b2f49a48277 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 30: 0x630508f3e970 - std::panicking::catch_unwind::do_call::h3353546a38525559 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x630508f3e970 - std::panicking::catch_unwind::h57fb70202d1ae368 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 32: 0x630508f3e970 - std::panic::catch_unwind::h4b724a52bb5803b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 33: 0x630508f3e970 - std::rt::lang_start_internal::{{closure}}::h3724b3072c80532a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 34: 0x630508f3e970 - std::panicking::catch_unwind::do_call::h4f6e90f858bd1c3f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 35: 0x630508f3e970 - std::panicking::catch_unwind::h81c085c0d350991c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 36: 0x630508f3e970 - std::panic::catch_unwind::h289049af1176d82a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 37: 0x630508f3e970 - std::rt::lang_start_internal::h3c37ebeb799b11e1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 38: 0x630508e50757 - std::rt::lang_start::h030608ee6a7953d2 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:205:5 [INFO] [stdout] 39: 0x630508e2ea1e - main [INFO] [stdout] 40: 0x7cf35e0221ca - [INFO] [stdout] 41: 0x7cf35e02228b - __libc_start_main [INFO] [stdout] 42: 0x630508e13565 - _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\' (113) 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: 0x630508f3e362 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x630508f3e362 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x630508f3e362 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x630508f3e362 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x630508f60e7f - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x630508f60e7f - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x630508f2f543 - std::io::default_write_fmt::hdd5e6d67566e664d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x630508f2f543 - std::io::Write::write_fmt::haa2231cbd9aebf95 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/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: 0x630508e5444b - jist::compilers::function::parse_function_call::he52c016d0ea0c603 [INFO] [stdout] at /opt/rustwide/workdir/src/compilers/function.rs:224:26 [INFO] [stdout] 23: 0x630508e4f2cf - jist::compiler::compilers::route_to_parser::ha3cb79fe94d21078 [INFO] [stdout] at /opt/rustwide/workdir/src/compiler.rs:331:34 [INFO] [stdout] 24: 0x630508e29736 - jist::parse_file::h5ecb5692999e6aee [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:445:38 [INFO] [stdout] 25: 0x630508e26453 - jist::main::hffd4ea9530f68d58 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:596:21 [INFO] [stdout] 26: 0x630508e5cd1b - core::ops::function::FnOnce::call_once::h06de0bddaf412e4c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 27: 0x630508e5a06e - std::sys::backtrace::__rust_begin_short_backtrace::hebe7ab211bfed7b6 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 28: 0x630508e50701 - std::rt::lang_start::{{closure}}::hf5bc574866cab0db [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:206:18 [INFO] [stdout] 29: 0x630508f3e970 - core::ops::function::impls:: for &F>::call_once::h32dc2b2f49a48277 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 30: 0x630508f3e970 - std::panicking::catch_unwind::do_call::h3353546a38525559 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x630508f3e970 - std::panicking::catch_unwind::h57fb70202d1ae368 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 32: 0x630508f3e970 - std::panic::catch_unwind::h4b724a52bb5803b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 33: 0x630508f3e970 - std::rt::lang_start_internal::{{closure}}::h3724b3072c80532a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:175:24 [INFO] [stdout] 34: 0x630508f3e970 - std::panicking::catch_unwind::do_call::h4f6e90f858bd1c3f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 35: 0x630508f3e970 - std::panicking::catch_unwind::h81c085c0d350991c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 36: 0x630508f3e970 - std::panic::catch_unwind::h289049af1176d82a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 37: 0x630508f3e970 - std::rt::lang_start_internal::h3c37ebeb799b11e1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:171:5 [INFO] [stdout] 38: 0x630508e50757 - std::rt::lang_start::h030608ee6a7953d2 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/rt.rs:205:5 [INFO] [stdout] 39: 0x630508e2ea1e - main [INFO] [stdout] 40: 0x7cf35e0221ca - [INFO] [stdout] 41: 0x7cf35e02228b - __libc_start_main [INFO] [stdout] 42: 0x630508e13565 - _start [INFO] [stdout] 43: 0x0 - [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56d935455252 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56d935455252 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56d935455252 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x56d935455252 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x56d93547a06f - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x56d93547a06f - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x56d935441cd3 - std::io::default_write_fmt::h12bd533187bc883d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56d935441cd3 - std::io::Write::write_fmt::h926a1fdfdcb90065 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x56d9354550a2 - std::sys::backtrace::BacktraceLock::print::h28bfdbcac6d3828b [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x56d93544053c - std::panicking::default_hook::{{closure}}::h1f968e3a24b0e3b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x56d9354403b9 - std::panicking::default_hook::h43da101644971931 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x56d93538ea9e - as core::ops::function::Fn>::call::h4b2012949041da5d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x56d93538ea9e - test::test_main_with_exit_callback::{{closure}}::h53c9154cdc260357 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56d935440b43 - as core::ops::function::Fn>::call::h911f2e3e7e84b764 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x56d935440b43 - std::panicking::panic_with_hook::hb4e916c3e65eccec [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x56d935454c2a - std::panicking::panic_handler::{{closure}}::hbff715d0475cf1bd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x56d935454b89 - std::sys::backtrace::__rust_end_short_backtrace::hd6f43484e45a4955 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x56d9354410ad - __rustc[b29d3319de9a3146]::rust_begin_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x56d9354825e0 - core::panicking::panic_fmt::h5f8d281875be5ff1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x56d9353e4f80 - core::panicking::panic_display::he13ea7cb52a2a780 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:268:5 [INFO] [stdout] 20: 0x56d9353da2bb - assert_cmd::assert::AssertError::panic::panic_cold_display::h8646a20fea459ee0 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panic.rs:100:13 [INFO] [stdout] 21: 0x56d9353d9cc7 - assert_cmd::assert::AssertError::panic::h369e707c5c68f4fd [INFO] [stderr] error: test failed, to rerun pass `--bin jist` [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: 0x56d9353d62f7 - core::ops::function::FnOnce::call_once::ha20050c8cd29b945 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x56d9353e0284 - core::result::Result::unwrap_or_else::h0d9da4c4520a0922 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/result.rs:1612:23 [INFO] [stdout] 24: 0x56d9353da4a6 - assert_cmd::assert::Assert::success::hfa5abdb7a8f9a3b8 [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: 0x56d935373fc7 - jist::test_input_output::run_jist_command::h9a1d23c8466b6088 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:639:37 [INFO] [stdout] 26: 0x56d9353725f1 - jist::test_input_output::test_file_write::h4c09eec4850a6927 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:885:9 [INFO] [stdout] 27: 0x56d935373947 - jist::test_input_output::test_file_write::{{closure}}::h25b9da30b02e788a [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:883:25 [INFO] [stdout] 28: 0x56d935379916 - core::ops::function::FnOnce::call_once::hffa266091cec16e5 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 29: 0x56d935393fdb - core::ops::function::FnOnce::call_once::haf4e03bb51ef1351 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 30: 0x56d935393fdb - test::__rust_begin_short_backtrace::h50f5566ee84f2f21 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:663:18 [INFO] [stdout] 31: 0x56d9353971d5 - test::run_test_in_process::{{closure}}::heb3733b71d876eca [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:686:74 [INFO] [stdout] 32: 0x56d9353971d5 - as core::ops::function::FnOnce<()>>::call_once::he2fe41e1b161faa9 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 33: 0x56d9353971d5 - std::panicking::catch_unwind::do_call::h00aa383d8fd97a09 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 34: 0x56d9353971d5 - std::panicking::catch_unwind::he482e1914bc21641 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 35: 0x56d9353971d5 - std::panic::catch_unwind::h86ac9705098f4f22 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 36: 0x56d9353971d5 - test::run_test_in_process::h636a992821e3c6aa [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:686:27 [INFO] [stdout] 37: 0x56d9353971d5 - test::run_test::{{closure}}::he454cc9a192df79f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:607:43 [INFO] [stdout] 38: 0x56d9353bcb84 - test::run_test::{{closure}}::haec47455908dff86 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:637:41 [INFO] [stdout] 39: 0x56d9353bcb84 - std::sys::backtrace::__rust_begin_short_backtrace::h230785972524cdc1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 40: 0x56d9353a379a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::haa5a562db4cde838 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 41: 0x56d9353a379a - as core::ops::function::FnOnce<()>>::call_once::h89254f37a55d0a87 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 42: 0x56d9353a379a - std::panicking::catch_unwind::do_call::h499f5a462f019d9d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 43: 0x56d9353a379a - std::panicking::catch_unwind::h6736fbbb1a264383 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 44: 0x56d9353a379a - std::panic::catch_unwind::h49ea7bdd1cbee572 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 45: 0x56d9353a379a - std::thread::Builder::spawn_unchecked_::{{closure}}::h653dfa62acf32f5a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 46: 0x56d9353a379a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h82582a626a045a45 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 47: 0x56d93542a4ef - as core::ops::function::FnOnce>::call_once::h4ab26c07513156cc [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 48: 0x56d93542a4ef - std::sys::pal::unix::thread::Thread::new::thread_start::h66ff1bba185a50cf [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 49: 0x75679c0d9aa4 - [INFO] [stdout] 50: 0x75679c166a34 - 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.14s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "db709ae3f8b307beb3c8f7d0dcb7de42193f6d681c8d004e69a913af56b476c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db709ae3f8b307beb3c8f7d0dcb7de42193f6d681c8d004e69a913af56b476c2", kill_on_drop: false }` [INFO] [stdout] db709ae3f8b307beb3c8f7d0dcb7de42193f6d681c8d004e69a913af56b476c2