[INFO] cloning repository https://github.com/luigimagdamit/chai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luigimagdamit/chai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluigimagdamit%2Fchai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluigimagdamit%2Fchai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 194860f6ac6b9fe7a753392ae3a9b623ce70654d [INFO] checking luigimagdamit/chai against try#099e089ab723e6ee96175f3496051098c60a4cd4 for pr-140208 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluigimagdamit%2Fchai" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luigimagdamit/chai on toolchain 099e089ab723e6ee96175f3496051098c60a4cd4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/luigimagdamit/chai [INFO] finished tweaking git repo https://github.com/luigimagdamit/chai [INFO] tweaked toml for git repo https://github.com/luigimagdamit/chai written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/luigimagdamit/chai 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" "+099e089ab723e6ee96175f3496051098c60a4cd4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scc v2.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6088d197f5b53c64271bcaf39e1aa5a433cd136a507ebb3c6c20a8492597d444 [INFO] running `Command { std: "docker" "start" "-a" "6088d197f5b53c64271bcaf39e1aa5a433cd136a507ebb3c6c20a8492597d444", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6088d197f5b53c64271bcaf39e1aa5a433cd136a507ebb3c6c20a8492597d444", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6088d197f5b53c64271bcaf39e1aa5a433cd136a507ebb3c6c20a8492597d444", kill_on_drop: false }` [INFO] [stdout] 6088d197f5b53c64271bcaf39e1aa5a433cd136a507ebb3c6c20a8492597d444 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+099e089ab723e6ee96175f3496051098c60a4cd4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3325a626eb6526b66432b897bc53a5758d9a1b19fc2b4f469d8e3c95a785c3b5 [INFO] running `Command { std: "docker" "start" "-a" "3325a626eb6526b66432b897bc53a5758d9a1b19fc2b4f469d8e3c95a785c3b5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking sdd v3.0.4 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking scc v2.2.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Checking serial_test v3.2.0 [INFO] [stderr] Checking chai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/parser.rs:45:51 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a>Parser <'a>{ [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 45 | pub fn init_parser(source: &'a str) -> Parser<'_> { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `expression::expr::DataType` and `parse_fn::statement` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | expression::expr::DataType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | parse_fn::statement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parser/conditional/while_statement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `expression::expr::DataType` and `parse_fn::statement` [INFO] [stdout] --> src/parser/conditional/while_statement.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | expression::expr::DataType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | parse_fn::statement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/jit/compile.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `llvm_main_close` [INFO] [stdout] --> src/jit/compile.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::llvm::llvm_print::{llvm_fmt_string_int, llvm_main_close, llvm_main_start, llvm_print_bool_declare, llvm_print_define, llvm_pri... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serial_test::serial` [INFO] [stdout] --> src/jit/test_jit.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use serial_test::serial; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::parser::Parser` [INFO] [stdout] --> src/jit/test_jit.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::jit::compile_test::jit_compile` [INFO] [stdout] --> src/jit/test_jit.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::jit::compile_test::jit_compile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/jit/test_jit.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/jit/compile_test.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/jit/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod compile_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `llvm_main_close` [INFO] [stdout] --> src/jit/compile_test.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::llvm::llvm_print::{llvm_fmt_string_int, llvm_main_close, llvm_main_start, llvm_print_bool_declare, llvm_print_define, llvm_pri... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/jit/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod compile_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `DataType`, `Operation`, and `StringConstant` [INFO] [stdout] --> src/codegen/codegen_print.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::expression::expr::{DataType, Binary, StringConstant, Expression, Operation, VariableExpression}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PrintStatement` [INFO] [stdout] --> src/codegen/codegen_print.rs:2:68 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::declaration::declaration::{VariableDeclaration, PrintStatement}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `Operation`, and `StringConstant` [INFO] [stdout] --> src/codegen/llvm_codegen.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::expression::expr::{DataType, Binary, StringConstant, Expression, Operation, VariableExpression}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PrintStatement` [INFO] [stdout] --> src/codegen/llvm_codegen.rs:2:68 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::declaration::declaration::{VariableDeclaration, PrintStatement}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/parser/parser.rs:45:51 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a>Parser <'a>{ [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 45 | pub fn init_parser(source: &'a str) -> Parser<'_> { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `expression::expr::DataType` and `parse_fn::statement` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | expression::expr::DataType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | parse_fn::statement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parser/conditional/while_statement.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `expression::expr::DataType` and `parse_fn::statement` [INFO] [stdout] --> src/parser/conditional/while_statement.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | expression::expr::DataType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | parse_fn::statement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/jit/compile.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `llvm_main_close` [INFO] [stdout] --> src/jit/compile.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::llvm::llvm_print::{llvm_fmt_string_int, llvm_main_close, llvm_main_start, llvm_print_bool_declare, llvm_print_define, llvm_pri... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/jit/test_jit.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/jit/compile_test.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `llvm_main_close` [INFO] [stdout] --> src/jit/compile_test.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::llvm::llvm_print::{llvm_fmt_string_int, llvm_main_close, llvm_main_start, llvm_print_bool_declare, llvm_print_define, llvm_pri... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `DataType`, `Operation`, and `StringConstant` [INFO] [stdout] --> src/codegen/codegen_print.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::expression::expr::{DataType, Binary, StringConstant, Expression, Operation, VariableExpression}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PrintStatement` [INFO] [stdout] --> src/codegen/codegen_print.rs:2:68 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::declaration::declaration::{VariableDeclaration, PrintStatement}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Binary`, `Operation`, and `StringConstant` [INFO] [stdout] --> src/codegen/llvm_codegen.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::expression::expr::{DataType, Binary, StringConstant, Expression, Operation, VariableExpression}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PrintStatement` [INFO] [stdout] --> src/codegen/llvm_codegen.rs:2:68 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::declaration::declaration::{VariableDeclaration, PrintStatement}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int` [INFO] [stdout] --> src/parser/expression/expr.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 37 | DataType::Integer(int) => "i32", [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bool` [INFO] [stdout] --> src/parser/expression/expr.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | DataType::Boolean(bool) => "i1", [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bool_reg` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:62:36 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn while_check_cond(&self, bool_reg: u32) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bool_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int` [INFO] [stdout] --> src/parser/expression/expr.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 37 | DataType::Integer(int) => "i32", [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bool` [INFO] [stdout] --> src/parser/expression/expr.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | DataType::Boolean(bool) => "i1", [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_clone` [INFO] [stdout] --> src/jit/compile.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let out_clone = stdout.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_clone` [INFO] [stdout] --> src/jit/compile_test.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let out_clone = stdout.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/jit/compile_test.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 68 | ... let res = stdout.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen/llvm_codegen.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | _ => panic!("Strings not supported for storing variables") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen/llvm_codegen.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 20 | DataType::Integer(_) => format!("store i32 {}, i32* %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 21 | DataType::Boolean(_) => format!("store i1 {}, i1* %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 22 | DataType::String(_) => format!("store i8* {}, i8** %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 23 | _ => panic!("Strings not supported for storing variables") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parser = &mut Parser::init_parser(&contents); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_operands` is never used [INFO] [stdout] --> src/parser/tests/test_ast.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn binary_operands(bin: Binary) -> (Expression, Expression) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_operand_value_int` is never used [INFO] [stdout] --> src/parser/tests/test_ast.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn test_operand_value_int(expr: Expression, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bool_reg` [INFO] [stdout] --> src/parser/conditional/if_statement.rs:62:36 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn while_check_cond(&self, bool_reg: u32) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bool_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/core/ast_node.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | Declaration(Declaration), [INFO] [stdout] | ----------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Declaration(Declaration), [INFO] [stdout] 7 + Declaration(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PARSE_CONSTANT_FOLD` is never used [INFO] [stdout] --> src/common/flags.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const PARSE_CONSTANT_FOLD: bool = false; // toggles constant folding in math operations such as 1 * 2 - 3 etc. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LlvmTempVar` is never constructed [INFO] [stdout] --> src/llvm/instructions.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LlvmTempVar { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LlvmExpression` is never used [INFO] [stdout] --> src/llvm/instructions.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum LlvmExpression { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chai_title` is never used [INFO] [stdout] --> src/jit/compile_test.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn chai_title() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jit_compile` is never used [INFO] [stdout] --> src/jit/compile_test.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn jit_compile(source: &str) -> io::Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `var_expr` is never used [INFO] [stdout] --> src/codegen/codegen_print.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait CodegenPrint { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn var_expr(expr: &VariableExpression) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn store() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 64 | impl InstructionType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 65 | fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | repl(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = repl(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | jit_compile(&contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = jit_compile(&contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_clone` [INFO] [stdout] --> src/jit/compile.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let out_clone = stdout.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_clone` [INFO] [stdout] --> src/jit/compile_test.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let out_clone = stdout.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/jit/compile_test.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 68 | ... let res = stdout.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/codegen/llvm_codegen.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | _ => panic!("Strings not supported for storing variables") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/codegen/llvm_codegen.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 20 | DataType::Integer(_) => format!("store i32 {}, i32* %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 21 | DataType::Boolean(_) => format!("store i1 {}, i1* %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 22 | DataType::String(_) => format!("store i8* {}, i8** %{}", expr.resolve_operand(), dec.name), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 23 | _ => panic!("Strings not supported for storing variables") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parser = &mut Parser::init_parser(&contents); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/core/ast_node.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | Declaration(Declaration), [INFO] [stdout] | ----------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Declaration(Declaration), [INFO] [stdout] 7 + Declaration(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LlvmTempVar` is never constructed [INFO] [stdout] --> src/llvm/instructions.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LlvmTempVar { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LlvmExpression` is never used [INFO] [stdout] --> src/llvm/instructions.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum LlvmExpression { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `var_expr` is never used [INFO] [stdout] --> src/codegen/codegen_print.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait CodegenPrint { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn var_expr(expr: &VariableExpression) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `store` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn store() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/codegen/llvm_codegen.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 64 | impl InstructionType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 65 | fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | repl(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = repl(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | jit_compile(&contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = jit_compile(&contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.03s [INFO] running `Command { std: "docker" "inspect" "3325a626eb6526b66432b897bc53a5758d9a1b19fc2b4f469d8e3c95a785c3b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3325a626eb6526b66432b897bc53a5758d9a1b19fc2b4f469d8e3c95a785c3b5", kill_on_drop: false }` [INFO] [stdout] 3325a626eb6526b66432b897bc53a5758d9a1b19fc2b4f469d8e3c95a785c3b5