[INFO] cloning repository https://github.com/LaurensKubat/rust-lox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LaurensKubat/rust-lox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurensKubat%2Frust-lox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurensKubat%2Frust-lox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12f0540dfeca6450ac97a22f9b1eed6986e96a64 [INFO] checking LaurensKubat/rust-lox/12f0540dfeca6450ac97a22f9b1eed6986e96a64 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaurensKubat%2Frust-lox" "/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/LaurensKubat/rust-lox on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LaurensKubat/rust-lox [INFO] finished tweaking git repo https://github.com/LaurensKubat/rust-lox [INFO] tweaked toml for git repo https://github.com/LaurensKubat/rust-lox written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LaurensKubat/rust-lox 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b0e41a6a88c55d120d7e87e3cfacd89924f5beaac91cdf2ea243dd9e56b03f2 [INFO] running `Command { std: "docker" "start" "-a" "2b0e41a6a88c55d120d7e87e3cfacd89924f5beaac91cdf2ea243dd9e56b03f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b0e41a6a88c55d120d7e87e3cfacd89924f5beaac91cdf2ea243dd9e56b03f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b0e41a6a88c55d120d7e87e3cfacd89924f5beaac91cdf2ea243dd9e56b03f2", kill_on_drop: false }` [INFO] [stdout] 2b0e41a6a88c55d120d7e87e3cfacd89924f5beaac91cdf2ea243dd9e56b03f2 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb7d1fb775663be09f194c0a4f6bef837a651259dd0fa2d2df255e4af8746e22 [INFO] running `Command { std: "docker" "start" "-a" "bb7d1fb775663be09f194c0a4f6bef837a651259dd0fa2d2df255e4af8746e22", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.124 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking rust-lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::tokentype` [INFO] [stdout] --> src/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tokentype; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Literal` and `TokenType` [INFO] [stdout] --> src/ast.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokentype::{Literal, TokenType}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/ast.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{write, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Eof` [INFO] [stdout] --> src/scanner.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tokentype::TokenType::{Eof, Identifier}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/tokentype.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tokentype` [INFO] [stdout] --> src/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tokentype; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/ast.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{write, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Eof` [INFO] [stdout] --> src/scanner.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::tokentype::TokenType::{Eof, Identifier}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/tokentype.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | Expression::Assign { name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/ast.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | Expression::Assign { name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut expr = self.comparison(); [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut expr = self.term(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut expr = self.factor(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/scanner.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let c = self.advance(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | Expression::Assign { name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/ast.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | Expression::Assign { name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut expr = self.comparison(); [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut expr = self.term(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut expr = self.factor(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/ast.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Visitor` is never used [INFO] [stdout] --> src/ast.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | pub(crate) trait Visitor { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/interpreter.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Errors` is never used [INFO] [stdout] --> src/interpreter.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type Errors = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens` and `current` are never read [INFO] [stdout] --> src/interpreter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | tokens: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | current: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interpreter.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub(crate) fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn expression(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn equality(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn comparison(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn term(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn factor(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn unary(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn primary(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn check_and_consume(&mut self, token_types: &[TokenType]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn check(&self, token_type: &TokenType) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn consume(&mut self, expected: TokenType) -> Result<&Token, Errors> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn advance(&mut self) -> &Token { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn peek(&self) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn previous(&self) -> &Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interpreter` and `had_runtime_error` are never read [INFO] [stdout] --> src/lox.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Lox { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | pub interpreter: Interpreter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | pub had_error: bool, [INFO] [stdout] 7 | pub had_runtime_error: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/lox.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Lox { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) fn error(&mut self, line: usize, message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `line` are never read [INFO] [stdout] --> src/token.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 6 | pub(crate) kind: TokenType, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | pub(crate) line: 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: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/scanner.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let c = self.advance(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scanner.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let mut scanner = Scanner::new(source); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 8 | Assign { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | Call { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | Get { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | Logical { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | Set { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | Super { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | This { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | Unary { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | Variable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: enum `Error` is never used [INFO] [stdout] --> src/interpreter.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Errors` is never used [INFO] [stdout] --> src/interpreter.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type Errors = Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens` and `current` are never read [INFO] [stdout] --> src/interpreter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | tokens: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | current: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interpreter.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub(crate) fn parse(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn expression(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn equality(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn comparison(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn term(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn factor(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn unary(&mut self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn primary(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn check_and_consume(&mut self, token_types: &[TokenType]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn check(&self, token_type: &TokenType) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn consume(&mut self, expected: TokenType) -> Result<&Token, Errors> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn advance(&mut self) -> &Token { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn peek(&self) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn previous(&self) -> &Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `interpreter` and `had_runtime_error` are never read [INFO] [stdout] --> src/lox.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Lox { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | pub interpreter: Interpreter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | pub had_error: bool, [INFO] [stdout] 7 | pub had_runtime_error: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/lox.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Lox { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) fn error(&mut self, line: usize, message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line` is never read [INFO] [stdout] --> src/token.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub(crate) line: 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.69s [INFO] running `Command { std: "docker" "inspect" "bb7d1fb775663be09f194c0a4f6bef837a651259dd0fa2d2df255e4af8746e22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb7d1fb775663be09f194c0a4f6bef837a651259dd0fa2d2df255e4af8746e22", kill_on_drop: false }` [INFO] [stdout] bb7d1fb775663be09f194c0a4f6bef837a651259dd0fa2d2df255e4af8746e22