[INFO] cloning repository https://github.com/Jengamon/SolomonLang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jengamon/SolomonLang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJengamon%2FSolomonLang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJengamon%2FSolomonLang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e677cdbafaea08bca5238c2715dfe40e43da237 [INFO] checking Jengamon/SolomonLang/3e677cdbafaea08bca5238c2715dfe40e43da237 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJengamon%2FSolomonLang" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jengamon/SolomonLang 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/Jengamon/SolomonLang [INFO] finished tweaking git repo https://github.com/Jengamon/SolomonLang [INFO] tweaked toml for git repo https://github.com/Jengamon/SolomonLang written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Jengamon/SolomonLang 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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 666cce6b2fdc77648939e2e4460544f0be0e333261492b83461dd5a56a625c99 [INFO] running `Command { std: "docker" "start" "-a" "666cce6b2fdc77648939e2e4460544f0be0e333261492b83461dd5a56a625c99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "666cce6b2fdc77648939e2e4460544f0be0e333261492b83461dd5a56a625c99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "666cce6b2fdc77648939e2e4460544f0be0e333261492b83461dd5a56a625c99", kill_on_drop: false }` [INFO] [stdout] 666cce6b2fdc77648939e2e4460544f0be0e333261492b83461dd5a56a625c99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] f0a3feb45d9978dc863527e0186f4e0fdde2c12263ff9a84abf159af03d5aae4 [INFO] running `Command { std: "docker" "start" "-a" "f0a3feb45d9978dc863527e0186f4e0fdde2c12263ff9a84abf159af03d5aae4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking solomon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Expr` and `Stat` [INFO] [stdout] --> src/parser/pretty_print.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use parser::{Expr, Stat, ExprVisitor, StatVisitor, Literal}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Expr` and `Literal` [INFO] [stdout] --> src/interp.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use parser::{Expr, Stat, ExprMutVisitor, StatMutVisitor, [INFO] [stdout] | ^^^^ [INFO] [stdout] 2 | Assignment, Modification, Expression, Literal, ELiteral, NewObject, Unary, Binary, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/interp.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use lexer::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/interp.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Interpreter` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/interp.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vec` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/var_store.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | impl PartialEq for SolomonCallable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | impl PartialEq for dyn SolomonCallable { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Expr` and `Stat` [INFO] [stdout] --> src/parser/pretty_print.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use parser::{Expr, Stat, ExprVisitor, StatVisitor, Literal}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Expr` and `Literal` [INFO] [stdout] --> src/interp.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use parser::{Expr, Stat, ExprMutVisitor, StatMutVisitor, [INFO] [stdout] | ^^^^ [INFO] [stdout] 2 | Assignment, Modification, Expression, Literal, ELiteral, NewObject, Unary, Binary, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/interp.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use lexer::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/interp.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Interpreter` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/interp.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Vec` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/mod.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | type PrefixParslet = Box Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | type PrefixParslet = Box Result>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/mod.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | type InfixParslet = (Box Result>, Precedence); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | type InfixParslet = (Box Result>, Precedence); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = dyn Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | fn eq(&self, o: &SolomonCallable) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 | fn eq(&self, o: &dyn SolomonCallable) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/var_store.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | impl PartialEq for SolomonCallable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | impl PartialEq for dyn SolomonCallable { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/mod.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | type PrefixParslet = Box Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | type PrefixParslet = Box Result>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/mod.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | type InfixParslet = (Box Result>, Precedence); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | type InfixParslet = (Box Result>, Precedence); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = dyn Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interp.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | fn eq(&self, o: &SolomonCallable) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 | fn eq(&self, o: &dyn SolomonCallable) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/lexer/mod.rs:140:22 [INFO] [stdout] | [INFO] [stdout] 140 | Some(r@'_') | Some(r@'@') | Some(r@'!') | Some(r@'?') => { s.push(self.next_char().unwrap()) }, [INFO] [stdout] | ^ ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 140 | Some(_r@'_') | Some(_r@'@') | Some(_r@'!') | Some(_r@'?') => { s.push(self.next_char().unwrap()) }, [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long` [INFO] [stdout] --> src/parser/mod.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | (Ok(long), Ok(short)) => Ok(expr::Literal::new(Literal::Integer(short), t)), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_long` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:160:65 [INFO] [stdout] | [INFO] [stdout] 160 | TokenType::LBrace => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:179:65 [INFO] [stdout] | [INFO] [stdout] 179 | TokenType::LParen => Some(Box::new(|p: &mut Parser, t:Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:184:62 [INFO] [stdout] | [INFO] [stdout] 184 | TokenType::Fun => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:208:67 [INFO] [stdout] | [INFO] [stdout] 208 | TokenType::LBracket => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/parser/mod.rs:241:69 [INFO] [stdout] | [INFO] [stdout] 241 | TokenType::ThinArrow => Some((Box::new(|p: &mut Parser, r: Precedence, t: Token, l: Expr| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:241:84 [INFO] [stdout] | [INFO] [stdout] 241 | TokenType::ThinArrow => Some((Box::new(|p: &mut Parser, r: Precedence, t: Token, l: Expr| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tt` [INFO] [stdout] --> src/parser/mod.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | tt => Ok(stat::Expression::new(left)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_name` [INFO] [stdout] --> src/interp.rs:60:45 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn submit>(&mut self, mod_name: S, p: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modification` [INFO] [stdout] --> src/interp.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | fn visit_modification(&mut self, modification: Modification) -> () {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/interp.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | fn visit_expression(&mut self, expression: Expression) -> () {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newobject` [INFO] [stdout] --> src/interp.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 79 | fn visit_newobject(&mut self, newobject: NewObject) -> () {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newobject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/interp.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | fn visit_literal(&mut self, literal: ELiteral) -> () {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unary` [INFO] [stdout] --> src/interp.rs:81:31 [INFO] [stdout] | [INFO] [stdout] 81 | fn visit_unary(&mut self, unary: Unary) -> () {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/interp.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | fn visit_binary(&mut self, binary: Binary) -> () {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grouping` [INFO] [stdout] --> src/interp.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | fn visit_grouping(&mut self, grouping: Grouping) -> () {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grouping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/interp.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | fn visit_function(&mut self, function: Function) -> () {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interp.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_block(&mut self, block: Block) -> () {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functioncall` [INFO] [stdout] --> src/interp.rs:86:38 [INFO] [stdout] | [INFO] [stdout] 86 | fn visit_functioncall(&mut self, functioncall: FunctionCall) -> () {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_functioncall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/lexer/mod.rs:140:22 [INFO] [stdout] | [INFO] [stdout] 140 | Some(r@'_') | Some(r@'@') | Some(r@'!') | Some(r@'?') => { s.push(self.next_char().unwrap()) }, [INFO] [stdout] | ^ ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 140 | Some(_r@'_') | Some(_r@'@') | Some(_r@'!') | Some(_r@'?') => { s.push(self.next_char().unwrap()) }, [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut lexer = lexer::Lexer::new(text.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:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut parser = parser::Parser::new(lexer.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Atom` is more private than the item `parser::Literal::Atom::0` [INFO] [stdout] --> src/parser/mod.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | Atom(Atom), [INFO] [stdout] | ^^^^ field `parser::Literal::Atom::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Atom` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct Atom(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Atom` is more private than the item `Type::Atom::0` [INFO] [stdout] --> src/parser/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | Atom(Atom), // Type only has the value in it of $ [INFO] [stdout] | ^^^^ field `Type::Atom::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Atom` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct Atom(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer/token.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Identifier, Integer, Float, String, Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | AnyType, VoidType, IntType, StringType, FloatType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Bang, // ! [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | BangEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | LessThan, GreaterThan, LessEqual, GreaterEqual, // < > <= >= [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float`, `String`, and `Atom` are never constructed [INFO] [stdout] --> src/parser/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 44 | Float(i64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | Atom(Atom), [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: variants `Float`, `String`, `Atom`, and `Any` are never constructed [INFO] [stdout] --> src/parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 52 | Int, [INFO] [stdout] 53 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | Atom(Atom), // Type only has the value in it of $ [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Any, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `0` is never read [INFO] [stdout] --> src/parser/mod.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | SingleArg(Box), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Arguments` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 63 | SingleArg(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/mod.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | Args(HashMap) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Arguments` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 | Args(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dispose` is never used [INFO] [stdout] --> src/parser/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn dispose(&mut self, prec: F) where F: Fn(TokenType) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unary` is never constructed [INFO] [stdout] --> src/parser/expr.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Unary(Unary), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: multiple methods are never used [INFO] [stdout] --> src/parser/expr.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl Expr { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 39 | pub fn is_newobject(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn as_newobject(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn is_literal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn as_literal(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_unary(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn as_unary(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_binary(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn as_binary(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn is_grouping(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn as_grouping(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn is_function(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn as_function(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn is_block(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn as_block(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn is_functioncall(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn as_functioncall(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/parser/expr.rs:149:7 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct NewObject { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 149 | pub map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewObject` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 153 | impl NewObject { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 154 | pub fn new_naked(map: HashMap,) -> NewObject { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn boxed_new_naked(map: HashMap,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn boxed_new(map: HashMap,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/parser/expr.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Literal { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 185 | pub literal: PLiteral, [INFO] [stdout] 186 | pub token: Token, [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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 190 | impl Literal { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 191 | pub fn new_naked(literal: PLiteral,token: Token,) -> Literal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn boxed_new_naked(literal: PLiteral,token: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn boxed_new(literal: PLiteral,token: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, `new`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:236:10 [INFO] [stdout] | [INFO] [stdout] 235 | impl Unary { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 236 | pub fn new_naked(op: Token,value: Box,) -> Unary { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn boxed_new_naked(op: Token,value: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn new(op: Token,value: Box,) -> Expr { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn boxed_new(op: Token,value: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:282:10 [INFO] [stdout] | [INFO] [stdout] 281 | impl Binary { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 282 | pub fn new_naked(op: Token,lhs: Box,rhs: Box,) -> Binary { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn boxed_new_naked(op: Token,lhs: Box,rhs: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn boxed_new(op: Token,lhs: Box,rhs: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 333 | impl Grouping { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 334 | pub fn new_naked(expr: Box,) -> Grouping { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn boxed_new_naked(expr: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | pub fn boxed_new(expr: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_method` is never read [INFO] [stdout] --> src/parser/expr.rs:368:7 [INFO] [stdout] | [INFO] [stdout] 364 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 368 | pub is_method: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 372 | impl Function { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 373 | pub fn new_naked(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Function { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn boxed_new_naked(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn boxed_new(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 432 | impl Block { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 433 | pub fn new_naked(body: Vec,) -> Block { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 440 | pub fn boxed_new_naked(body: Vec,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn boxed_new(body: Vec,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `args` and `as_type` are never read [INFO] [stdout] --> src/parser/expr.rs:465:7 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct FunctionCall { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 464 | pub target: Box, [INFO] [stdout] 465 | pub args: Arguments, [INFO] [stdout] | ^^^^ [INFO] [stdout] 466 | pub as_type: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionCall` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:471:10 [INFO] [stdout] | [INFO] [stdout] 470 | impl FunctionCall { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 471 | pub fn new_naked(target: Box,args: Arguments,as_type: Option,) -> FunctionCall { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn boxed_new_naked(target: Box,args: Arguments,as_type: Option,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn boxed_new(target: Box,args: Arguments,as_type: Option,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_expr_box` is never used [INFO] [stdout] --> src/parser/expr.rs:582:6 [INFO] [stdout] | [INFO] [stdout] 557 | pub trait ExprMutVisitor { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 582 | fn visit_expr_box(&mut self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_assignment`, `as_assignment`, `is_modification`, `as_modification`, `is_expression`, and `as_expression` are never used [INFO] [stdout] --> src/parser/stat.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 32 | impl Stat { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 33 | pub fn is_assignment(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_assignment(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_modification(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_modification(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn is_expression(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn as_expression(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/parser/stat.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Assignment { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 80 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assignment` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 84 | impl Assignment { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 85 | pub fn new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Assignment { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn boxed_new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn boxed_new(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/parser/stat.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Modification { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 134 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Modification` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 138 | impl Modification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 139 | pub fn new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Modification { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn boxed_new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn boxed_new(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 190 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 191 | pub fn new_naked(expr: Expr,) -> Expression { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn boxed_new_naked(expr: Expr,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn boxed_new(expr: Expr,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_stat_box` is never used [INFO] [stdout] --> src/parser/stat.rs:236:6 [INFO] [stdout] | [INFO] [stdout] 221 | pub trait StatVisitor { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 236 | fn visit_stat_box(&self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_stat_box` is never used [INFO] [stdout] --> src/parser/stat.rs:261:6 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait StatMutVisitor { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 261 | fn visit_stat_box(&mut self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `strict_mode` is never read [INFO] [stdout] --> src/interp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | strict_mode: bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `opts` is never read [INFO] [stdout] --> src/interp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 20 | opts: Options, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SolomonFunc` is never used [INFO] [stdout] --> src/interp.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `call` and `arity` are never used [INFO] [stdout] --> src/interp.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait SolomonCallable: Debug { // For now, structure must be debuggable [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | fn arity(&self) -> usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long` [INFO] [stdout] --> src/parser/mod.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | (Ok(long), Ok(short)) => Ok(expr::Literal::new(Literal::Integer(short), t)), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_long` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/interp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum SolomonObject { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 43 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | Atom(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 48 | Object(SolomonObj), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SolomonObject` 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 `VarMessage` is never used [INFO] [stdout] --> src/var_store.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum VarMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GENERATIONS` is never used [INFO] [stdout] --> src/var_store.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAX_GENERATIONS: usize = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Generation` is never used [INFO] [stdout] --> src/var_store.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub type Generation = usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableRef` is never constructed [INFO] [stdout] --> src/var_store.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct VariableRef(Sender, String, usize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:160:65 [INFO] [stdout] | [INFO] [stdout] 160 | TokenType::LBrace => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableStore` is never constructed [INFO] [stdout] --> src/var_store.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct VariableStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_variable`, and `reference` are never used [INFO] [stdout] --> src/var_store.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl VariableStore { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new() -> VariableStore { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn new_variable>(&mut self, name: S) -> VariableRef { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn reference>(&mut self, name: S) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:179:65 [INFO] [stdout] | [INFO] [stdout] 179 | TokenType::LParen => Some(Box::new(|p: &mut Parser, t:Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:184:62 [INFO] [stdout] | [INFO] [stdout] 184 | TokenType::Fun => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:208:67 [INFO] [stdout] | [INFO] [stdout] 208 | TokenType::LBracket => Some(Box::new(|p: &mut Parser, t: Token| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/parser/mod.rs:241:69 [INFO] [stdout] | [INFO] [stdout] 241 | TokenType::ThinArrow => Some((Box::new(|p: &mut Parser, r: Precedence, t: Token, l: Expr| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/parser/mod.rs:241:84 [INFO] [stdout] | [INFO] [stdout] 241 | TokenType::ThinArrow => Some((Box::new(|p: &mut Parser, r: Precedence, t: Token, l: Expr| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tt` [INFO] [stdout] --> src/parser/mod.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | tt => Ok(stat::Expression::new(left)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_name` [INFO] [stdout] --> src/interp.rs:60:45 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn submit>(&mut self, mod_name: S, p: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mod_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modification` [INFO] [stdout] --> src/interp.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | fn visit_modification(&mut self, modification: Modification) -> () {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/interp.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | fn visit_expression(&mut self, expression: Expression) -> () {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newobject` [INFO] [stdout] --> src/interp.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 79 | fn visit_newobject(&mut self, newobject: NewObject) -> () {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newobject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/interp.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | fn visit_literal(&mut self, literal: ELiteral) -> () {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unary` [INFO] [stdout] --> src/interp.rs:81:31 [INFO] [stdout] | [INFO] [stdout] 81 | fn visit_unary(&mut self, unary: Unary) -> () {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/interp.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | fn visit_binary(&mut self, binary: Binary) -> () {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grouping` [INFO] [stdout] --> src/interp.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | fn visit_grouping(&mut self, grouping: Grouping) -> () {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grouping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/interp.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | fn visit_function(&mut self, function: Function) -> () {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interp.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_block(&mut self, block: Block) -> () {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functioncall` [INFO] [stdout] --> src/interp.rs:86:38 [INFO] [stdout] | [INFO] [stdout] 86 | fn visit_functioncall(&mut self, functioncall: FunctionCall) -> () {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_functioncall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut lexer = lexer::Lexer::new(text.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:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut parser = parser::Parser::new(lexer.clone()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Atom` is more private than the item `parser::Literal::Atom::0` [INFO] [stdout] --> src/parser/mod.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | Atom(Atom), [INFO] [stdout] | ^^^^ field `parser::Literal::Atom::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Atom` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct Atom(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Atom` is more private than the item `Type::Atom::0` [INFO] [stdout] --> src/parser/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | Atom(Atom), // Type only has the value in it of $ [INFO] [stdout] | ^^^^ field `Type::Atom::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Atom` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/parser/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | struct Atom(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer/token.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | Identifier, Integer, Float, String, Atom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | AnyType, VoidType, IntType, StringType, FloatType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Bang, // ! [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | BangEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | LessThan, GreaterThan, LessEqual, GreaterEqual, // < > <= >= [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float`, `String`, and `Atom` are never constructed [INFO] [stdout] --> src/parser/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 44 | Float(i64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | Atom(Atom), [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: variants `Float`, `String`, `Atom`, and `Any` are never constructed [INFO] [stdout] --> src/parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 52 | Int, [INFO] [stdout] 53 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | Atom(Atom), // Type only has the value in it of $ [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Any, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `0` is never read [INFO] [stdout] --> src/parser/mod.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | SingleArg(Box), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Arguments` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 63 | SingleArg(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/mod.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | Args(HashMap) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Arguments` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 | Args(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dispose` is never used [INFO] [stdout] --> src/parser/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn dispose(&mut self, prec: F) where F: Fn(TokenType) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unary` is never constructed [INFO] [stdout] --> src/parser/expr.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Unary(Unary), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: multiple methods are never used [INFO] [stdout] --> src/parser/expr.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl Expr { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 39 | pub fn is_newobject(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn as_newobject(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn is_literal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn as_literal(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_unary(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn as_unary(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_binary(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn as_binary(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn is_grouping(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn as_grouping(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn is_function(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn as_function(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn is_block(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn as_block(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn is_functioncall(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn as_functioncall(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/parser/expr.rs:149:7 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct NewObject { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 149 | pub map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewObject` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 153 | impl NewObject { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 154 | pub fn new_naked(map: HashMap,) -> NewObject { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn boxed_new_naked(map: HashMap,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn boxed_new(map: HashMap,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/parser/expr.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Literal { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 185 | pub literal: PLiteral, [INFO] [stdout] 186 | pub token: Token, [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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 190 | impl Literal { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 191 | pub fn new_naked(literal: PLiteral,token: Token,) -> Literal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn boxed_new_naked(literal: PLiteral,token: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn boxed_new(literal: PLiteral,token: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, `new`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:236:10 [INFO] [stdout] | [INFO] [stdout] 235 | impl Unary { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 236 | pub fn new_naked(op: Token,value: Box,) -> Unary { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn boxed_new_naked(op: Token,value: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn new(op: Token,value: Box,) -> Expr { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn boxed_new(op: Token,value: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:282:10 [INFO] [stdout] | [INFO] [stdout] 281 | impl Binary { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 282 | pub fn new_naked(op: Token,lhs: Box,rhs: Box,) -> Binary { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn boxed_new_naked(op: Token,lhs: Box,rhs: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn boxed_new(op: Token,lhs: Box,rhs: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 333 | impl Grouping { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 334 | pub fn new_naked(expr: Box,) -> Grouping { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn boxed_new_naked(expr: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | pub fn boxed_new(expr: Box,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_method` is never read [INFO] [stdout] --> src/parser/expr.rs:368:7 [INFO] [stdout] | [INFO] [stdout] 364 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 368 | pub is_method: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 372 | impl Function { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 373 | pub fn new_naked(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Function { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn boxed_new_naked(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn boxed_new(ret_type: Type,args: HashMap,body: Box,is_method: bool,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 432 | impl Block { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 433 | pub fn new_naked(body: Vec,) -> Block { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 440 | pub fn boxed_new_naked(body: Vec,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn boxed_new(body: Vec,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `args` and `as_type` are never read [INFO] [stdout] --> src/parser/expr.rs:465:7 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct FunctionCall { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 464 | pub target: Box, [INFO] [stdout] 465 | pub args: Arguments, [INFO] [stdout] | ^^^^ [INFO] [stdout] 466 | pub as_type: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionCall` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/expr.rs:471:10 [INFO] [stdout] | [INFO] [stdout] 470 | impl FunctionCall { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 471 | pub fn new_naked(target: Box,args: Arguments,as_type: Option,) -> FunctionCall { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn boxed_new_naked(target: Box,args: Arguments,as_type: Option,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn boxed_new(target: Box,args: Arguments,as_type: Option,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_expr_box` is never used [INFO] [stdout] --> src/parser/expr.rs:582:6 [INFO] [stdout] | [INFO] [stdout] 557 | pub trait ExprMutVisitor { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 582 | fn visit_expr_box(&mut self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_assignment`, `as_assignment`, `is_modification`, `as_modification`, `is_expression`, and `as_expression` are never used [INFO] [stdout] --> src/parser/stat.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 32 | impl Stat { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 33 | pub fn is_assignment(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn as_assignment(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_modification(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_modification(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn is_expression(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn as_expression(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/parser/stat.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Assignment { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 80 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assignment` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 84 | impl Assignment { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 85 | pub fn new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Assignment { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn boxed_new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn boxed_new(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op` is never read [INFO] [stdout] --> src/parser/stat.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct Modification { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 134 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Modification` 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: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 138 | impl Modification { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 139 | pub fn new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Modification { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn boxed_new_naked(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn boxed_new(lhs: Expr,rhs: Expr,op: Token,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_naked`, `boxed_new_naked`, and `boxed_new` are never used [INFO] [stdout] --> src/parser/stat.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 190 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 191 | pub fn new_naked(expr: Expr,) -> Expression { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn boxed_new_naked(expr: Expr,) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn boxed_new(expr: Expr,) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_stat_box` is never used [INFO] [stdout] --> src/parser/stat.rs:236:6 [INFO] [stdout] | [INFO] [stdout] 221 | pub trait StatVisitor { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 236 | fn visit_stat_box(&self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_stat_box` is never used [INFO] [stdout] --> src/parser/stat.rs:261:6 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait StatMutVisitor { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 261 | fn visit_stat_box(&mut self, d: Box) -> N { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `strict_mode` is never read [INFO] [stdout] --> src/interp.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Options { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | strict_mode: bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `opts` is never read [INFO] [stdout] --> src/interp.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 20 | opts: Options, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SolomonFunc` is never used [INFO] [stdout] --> src/interp.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type SolomonFunc = Fn(&mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `call` and `arity` are never used [INFO] [stdout] --> src/interp.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait SolomonCallable: Debug { // For now, structure must be debuggable [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] 30 | fn call(&self, &mut Interpreter, Vec) -> SolomonObject; [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | fn arity(&self) -> usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/interp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum SolomonObject { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 43 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | Atom(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 48 | Object(SolomonObj), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Function(Rc>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SolomonObject` 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 `VarMessage` is never used [INFO] [stdout] --> src/var_store.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum VarMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GENERATIONS` is never used [INFO] [stdout] --> src/var_store.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const MAX_GENERATIONS: usize = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Generation` is never used [INFO] [stdout] --> src/var_store.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub type Generation = usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableRef` is never constructed [INFO] [stdout] --> src/var_store.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct VariableRef(Sender, String, usize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableStore` is never constructed [INFO] [stdout] --> src/var_store.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct VariableStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_variable`, and `reference` are never used [INFO] [stdout] --> src/var_store.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl VariableStore { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 29 | pub fn new() -> VariableStore { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn new_variable>(&mut self, name: S) -> VariableRef { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn reference>(&mut self, name: S) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "f0a3feb45d9978dc863527e0186f4e0fdde2c12263ff9a84abf159af03d5aae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0a3feb45d9978dc863527e0186f4e0fdde2c12263ff9a84abf159af03d5aae4", kill_on_drop: false }` [INFO] [stdout] f0a3feb45d9978dc863527e0186f4e0fdde2c12263ff9a84abf159af03d5aae4