[INFO] cloning repository https://github.com/sandeshbhusal/blimp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sandeshbhusal/blimp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsandeshbhusal%2Fblimp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsandeshbhusal%2Fblimp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f621627ce23a6a4323f74d0db6bfeee83a3cb7b [INFO] checking sandeshbhusal/blimp against try#1f5783cbeb5da8b38566d718631d016891e9c912 for pr-142704 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsandeshbhusal%2Fblimp" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sandeshbhusal/blimp on toolchain 1f5783cbeb5da8b38566d718631d016891e9c912 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sandeshbhusal/blimp [INFO] finished tweaking git repo https://github.com/sandeshbhusal/blimp [INFO] tweaked toml for git repo https://github.com/sandeshbhusal/blimp written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sandeshbhusal/blimp 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" "+1f5783cbeb5da8b38566d718631d016891e9c912" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76db6c0071ac93668419d3967c7aab815ba6a2883c5668d55676429bab57f58a [INFO] running `Command { std: "docker" "start" "-a" "76db6c0071ac93668419d3967c7aab815ba6a2883c5668d55676429bab57f58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76db6c0071ac93668419d3967c7aab815ba6a2883c5668d55676429bab57f58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76db6c0071ac93668419d3967c7aab815ba6a2883c5668d55676429bab57f58a", kill_on_drop: false }` [INFO] [stdout] 76db6c0071ac93668419d3967c7aab815ba6a2883c5668d55676429bab57f58a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7ebfa0dc1e0262735155fbff08d5675aacdd5a7779be5d4aea4dc0bba64ccbb [INFO] running `Command { std: "docker" "start" "-a" "e7ebfa0dc1e0262735155fbff08d5675aacdd5a7779be5d4aea4dc0bba64ccbb", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cranelift-isle v0.113.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.113.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking cranelift-bitset v0.113.1 [INFO] [stderr] Compiling cranelift-codegen-meta v0.113.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking arbitrary v1.4.1 [INFO] [stderr] Checking cranelift-entity v0.113.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Checking rustc-hash v2.0.0 [INFO] [stderr] Checking slice-group-by v0.3.1 [INFO] [stderr] Checking cranelift-control v0.113.1 [INFO] [stderr] Checking cranelift-bforest v0.113.1 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Checking regalloc2 v0.10.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking wasmtime-jit-icache-coherence v26.0.1 [INFO] [stderr] Checking region v3.0.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking random v0.14.0 [INFO] [stderr] Checking fasteval v0.2.4 [INFO] [stderr] Compiling cranelift-codegen v0.113.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking cranelift-native v0.113.1 [INFO] [stderr] Checking cranelift-module v0.113.1 [INFO] [stderr] Checking cranelift-frontend v0.113.1 [INFO] [stderr] Checking cranelift-jit v0.113.1 [INFO] [stderr] Checking cranelift v0.113.1 [INFO] [stderr] Checking cranelift_eval v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fasteval::Compiler` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use fasteval::Compiler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fasteval::Evaler` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fasteval::Evaler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random::Source` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use random::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::*` [INFO] [stdout] --> src/codegen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fasteval::Compiler` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use fasteval::Compiler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fasteval::Evaler` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fasteval::Evaler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random::Source` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use random::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::*` [INFO] [stdout] --> src/codegen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/parser.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | Some(tok) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/parser.rs:427:17 [INFO] [stdout] | [INFO] [stdout] 427 | let mut parser = Parser { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 427 | let mut parser = Parser { [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: `op` [INFO] [stdout] --> src/typecheck.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typecheck.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | Stmt::ReturnStatement(expr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/interpreter.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | Expr::FuncCall { func_name, params } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `func_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/interpreter.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | Expr::FuncCall { func_name, params } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `params: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/interpreter.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand` [INFO] [stdout] --> src/interpreter.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `operand: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `interpreter::Environment` is more private than the item `Interpreter` [INFO] [stdout] --> src/interpreter.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Interpreter [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Interpreter` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but trait `interpreter::Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/interpreter.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `interpreter::Environment` is more private than the item `Interpreter` [INFO] [stdout] --> src/interpreter.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / impl Interpreter [INFO] [stdout] 30 | | where [INFO] [stdout] 31 | | T: Environment, [INFO] [stdout] | |___________________^ implementation `Interpreter` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but trait `interpreter::Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/interpreter.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RvalType` is never used [INFO] [stdout] --> src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | type RvalType = extern "C" fn(f64, f64) -> f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn compile() -> RvalType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE` is never used [INFO] [stdout] --> src/main.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const SIZE: usize = 100_000_000; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/lexer.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub(crate) struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGeneration` is never constructed [INFO] [stdout] --> src/codegen.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct CodeGeneration { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_truthy` is never used [INFO] [stdout] --> src/value.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl Value { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 112 | pub fn is_truthy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set` is never used [INFO] [stdout] --> src/interpreter.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 13 | fn get(&self, identifier: &str) -> Value; [INFO] [stdout] 14 | fn set(&mut self, identifier: &str, value: Value); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/parser.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | Some(tok) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/typecheck.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typecheck.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | Stmt::ReturnStatement(expr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/interpreter.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | Expr::FuncCall { func_name, params } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `func_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/interpreter.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | Expr::FuncCall { func_name, params } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `params: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/interpreter.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand` [INFO] [stdout] --> src/interpreter.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | Expr::Unary { op, operand } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `operand: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `interpreter::Environment` is more private than the item `Interpreter` [INFO] [stdout] --> src/interpreter.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Interpreter [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Interpreter` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but trait `interpreter::Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/interpreter.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `interpreter::Environment` is more private than the item `Interpreter` [INFO] [stdout] --> src/interpreter.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / impl Interpreter [INFO] [stdout] 30 | | where [INFO] [stdout] 31 | | T: Environment, [INFO] [stdout] | |___________________^ implementation `Interpreter` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but trait `interpreter::Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/interpreter.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RvalType` is never used [INFO] [stdout] --> src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | type RvalType = extern "C" fn(f64, f64) -> f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn compile() -> RvalType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE` is never used [INFO] [stdout] --> src/main.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | const SIZE: usize = 100_000_000; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | I32(i32), // Integer literal [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, 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] 24 - I32(i32), // Integer literal [INFO] [stdout] 24 + I32(()), // Integer literal [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | F32(f32), // Float literal [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, 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] 25 - F32(f32), // Float literal [INFO] [stdout] 25 + F32(()), // Float literal [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | Identifier(String), // Variable identifier [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, 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] 26 - Identifier(String), // Variable identifier [INFO] [stdout] 26 + Identifier(()), // Variable identifier [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `func_name` and `params` are never read [INFO] [stdout] --> src/ast.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | FuncCall { [INFO] [stdout] | -------- fields in this variant [INFO] [stdout] 28 | // Function call with name and parameters [INFO] [stdout] 29 | func_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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 `lhs`, `rhs`, and `op` are never read [INFO] [stdout] --> src/ast.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | Binary { [INFO] [stdout] | ------ fields in this variant [INFO] [stdout] 33 | // Binary expression with lhs, rhs and operator [INFO] [stdout] 34 | lhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | rhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | op: Op, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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 `op` and `operand` are never read [INFO] [stdout] --> src/ast.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | Unary { [INFO] [stdout] | ----- fields in this variant [INFO] [stdout] 39 | op: Op, [INFO] [stdout] | ^^ [INFO] [stdout] 40 | operand: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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 `func_name`, `params`, `return_type`, and `body` are never read [INFO] [stdout] --> src/ast.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 80 | FuncDecl { [INFO] [stdout] | -------- fields in this variant [INFO] [stdout] 81 | func_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 82 | params: ParamList, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | return_type: TypeDecl, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 84 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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 `cond`, `true_branch`, and `false_branch` are never read [INFO] [stdout] --> src/ast.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | IfStatement { [INFO] [stdout] | ----------- fields in this variant [INFO] [stdout] 88 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | true_branch: Box, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | false_branch: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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 `decl` and `init` are never read [INFO] [stdout] --> src/ast.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | LetStatement { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 94 | decl: VariableDeclaration, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | init: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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 `lvalue` and `rvalue` are never read [INFO] [stdout] --> src/ast.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 98 | SetStatement { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 99 | lvalue: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 100 | rvalue: Expr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.17s [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | Block(Vec), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, 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] 103 - Block(Vec), [INFO] [stdout] 103 + Block(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/ast.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 105 | WhileStatement { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] 106 | cond: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 107 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | ReturnStatement(Expr), [INFO] [stdout] | --------------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, 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] 110 - ReturnStatement(Expr), [INFO] [stdout] 110 + ReturnStatement(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PATTERN_MAP` is never used [INFO] [stdout] --> src/lexer.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static PATTERN_MAP: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/lexer.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 96 | pub(crate) struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lexer` is never used [INFO] [stdout] --> src/lexer.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn lexer(input: &str) -> Result, (Vec, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGeneration` is never constructed [INFO] [stdout] --> src/codegen.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct CodeGeneration { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variable_types`, `function_types`, and `function_params` are never read [INFO] [stdout] --> src/typecheck.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Environment { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub(crate) variable_types: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub(crate) function_types: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub(crate) function_params: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Environment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contexts` is never read [INFO] [stdout] --> src/typecheck.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TypeCheckInfo { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 15 | pub(crate) contexts: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `typecheck_expr`, and `typecheck_statement` are never used [INFO] [stdout] --> src/typecheck.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl TypeCheckInfo { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 19 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn typecheck_expr(&self, expr: &Expr) -> TypeDecl { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn typecheck_statement(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_truthy` is never used [INFO] [stdout] --> src/value.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl Value { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 112 | pub fn is_truthy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interpreter` is never constructed [INFO] [stdout] --> src/interpreter.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Interpreter [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Environment` is never used [INFO] [stdout] --> src/interpreter.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `eval_expr` are never used [INFO] [stdout] --> src/interpreter.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 29 | / impl Interpreter [INFO] [stdout] 30 | | where [INFO] [stdout] 31 | | T: Environment, [INFO] [stdout] | |___________________- associated items in this implementation [INFO] [stdout] 32 | { [INFO] [stdout] 33 | pub fn new(environment: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn eval_expr(&self, expr: Expr) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e7ebfa0dc1e0262735155fbff08d5675aacdd5a7779be5d4aea4dc0bba64ccbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7ebfa0dc1e0262735155fbff08d5675aacdd5a7779be5d4aea4dc0bba64ccbb", kill_on_drop: false }` [INFO] [stdout] e7ebfa0dc1e0262735155fbff08d5675aacdd5a7779be5d4aea4dc0bba64ccbb