[INFO] cloning repository https://github.com/olix3001/Arclight [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/olix3001/Arclight" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folix3001%2FArclight", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folix3001%2FArclight'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3e2eafe62869b02eaa34a35c54df728c0848e5d [INFO] checking olix3001/Arclight against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folix3001%2FArclight" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/olix3001/Arclight on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/olix3001/Arclight [INFO] finished tweaking git repo https://github.com/olix3001/Arclight [INFO] tweaked toml for git repo https://github.com/olix3001/Arclight written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/olix3001/Arclight 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/TheDan64/inkwell` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded llvm-sys v120.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5369568762dffe7fb174c42786f972d0882ea8efe5bea7c7b2aba62e7faff185 [INFO] running `Command { std: "docker" "start" "-a" "5369568762dffe7fb174c42786f972d0882ea8efe5bea7c7b2aba62e7faff185", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5369568762dffe7fb174c42786f972d0882ea8efe5bea7c7b2aba62e7faff185", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5369568762dffe7fb174c42786f972d0882ea8efe5bea7c7b2aba62e7faff185", kill_on_drop: false }` [INFO] [stdout] 5369568762dffe7fb174c42786f972d0882ea8efe5bea7c7b2aba62e7faff185 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c19b987b986ba85c616cd55b81047239d8308dbed7f6412eed99bceb64c29fd [INFO] running `Command { std: "docker" "start" "-a" "8c19b987b986ba85c616cd55b81047239d8308dbed7f6412eed99bceb64c29fd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling inkwell v0.1.0 (https://github.com/TheDan64/inkwell?branch=master#25b9fc58) [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling inkwell_internals v0.5.0 (https://github.com/TheDan64/inkwell?branch=master#25b9fc58) [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling pest v2.3.0 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling llvm-sys v120.2.4 [INFO] [stderr] Checking arclight v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `basic_block::BasicBlock` and `values::AnyValueEnum` [INFO] [stdout] --> src/parser/expressions/mod.rs:1:67 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::{builder::Builder, module::Module, context::Context, values::AnyValueEnum, basic_block::BasicBlock }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/parser/expressions/mod.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{lexer::lexer::{Token, TokenType}, utils::error::Error}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_expression::FunctionExpr` [INFO] [stdout] --> src/parser/expressions/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use self::{function_expression::FunctionExpr, scope::ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/expressions/function_expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_expression::FunctionExpr` [INFO] [stdout] --> src/parser/expressions/block_expression.rs:3:62 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Parseable, ASTExpr, basic_expression::BasicExpr, function_expression::FunctionExpr, scope::ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyValueEnum` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::values::{AnyValueEnum, AnyValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_types::ToAny` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{Parseable, ASTExpr, data_types::ToAny, ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntValue` [INFO] [stdout] --> src/parser/expressions/math_expression.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use inkwell::values::{AnyValueEnum, IntValue}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/utils/error_components/name_component.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `basic_block::BasicBlock` and `values::AnyValueEnum` [INFO] [stdout] --> src/parser/expressions/mod.rs:1:67 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::{builder::Builder, module::Module, context::Context, values::AnyValueEnum, basic_block::BasicBlock }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/parser/expressions/mod.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{lexer::lexer::{Token, TokenType}, utils::error::Error}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_expression::FunctionExpr` [INFO] [stdout] --> src/parser/expressions/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use self::{function_expression::FunctionExpr, scope::ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:113:32 [INFO] [stdout] | [INFO] [stdout] 113 | use crate::{lexer::lexer::{Token, TokenType}, parser::expressions::Parseable, test_token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/expressions/function_expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_expression::FunctionExpr` [INFO] [stdout] --> src/parser/expressions/block_expression.rs:3:62 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Parseable, ASTExpr, basic_expression::BasicExpr, function_expression::FunctionExpr, scope::ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyValueEnum` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::values::{AnyValueEnum, AnyValue}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_types::ToAny` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{Parseable, ASTExpr, data_types::ToAny, ScopeManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntValue` [INFO] [stdout] --> src/parser/expressions/math_expression.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use inkwell::values::{AnyValueEnum, IntValue}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/utils/error_components/name_component.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/expressions/scope.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut global = Scope::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | fn generate<'a, 'b>(&self, context: &'a Context, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option<... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | fn generate<'a, 'b>(&self, context: &'a Context, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option<... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:75 [INFO] [stdout] | [INFO] [stdout] 20 | ...ntext, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sm` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:98 [INFO] [stdout] | [INFO] [stdout] 20 | ...dule<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/parser/expressions/mod.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse(tokens: &Vec, pos: &mut usize) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/parser/expressions/mod.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse(tokens: &Vec, pos: &mut usize) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | fn generate<'a, 'b>(&self, context: &'a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &Builder, scope_man... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:72 [INFO] [stdout] | [INFO] [stdout] 104 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Opti... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:110 [INFO] [stdout] | [INFO] [stdout] 104 | ...nkwell::module::Module<'a>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope_manager` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:129 [INFO] [stdout] | [INFO] [stdout] 104 | ...>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scope_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `return_type` is never read [INFO] [stdout] --> src/parser/expressions/function_expression.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut return_type: DataType = DataType::Void; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/parser/expressions/variable_definition_expression.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | TokenType::Identifier(ref s) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:86:72 [INFO] [stdout] | [INFO] [stdout] 86 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::Builder, scope_manager: &'b mut ScopeMa... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:86:110 [INFO] [stdout] | [INFO] [stdout] 86 | ...nkwell::module::Module<'a>, builder: &inkwell::builder::Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option src/parser/expressions/literal_expression.rs:86:147 [INFO] [stdout] | [INFO] [stdout] 86 | ...ll::builder::Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scope_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 91 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/expressions/scope.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut global = Scope::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | fn generate<'a, 'b>(&self, context: &'a Context, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option<... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | fn generate<'a, 'b>(&self, context: &'a Context, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option<... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:75 [INFO] [stdout] | [INFO] [stdout] 20 | ...ntext, module: &Module<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sm` [INFO] [stdout] --> src/parser/expressions/mod.rs:20:98 [INFO] [stdout] | [INFO] [stdout] 20 | ...dule<'a>, builder: &Builder<'a>, sm: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/parser/expressions/mod.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse(tokens: &Vec, pos: &mut usize) -> Result, Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/parser/expressions/mod.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse(tokens: &Vec, pos: &mut usize) -> Result, Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | fn generate<'a, 'b>(&self, context: &'a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &Builder, scope_man... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:72 [INFO] [stdout] | [INFO] [stdout] 104 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Opti... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:110 [INFO] [stdout] | [INFO] [stdout] 104 | ...nkwell::module::Module<'a>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope_manager` [INFO] [stdout] --> src/parser/expressions/import_expression.rs:104:129 [INFO] [stdout] | [INFO] [stdout] 104 | ...>, builder: &Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scope_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser/expressions/data_types.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 138 | AnyTypeEnum::VoidType(t) => t.fn_type(types.as_slice(), isVarArgs), [INFO] [stdout] | ------------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 143 | AnyTypeEnum::VoidType(t) => t.fn_type(types.as_slice(), isVarArgs), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `return_type` is never read [INFO] [stdout] --> src/parser/expressions/function_expression.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut return_type: DataType = DataType::Void; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:28:32 [INFO] [stdout] | [INFO] [stdout] 28 | fn generate<'a, 'b>(&self, context: &'a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:28:72 [INFO] [stdout] | [INFO] [stdout] 28 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::Builder<'a>, scope_manager: &'b mut Sco... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/parser/expressions/variable_definition_expression.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | TokenType::Identifier(ref s) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Error` is never constructed [INFO] [stdout] --> src/lexer/mod.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 30 | enum LexerState { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexerState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block` is never read [INFO] [stdout] --> src/parser/expressions/scope.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Scope<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub block: Option>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `function` and `block` are never read [INFO] [stdout] --> src/parser/expressions/scope.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ScopeManager<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub function: Option<&'a FunctionValue<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | pub block: Option<&'a BasicBlock<'a>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScopeManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_any` is never used [INFO] [stdout] --> src/parser/expressions/data_types.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAny { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 167 | fn to_any(&self) -> AnyValueEnum; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_expr` is never used [INFO] [stdout] --> src/parser/parser.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | fn parse_expr(&mut self) -> Result, Error> where T: Parseable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LexerError` is never constructed [INFO] [stdout] --> src/utils/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 5 | LexerError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isVarArgs` should have a snake case name [INFO] [stdout] --> src/parser/expressions/data_types.rs:129:79 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn into_fn_type<'a>(&self, context: &'a Context, args: Vec, isVarArgs: bool) -> FunctionType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_var_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:86:72 [INFO] [stdout] | [INFO] [stdout] 86 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::Builder, scope_manager: &'b mut ScopeMa... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/parser/expressions/literal_expression.rs:86:110 [INFO] [stdout] | [INFO] [stdout] 86 | ...nkwell::module::Module<'a>, builder: &inkwell::builder::Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option src/parser/expressions/literal_expression.rs:86:147 [INFO] [stdout] | [INFO] [stdout] 86 | ...ll::builder::Builder, scope_manager: &'b mut ScopeManager<'a>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scope_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 91 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/parser/expressions/data_types.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | DataType::Custom(dt, v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser/expressions/data_types.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 138 | AnyTypeEnum::VoidType(t) => t.fn_type(types.as_slice(), isVarArgs), [INFO] [stdout] | ------------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 143 | AnyTypeEnum::VoidType(t) => t.fn_type(types.as_slice(), isVarArgs), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:28:32 [INFO] [stdout] | [INFO] [stdout] 28 | fn generate<'a, 'b>(&self, context: &'a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/parser/expressions/variable_expression.rs:28:72 [INFO] [stdout] | [INFO] [stdout] 28 | ...a inkwell::context::Context, module: &inkwell::module::Module<'a>, builder: &inkwell::builder::Builder<'a>, scope_manager: &'b mut Sco... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Error` is never constructed [INFO] [stdout] --> src/lexer/mod.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 30 | enum LexerState { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexerState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block` is never read [INFO] [stdout] --> src/parser/expressions/scope.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Scope<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub block: Option>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `function` and `block` are never read [INFO] [stdout] --> src/parser/expressions/scope.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ScopeManager<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub function: Option<&'a FunctionValue<'a>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | pub block: Option<&'a BasicBlock<'a>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScopeManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_any` is never used [INFO] [stdout] --> src/parser/expressions/data_types.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAny { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 167 | fn to_any(&self) -> AnyValueEnum; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_expr` is never used [INFO] [stdout] --> src/parser/parser.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | fn parse_expr(&mut self) -> Result, Error> where T: Parseable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LexerError` is never constructed [INFO] [stdout] --> src/utils/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 5 | LexerError, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isVarArgs` should have a snake case name [INFO] [stdout] --> src/parser/expressions/data_types.rs:129:79 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn into_fn_type<'a>(&self, context: &'a Context, args: Vec, isVarArgs: bool) -> FunctionType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_var_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.91s [INFO] running `Command { std: "docker" "inspect" "8c19b987b986ba85c616cd55b81047239d8308dbed7f6412eed99bceb64c29fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c19b987b986ba85c616cd55b81047239d8308dbed7f6412eed99bceb64c29fd", kill_on_drop: false }` [INFO] [stdout] 8c19b987b986ba85c616cd55b81047239d8308dbed7f6412eed99bceb64c29fd