[INFO] fetching crate jist 0.1.9... [INFO] checking jist-0.1.9 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate jist 0.1.9 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate jist 0.1.9 [INFO] finished tweaking crates.io crate jist 0.1.9 [INFO] tweaked toml for crates.io crate jist 0.1.9 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate jist 0.1.9 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93a6c365f9bfea1d2edc67b04bf5826b85484af69fb854fbfc6d84a0e3d8dfb8 [INFO] running `Command { std: "docker" "start" "-a" "93a6c365f9bfea1d2edc67b04bf5826b85484af69fb854fbfc6d84a0e3d8dfb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93a6c365f9bfea1d2edc67b04bf5826b85484af69fb854fbfc6d84a0e3d8dfb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93a6c365f9bfea1d2edc67b04bf5826b85484af69fb854fbfc6d84a0e3d8dfb8", kill_on_drop: false }` [INFO] [stdout] 93a6c365f9bfea1d2edc67b04bf5826b85484af69fb854fbfc6d84a0e3d8dfb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29ff7e2e1330750203cde59da495c2b5016b66f463cbe9b38473bb89c23fad7e [INFO] running `Command { std: "docker" "start" "-a" "29ff7e2e1330750203cde59da495c2b5016b66f463cbe9b38473bb89c23fad7e", 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 parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking predicates-core v1.0.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking predicates-tree v1.0.11 [INFO] [stderr] Checking predicates v3.1.2 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking crossterm v0.26.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking bstr v1.11.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/statement_tokenizer/tokenizer.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 282 | exit(1); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 312 | return none; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/function.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let result = f(&mut arg1.clone(), arg2.clone(), arg3.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/compiler.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let result = compile_dot_statement(expression); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:240:37 [INFO] [stdout] | [INFO] [stdout] 240 | ... index += 2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:249:29 [INFO] [stdout] | [INFO] [stdout] 249 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | ... index += 2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/compiler.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | ... index += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:36 [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:36 [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: `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: `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:13 [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:21 [INFO] [stdout] | [INFO] [stdout] 156 | let mut j = index; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | j += consumed; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/node.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | ASTNode::Try(t) => write!(f, "Try"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/node.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | ASTNode::Catch(c) => write!(f, "Catch"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/node.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | ASTNode::Finally(n) => write!(f, "Finally"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: 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: 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)]` (part of `#[warn(unused)]`) 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: `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: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:55 [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/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: unused variable: `args_a` [INFO] [stdout] --> src/token_type.rs:265:36 [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:36 [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: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:9 [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 `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: 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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(rust_2024_compatibility)]`) 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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `j` is assigned to, but never used [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:120:13 [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] [stderr] error: could not compile `jist` (lib test) due to 2 previous errors; 66 warnings emitted [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/statement_tokenizer/function_tokenizer.rs:156:21 [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] [stderr] warning: build failed, waiting for other jobs to finish... [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] error: this type will no longer be must used: Result [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | chars_read.try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | chars_read.try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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: `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: 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: 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)]` (part of `#[warn(unused)]`) 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: `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: value assigned to `evaluation_result` is never read [INFO] [stdout] --> src/compilers/loops.rs:96:55 [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/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: variable `parenthesis` is assigned to, but never used [INFO] [stdout] --> src/compilers/variable.rs:413:9 [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 `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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(rust_2024_compatibility)]`) 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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | chars_read.try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/statement_tokenizer/basic_tokenizer.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | chars_read.try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] [stderr] error: could not compile `jist` (lib) due to 2 previous errors; 66 warnings emitted [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] running `Command { std: "docker" "inspect" "29ff7e2e1330750203cde59da495c2b5016b66f463cbe9b38473bb89c23fad7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29ff7e2e1330750203cde59da495c2b5016b66f463cbe9b38473bb89c23fad7e", kill_on_drop: false }` [INFO] [stdout] 29ff7e2e1330750203cde59da495c2b5016b66f463cbe9b38473bb89c23fad7e