[INFO] cloning repository https://github.com/JosephPrichard/Equinox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JosephPrichard/Equinox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 970500f8f55f09e605d29ff1f50754540d12473c [INFO] checking JosephPrichard/Equinox/970500f8f55f09e605d29ff1f50754540d12473c against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JosephPrichard/Equinox on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JosephPrichard/Equinox [INFO] finished tweaking git repo https://github.com/JosephPrichard/Equinox [INFO] tweaked toml for git repo https://github.com/JosephPrichard/Equinox written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JosephPrichard/Equinox 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a270744c35968e3c4c04a0a56840b3e2b6c2654cc659dc3989ed557e0f662c96 [INFO] running `Command { std: "docker" "start" "-a" "a270744c35968e3c4c04a0a56840b3e2b6c2654cc659dc3989ed557e0f662c96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a270744c35968e3c4c04a0a56840b3e2b6c2654cc659dc3989ed557e0f662c96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a270744c35968e3c4c04a0a56840b3e2b6c2654cc659dc3989ed557e0f662c96", kill_on_drop: false }` [INFO] [stdout] a270744c35968e3c4c04a0a56840b3e2b6c2654cc659dc3989ed557e0f662c96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2f39d0fa002162fdd622370fc88ba8bf9c30a07c415c65e82f17c0366addc8c [INFO] running `Command { std: "docker" "start" "-a" "b2f39d0fa002162fdd622370fc88ba8bf9c30a07c415c65e82f17c0366addc8c", kill_on_drop: false }` [INFO] [stderr] Checking howdy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufReader` and `Cursor` [INFO] [stdout] --> src/parser.rs:202:19 [INFO] [stdout] | [INFO] [stdout] 202 | use std::io::{BufReader, Cursor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::Lexer` [INFO] [stdout] --> src/parser.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | use crate::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinopNode`, `Bop`, `DefFuncNode`, `DefStructNode`, `FuncNode`, `GuardNode`, `TypeNode`, and `WhileNode` [INFO] [stdout] --> src/parser.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | use crate::node::{BinopNode, WhileNode, Bop, DefFuncNode, GuardNode, FuncNode, TypeNode, DefStructNode}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Leq`, `Minus`, `Multiply`, and `Plus` [INFO] [stdout] --> src/parser.rs:205:28 [INFO] [stdout] | [INFO] [stdout] 205 | use crate::node::Bop::{Plus, Leq, Multiply, Minus}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::node::Const::Int` [INFO] [stdout] --> src/parser.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | use crate::node::Const::Int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Assign`, `Binop`, `Constant`, `DefFunc`, `DefStruct`, `Func`, `Guard`, `Return`, `Variable`, and `While` [INFO] [stdout] --> src/parser.rs:207:29 [INFO] [stdout] | [INFO] [stdout] 207 | use crate::node::Node::{Assign, Binop, Constant, DefFunc, DefStruct, Func, Guard, Return, Variable, While}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Parser` [INFO] [stdout] --> src/parser.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | use crate::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/lexer.rs:399:39 [INFO] [stdout] | [INFO] [stdout] 399 | use std::io::{BufRead, BufReader, Cursor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/lexer.rs:400:31 [INFO] [stdout] | [INFO] [stdout] 400 | use crate::lexer::{Lexer, Op, Token}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arrow`, `Assign`, `CharLit`, `Comma`, `Declare`, `Dot`, `Fn`, `Iden`, `IntLit`, `LBrace`, `LBracket`, `LParen`, `Operator`, `RBrace`, `RBracket`, `RParen`, `Return`, `SemiColon`, `StrLit`, `Struct`, and `While` [INFO] [stdout] --> src/lexer.rs:401:31 [INFO] [stdout] | [INFO] [stdout] 401 | ...::{Arrow, Assign, CharLit, Comma, Declare, Dot, Fn, Iden, IntLit, LBrace, LBracket, LParen, Operator, RBrace, RBracket, Return, RParen, SemiColon, StrLit, Struct, Whil... [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^ ^^^ ^^ ^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interpreter.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | Node::Variable(v) => panic!("Variable access not yet implemented"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | fn new(tokens: VecDeque) -> Parser { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn peek_token(&self) -> Option<&TokenContext> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn consume_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn advance_token(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn expect_token(&mut self, expected: Token) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn parse_program(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn parse_import(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_def_func(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn parse_type_pairs(&mut self, term: Token) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn parse_ret_type(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn parse_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn parse_fn_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn parse_def_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn parse_def_struct(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RunErr` is never used [INFO] [stdout] --> src/interpreter.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum RunErr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `undefined` is never used [INFO] [stdout] --> src/interpreter.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl RunErr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 13 | fn undefined(iden: &str) -> RunErr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StackFrame` is never used [INFO] [stdout] --> src/interpreter.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type StackFrame = Vec<(String, Const)>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `pop`, `top`, `write`, and `read` are never used [INFO] [stdout] --> src/interpreter.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 25 | pub fn push(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn top(&mut self) -> &mut StackFrame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn write(&mut self, iden: &str, constant: Const) -> Result<(), RunErr> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn read(&mut self, iden: &str) -> Result<&Const, RunErr> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ExprResult` is never used [INFO] [stdout] --> src/interpreter.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub type ExprResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_node` is never used [INFO] [stdout] --> src/interpreter.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn eval_node(node: &Node) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_binary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn eval_binary_expr(node: &BinopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_unary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn eval_unary_expr(node: &UnopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_func` is never used [INFO] [stdout] --> src/interpreter.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn eval_func(func: &FuncNode) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | DefFunc(DefFuncNode), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | DefStruct(DefStructNode), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | DefTypeAlias(DefTypeAliasNode), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | Import(ImportNode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Constant(Const), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Variable(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | Binop(BinopNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Unop(UnopNode), [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | CallFunc(FuncNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | If(IfNode), [INFO] [stdout] | ^^ [INFO] [stdout] 17 | Else(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Guard(GuardNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | While(WhileNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | For(ForNode), [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | Assign(String, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | Func(FuncNode), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Struct(StructNode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Tuple(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | Range(i32, i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | Lambda(LambdaNode) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Array`, `Fn`, and `Iden` are never constructed [INFO] [stdout] --> src/node.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum TypeNode { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 35 | Array(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Fn(Vec, Option>), [INFO] [stdout] | ^^ [INFO] [stdout] 37 | Iden(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, `Bool`, `Char`, and `String` are never constructed [INFO] [stdout] --> src/node.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 122 | pub enum Const { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 123 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 124 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Const` 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: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum Bop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 132 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 136 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 137 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 138 | Neq, [INFO] [stdout] | ^^^ [INFO] [stdout] 139 | Leq, [INFO] [stdout] | ^^^ [INFO] [stdout] 140 | Geq, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | Lt, [INFO] [stdout] | ^^ [INFO] [stdout] 142 | Gt, [INFO] [stdout] | ^^ [INFO] [stdout] 143 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Not` and `Minus` are never constructed [INFO] [stdout] --> src/node.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 148 | pub enum Uop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 149 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] 150 | Minus [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Uop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 33 | IntLit(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | FloatLit(f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | CharLit(char), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | StrLit(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | LParen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | RParen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | LBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | RBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 41 | LBrace, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | RBrace, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | Declare, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | Assign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | AssignOp(Aop), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | Operator(Op), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | Iden(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | True, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | False, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 52 | Fn, [INFO] [stdout] | ^^ [INFO] [stdout] 53 | Struct, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 54 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | For, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | In, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | Import, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 63 | Arrow, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum Op { [INFO] [stdout] | -- variants in this enum [INFO] [stdout] 68 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 70 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 73 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 74 | Neq, [INFO] [stdout] | ^^^ [INFO] [stdout] 75 | Leq, [INFO] [stdout] | ^^^ [INFO] [stdout] 76 | Geq, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | Lt, [INFO] [stdout] | ^^ [INFO] [stdout] 78 | Gt, [INFO] [stdout] | ^^ [INFO] [stdout] 79 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 80 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 81 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Plus`, `Exp`, `Minus`, `Multiply`, and `Divide` are never constructed [INFO] [stdout] --> src/lexer.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Aop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 86 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 87 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 89 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Aop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl Lexer { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 144 | pub fn new(reader: BufReader) -> Lexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn read(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn peek(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn consume(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn skip_spaces(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn match_escseq(c: char, term: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn match_control(&mut self, c: char, lpos: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn is_control(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn scan_text(&mut self, term: char) -> Result<(String, Position, Position), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn scan_char(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn scan_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | fn scan_number(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn scan_keyword(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn scan_special(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn read_token(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub fn read_tokens(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_tokens` is never used [INFO] [stdout] --> src/lexer.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 403 | fn lex_tokens(reader: BufReader) -> VecDeque { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expect_node` [INFO] [stdout] --> src/parser.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | let expect_node = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expect_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expect_node` [INFO] [stdout] --> src/parser.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | let expect_node = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expect_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interpreter.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | Node::Variable(v) => panic!("Variable access not yet implemented"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RunErr` is never used [INFO] [stdout] --> src/interpreter.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum RunErr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `undefined` is never used [INFO] [stdout] --> src/interpreter.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl RunErr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 13 | fn undefined(iden: &str) -> RunErr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StackFrame` is never used [INFO] [stdout] --> src/interpreter.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type StackFrame = Vec<(String, Const)>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `pop`, `top`, `write`, and `read` are never used [INFO] [stdout] --> src/interpreter.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 25 | pub fn push(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn top(&mut self) -> &mut StackFrame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn write(&mut self, iden: &str, constant: Const) -> Result<(), RunErr> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn read(&mut self, iden: &str) -> Result<&Const, RunErr> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ExprResult` is never used [INFO] [stdout] --> src/interpreter.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub type ExprResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_node` is never used [INFO] [stdout] --> src/interpreter.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn eval_node(node: &Node) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_binary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn eval_binary_expr(node: &BinopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_unary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn eval_unary_expr(node: &UnopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_func` is never used [INFO] [stdout] --> src/interpreter.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn eval_func(func: &FuncNode) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Unop(UnopNode), [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | CallFunc(FuncNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | If(IfNode), [INFO] [stdout] | ^^ [INFO] [stdout] 17 | Else(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | For(ForNode), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | Func(FuncNode), [INFO] [stdout] 26 | Struct(StructNode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Tuple(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | Range(i32, i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | Lambda(LambdaNode) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float`, `Bool`, `Char`, and `String` are never constructed [INFO] [stdout] --> src/node.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 122 | pub enum Const { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 123 | Int(i32), [INFO] [stdout] 124 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Const` 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: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum Bop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 132 | Plus, [INFO] [stdout] 133 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 137 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 138 | Neq, [INFO] [stdout] | ^^^ [INFO] [stdout] 139 | Leq, [INFO] [stdout] 140 | Geq, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | Lt, [INFO] [stdout] 142 | Gt, [INFO] [stdout] | ^^ [INFO] [stdout] 143 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Not` and `Minus` are never constructed [INFO] [stdout] --> src/node.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 148 | pub enum Uop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 149 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] 150 | Minus [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Uop` 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 `Not` is never constructed [INFO] [stdout] --> src/lexer.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum Op { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 81 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `Command { std: "docker" "inspect" "b2f39d0fa002162fdd622370fc88ba8bf9c30a07c415c65e82f17c0366addc8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2f39d0fa002162fdd622370fc88ba8bf9c30a07c415c65e82f17c0366addc8c", kill_on_drop: false }` [INFO] [stdout] b2f39d0fa002162fdd622370fc88ba8bf9c30a07c415c65e82f17c0366addc8c