[INFO] cloning repository https://github.com/sifear/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sifear/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsifear%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsifear%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8913a0403243035b3362c2c6a6fc0a3f017fbd5b [INFO] checking sifear/rlox against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsifear%2Frlox" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sifear/rlox 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/sifear/rlox [INFO] finished tweaking git repo https://github.com/sifear/rlox [INFO] tweaked toml for git repo https://github.com/sifear/rlox written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sifear/rlox 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] eafc7da750bc21886b7b978ab50f40c953d81306d2570a355a2dc1b06d8fd52d [INFO] running `Command { std: "docker" "start" "-a" "eafc7da750bc21886b7b978ab50f40c953d81306d2570a355a2dc1b06d8fd52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eafc7da750bc21886b7b978ab50f40c953d81306d2570a355a2dc1b06d8fd52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eafc7da750bc21886b7b978ab50f40c953d81306d2570a355a2dc1b06d8fd52d", kill_on_drop: false }` [INFO] [stdout] eafc7da750bc21886b7b978ab50f40c953d81306d2570a355a2dc1b06d8fd52d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 6a1cdbb9fea3a18bb331be741636bd089bb53f96ce38762e25b18385a7479f0d [INFO] running `Command { std: "docker" "start" "-a" "6a1cdbb9fea3a18bb331be741636bd089bb53f96ce38762e25b18385a7479f0d", kill_on_drop: false }` [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/parser/statement.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/parser/statement.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{borrow::BorrowMut, cell::RefCell, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/parser/statement.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/parser/statement.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{borrow::BorrowMut, cell::RefCell, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/expression.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | fn evaluate(&self, env: &Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/expression.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | fn evaluate(&self, env: &Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/expression.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let mut left = self.left.evaluate(env); [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: `err` [INFO] [stdout] --> src/parser/expression.rs:352:17 [INFO] [stdout] | [INFO] [stdout] 352 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/expression.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | fn evaluate(&self, env: &Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parser/statement.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | Err(err) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/statement.rs:205:28 [INFO] [stdout] | [INFO] [stdout] 205 | fn evaluate<'a>(&self, env: &'a Environment<'a>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | Some(token) => return self.var_declaration(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | Some(token) => return self.if_statement(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/expression.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | fn evaluate(&self, env: &Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | Some(token) => None, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/expression.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let mut left = self.left.evaluate(env); [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: `token` [INFO] [stdout] --> src/parser.rs:448:18 [INFO] [stdout] | [INFO] [stdout] 448 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parser/expression.rs:352:17 [INFO] [stdout] | [INFO] [stdout] 352 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/parser.rs:521:18 [INFO] [stdout] | [INFO] [stdout] 521 | Some(pos) => return Result::Ok(Box::new(Empty {})), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parser/statement.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | Err(err) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/parser.rs:842:18 [INFO] [stdout] | [INFO] [stdout] 842 | Some(a) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:852:30 [INFO] [stdout] | [INFO] [stdout] 852 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/parser/statement.rs:205:28 [INFO] [stdout] | [INFO] [stdout] 205 | fn evaluate<'a>(&self, env: &'a Environment<'a>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | Some(token) => return self.var_declaration(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | Some(token) => return self.if_statement(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | Some(token) => None, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/environment.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:448:18 [INFO] [stdout] | [INFO] [stdout] 448 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/scanner.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let tokens = match self.scan_tokens(0) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current` is assigned to, but never used [INFO] [stdout] --> src/scanner.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut current = start; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_current` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/parser.rs:521:18 [INFO] [stdout] | [INFO] [stdout] 521 | Some(pos) => return Result::Ok(Box::new(Empty {})), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/parser.rs:842:18 [INFO] [stdout] | [INFO] [stdout] 842 | Some(a) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:852:30 [INFO] [stdout] | [INFO] [stdout] 852 | Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/interpreter.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(value) => {}, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BinaryMissingLHS` is never constructed [INFO] [stdout] --> src/parser/parser_error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ParserErrorType { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | BinaryMissingLHS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserErrorType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is` is never used [INFO] [stdout] --> src/parser/statement.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl dyn Statement { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 16 | // Helper method to check the type [INFO] [stdout] 17 | fn is(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `had_errors` is never read [INFO] [stdout] --> src/scanner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Scanner<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | had_errors: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/scanner/token.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ComparisonInvalidOperator`, `ArithmeticInvalidOperator`, `IdentifierExpedcted`, and `InvalidAssignmentTarget` are never constructed [INFO] [stdout] --> src/interpreter/runtime_error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum RuntimeErrorType { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | ComparisonInvalidOperator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ArithmeticInvalidOperator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | IdentifierExpedcted, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | InvalidAssignmentTarget, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeErrorType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/environment.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | Some(val) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | self.consume(&TokenType::Semicolon); [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] 229 | let _ = self.consume(&TokenType::Semicolon); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | self.consume(&TokenType::Else); [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] 385 | let _ = self.consume(&TokenType::Else); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/scanner.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let tokens = match self.scan_tokens(0) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current` is assigned to, but never used [INFO] [stdout] --> src/scanner.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut current = start; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_current` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/interpreter.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(value) => {}, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BinaryMissingLHS` is never constructed [INFO] [stdout] --> src/parser/parser_error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ParserErrorType { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | BinaryMissingLHS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserErrorType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is` is never used [INFO] [stdout] --> src/parser/statement.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl dyn Statement { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 16 | // Helper method to check the type [INFO] [stdout] 17 | fn is(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `had_errors` is never read [INFO] [stdout] --> src/scanner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Scanner<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | had_errors: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/scanner/token.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ComparisonInvalidOperator`, `ArithmeticInvalidOperator`, `IdentifierExpedcted`, and `InvalidAssignmentTarget` are never constructed [INFO] [stdout] --> src/interpreter/runtime_error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum RuntimeErrorType { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | ComparisonInvalidOperator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ArithmeticInvalidOperator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | IdentifierExpedcted, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | InvalidAssignmentTarget, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeErrorType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | self.consume(&TokenType::Semicolon); [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] 229 | let _ = self.consume(&TokenType::Semicolon); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | self.consume(&TokenType::Else); [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] 385 | let _ = self.consume(&TokenType::Else); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "6a1cdbb9fea3a18bb331be741636bd089bb53f96ce38762e25b18385a7479f0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a1cdbb9fea3a18bb331be741636bd089bb53f96ce38762e25b18385a7479f0d", kill_on_drop: false }` [INFO] [stdout] 6a1cdbb9fea3a18bb331be741636bd089bb53f96ce38762e25b18385a7479f0d