[INFO] cloning repository https://github.com/Meowu/rust-craft [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Meowu/rust-craft" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeowu%2Frust-craft", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeowu%2Frust-craft'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ebff6f91b71bfd4d0190bb484cd580f43dd10ff1 [INFO] checking Meowu/rust-craft against master#9c3064e131f4939cc95a29bb11413c49bbda1491 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeowu%2Frust-craft" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Meowu/rust-craft [INFO] finished tweaking git repo https://github.com/Meowu/rust-craft [INFO] tweaked toml for git repo https://github.com/Meowu/rust-craft written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Meowu/rust-craft on toolchain 9c3064e131f4939cc95a29bb11413c49bbda1491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Meowu/rust-craft 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" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f944189d280c0bafe85d05da3bef60ff43edd2b5a51bd517378b2accdc19ace8 [INFO] running `Command { std: "docker" "start" "-a" "f944189d280c0bafe85d05da3bef60ff43edd2b5a51bd517378b2accdc19ace8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f944189d280c0bafe85d05da3bef60ff43edd2b5a51bd517378b2accdc19ace8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f944189d280c0bafe85d05da3bef60ff43edd2b5a51bd517378b2accdc19ace8", kill_on_drop: false }` [INFO] [stdout] f944189d280c0bafe85d05da3bef60ff43edd2b5a51bd517378b2accdc19ace8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40ecb27d0014b51fafa7f67b7ee5b5289c376f8b13c875d832e449cb417db6c2 [INFO] running `Command { std: "docker" "start" "-a" "40ecb27d0014b51fafa7f67b7ee5b5289c376f8b13c875d832e449cb417db6c2", kill_on_drop: false }` [INFO] [stderr] Checking rust-craft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufReader`, `Error`, and `self` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, Error, Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/parser.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::expr::{self, BinaryOp, Literal, Stmt, Symbol, UnaryOp, UnaryOpType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/tree_interpreter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Error`, and `self` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, Error, Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/parser.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::expr::{self, BinaryOp, Literal, Stmt, Symbol, UnaryOp, UnaryOpType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/tree_interpreter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, Error, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, Error, Read, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/scanner.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(source: String) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/scanner.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(source: String) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanner` [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut scanner = crate::scanner::Scanner::new(content.clone()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:58:43 [INFO] [stdout] | [INFO] [stdout] 58 | let program = parser.parse().map_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanner` [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut scanner = crate::scanner::Scanner::new(content.clone()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:58:43 [INFO] [stdout] | [INFO] [stdout] 58 | let program = parser.parse().map_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut scanner = crate::scanner::Scanner::new(content.clone()); [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/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut scanner = crate::scanner::Scanner::new(content.clone()); [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: type `Environment` is more private than the item `Interpreter::env` [INFO] [stdout] --> src/tree_interpreter.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub env: Environment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `Interpreter::env` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/tree_interpreter.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | struct Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Environment` is more private than the item `Interpreter::env` [INFO] [stdout] --> src/tree_interpreter.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub env: Environment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `Interpreter::env` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Environment` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/tree_interpreter.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | struct Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/expr.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | Assign(Symbol, Box), [INFO] [stdout] | ------ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 - Assign(Symbol, Box), [INFO] [stdout] 3 + Assign((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/expr.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | Assign(Symbol, Box), [INFO] [stdout] | ------ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 3 - Assign(Symbol, Box), [INFO] [stdout] 3 + Assign((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Call`, `Get`, `Logical`, `Set`, `Super`, and `This` are never constructed [INFO] [stdout] --> src/expr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Call(Box, SourceLocation, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Get(Box, Symbol), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Logical(Box, LogicalOp, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | Set(Box, Symbol, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Super(SourceLocation, Symbol), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | This(SourceLocation), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line` and `col` are never read [INFO] [stdout] --> src/expr.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct SourceLocation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 35 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And` and `Or` are never constructed [INFO] [stdout] --> src/expr.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum LogicalOp { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 48 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Call`, `Get`, `Logical`, `Set`, `Super`, and `This` are never constructed [INFO] [stdout] --> src/expr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Call(Box, SourceLocation, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Get(Box, Symbol), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | Logical(Box, LogicalOp, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | Set(Box, Symbol, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Super(SourceLocation, Symbol), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | This(SourceLocation), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line` and `col` are never read [INFO] [stdout] --> src/expr.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct SourceLocation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 35 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `And` and `Or` are never constructed [INFO] [stdout] --> src/expr.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum LogicalOp { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 48 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 49 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogicalOp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `expected`, `found`, and `message` are never read [INFO] [stdout] --> src/parser.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | TokenMissmatch { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] 15 | expected: TokenType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | found: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | message: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `token_type`, `line`, and `col` are never read [INFO] [stdout] --> src/parser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | ExpectedExpression { [INFO] [stdout] | ------------------ fields in this variant [INFO] [stdout] 20 | token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `line` and `col` are never read [INFO] [stdout] --> src/parser.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | InvalidAssignment { [INFO] [stdout] | ----------------- fields in this variant [INFO] [stdout] 25 | line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedToken` is never constructed [INFO] [stdout] --> src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 13 | UnexpectedToken(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `synchronize` is never used [INFO] [stdout] --> src/parser.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Identifier` is never constructed [INFO] [stdout] --> src/scanner.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 58 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` 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: enum `RuntimeError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum RuntimeError {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum TypeError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NameError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum NameError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum ReferenceError {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LookupResult` is never used [INFO] [stdout] --> src/tree_interpreter.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum LookupResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lookup` and `get` are never used [INFO] [stdout] --> src/tree_interpreter.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn get(&self, symbol: &Symbol) -> Result<&Value, String> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `expected`, `found`, and `message` are never read [INFO] [stdout] --> src/parser.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | TokenMissmatch { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] 15 | expected: TokenType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | found: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | message: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `token_type`, `line`, and `col` are never read [INFO] [stdout] --> src/parser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | ExpectedExpression { [INFO] [stdout] | ------------------ fields in this variant [INFO] [stdout] 20 | token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `line` and `col` are never read [INFO] [stdout] --> src/parser.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | InvalidAssignment { [INFO] [stdout] | ----------------- fields in this variant [INFO] [stdout] 25 | line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedToken` is never constructed [INFO] [stdout] --> src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 13 | UnexpectedToken(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `synchronize` is never used [INFO] [stdout] --> src/parser.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Identifier` is never constructed [INFO] [stdout] --> src/scanner.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 58 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` 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: enum `RuntimeError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum RuntimeError {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum TypeError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NameError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum NameError {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceError` is never used [INFO] [stdout] --> src/tree_interpreter.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum ReferenceError {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LookupResult` is never used [INFO] [stdout] --> src/tree_interpreter.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum LookupResult<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `lookup` and `get` are never used [INFO] [stdout] --> src/tree_interpreter.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn get(&self, symbol: &Symbol) -> Result<&Value, String> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/tree_interpreter.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/tree_interpreter.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 68 | pub fn lookup(&self, symbol: &Symbol) -> LookupResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "40ecb27d0014b51fafa7f67b7ee5b5289c376f8b13c875d832e449cb417db6c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40ecb27d0014b51fafa7f67b7ee5b5289c376f8b13c875d832e449cb417db6c2", kill_on_drop: false }` [INFO] [stdout] 40ecb27d0014b51fafa7f67b7ee5b5289c376f8b13c875d832e449cb417db6c2