[INFO] cloning repository https://github.com/Gonanf/lykoi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gonanf/lykoi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGonanf%2Flykoi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGonanf%2Flykoi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5679d08b96c07c3004a07e52c0f3c6c040d58d54 [INFO] building Gonanf/lykoi against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGonanf%2Flykoi" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gonanf/lykoi on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gonanf/lykoi [INFO] finished tweaking git repo https://github.com/Gonanf/lykoi [INFO] tweaked toml for git repo https://github.com/Gonanf/lykoi written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Gonanf/lykoi 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61bbdf97ef9dd9e10667e3be4a8b19e3843556f51bad9afd3f04d4cdc414495e [INFO] running `Command { std: "docker" "start" "-a" "61bbdf97ef9dd9e10667e3be4a8b19e3843556f51bad9afd3f04d4cdc414495e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61bbdf97ef9dd9e10667e3be4a8b19e3843556f51bad9afd3f04d4cdc414495e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61bbdf97ef9dd9e10667e3be4a8b19e3843556f51bad9afd3f04d4cdc414495e", kill_on_drop: false }` [INFO] [stdout] 61bbdf97ef9dd9e10667e3be4a8b19e3843556f51bad9afd3f04d4cdc414495e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ec4851e06e4213b13f1e7cff441dd8aa4275482931663c972521aecf1d4d909 [INFO] running `Command { std: "docker" "start" "-a" "0ec4851e06e4213b13f1e7cff441dd8aa4275482931663c972521aecf1d4d909", kill_on_drop: false }` [INFO] [stderr] Compiling lykoi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `token` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum token { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | digits(u8), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal_char` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | literal_char(u8), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LiteralChar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal_dec` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | literal_dec, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LiteralDec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `space` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | space, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `newline` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | newline, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Newline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | minor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | mayor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Mayor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minus` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | minus, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `plus` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | plus, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mult` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | mult, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `div` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | div, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Div` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | left_bracket, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeftBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | right_bracket, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RightBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | left_par, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LeftPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | right_par, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `RightPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/compiler/tokenizer.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | match (token_var) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - match (token_var) { [INFO] [stdout] 28 + match token_var { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `names` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum names { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `variable` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | variable(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | literal(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | digits(Vec, u32, u32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `operation` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | operation(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Operation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | left_bracket(u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeftBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | right_bracket(u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RightBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | left_par(u32, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LeftPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | right_par(u32, u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `RightPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/compiler/tokenizer.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 124 | if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] 124 + if buffered_token != token::space && buffered_token != token::newline { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/compiler/tokenizer.rs:137:28 [INFO] [stdout] | [INFO] [stdout] 137 | if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 137 - if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] 137 + if buffered_token != token::space && buffered_token != token::newline { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `token` [INFO] [stdout] --> src/compiler/parser.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::tokenizer::{self, names, token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AST_parser` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST_parser { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AstParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AST_Errors` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AST_Errors { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AstErrors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `sintaxis` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | sintaxis(String, String), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sintaxis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::Any`, `env::var`, `f32::consts::E`, `fmt::Display`, `fs::read`, and `iter::repeat` [INFO] [stdout] --> src/compiler/interpreter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, borrow::Borrow, env::var, f32::consts::E, fmt, fmt::Display, fs::read, iter::repeat, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `variables` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct variables { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `values` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | enum values { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `string` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | string(String), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `integer` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | integer(i32), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `none` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | none, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `None` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `interpreter` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct interpreter { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Interpreter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types` [INFO] [stdout] --> src/compiler/codegen.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use nodes::{node, types::node_type, types}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::AST_parser` [INFO] [stdout] --> src/compiler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use parser::AST_parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/compiler.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | tokens.push(match (tokenizer::token::search_token(i as u8)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - tokens.push(match (tokenizer::token::search_token(i as u8)) { [INFO] [stdout] 18 + tokens.push(match tokenizer::token::search_token(i as u8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::node_type` [INFO] [stdout] --> src/nodes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use types::node_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types` [INFO] [stdout] --> src/nodes/data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::types; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `node_type` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum node_type { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NodeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `variable` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | variable(Vec), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `expression` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | expression(expresions), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `return_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | return_node(node), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReturnNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `statement` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | statement(statement), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `block` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | block(Vec), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `statement` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum statement { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `if_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | if_node(node, node, Vec, Option), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IfNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `elif_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | elif_node(node, node), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ElifNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `else_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | else_node(node), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ElseNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `for_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | for_node(node, Option, Option, node), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `ForNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `while_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | while_node(node, node), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `WhileNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `break_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | break_node, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `BreakNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `continue_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | continue_node, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ContinueNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `assignment` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | assignment(node, node), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Assignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `binops` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum binops { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Binops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `in_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | in_node, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `InNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `assign` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | assign, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `plus` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | plus, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minus` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | minus, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `div` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | div, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Div` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mult` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | mult, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mayor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Mayor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | minor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor_equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | mayor_equal, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `MayorEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor_equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | minor_equal, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinorEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `or` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | or, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Or` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `and` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | and, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `And` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `unops` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum unops { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `negative` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | negative, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Negative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `not_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | not_node, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NotNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `expresions` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum expresions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Expresions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `binop` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | binop(node, binops, node), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Binop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `unop` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | unop(unops, node), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `true_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | true_exp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `TrueExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `false_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | false_exp, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FalseExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `none_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | none_exp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NoneExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | digits(Vec), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | literal(Vec), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | node(node), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `node` should have an upper camel case name [INFO] [stdout] --> src/nodes.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct node { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/compiler/parser.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let exp = self.tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/compiler/parser.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let statement = self.tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/compiler/parser.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let statement = self.clone().tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/compiler/parser.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | a => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/compiler/parser.rs:365:29 [INFO] [stdout] | [INFO] [stdout] 365 | if let Some(val) = binops::is_reserved(&next_token.clone().value()) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compiler/interpreter.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | for (index, value) in vec.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/compiler/codegen.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | node_type::block(vec) => Self::codegen_block(self), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | fn codegen_expression(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | fn codegen_return(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn codegen_statement(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn codegen_variable(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut buffer = String::from("a = 10 if a + 2 == 15 { b = 30 } else { b = 20 } b"); [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/compiler.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut parser = parser::AST_parser::new_from(tokens); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | node_type::block(vec) => b"{}".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | node_type::return_node(node) => b"return".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | node_type::block(vec) => b"block".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/nodes/implementations.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | node_type::statement(statement) => b"statement".to_vec(), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | node_type::expression(node) => b"expression".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | node_type::variable(vec) => b"variable".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node2` [INFO] [stdout] --> src/nodes/implementations.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node3` [INFO] [stdout] --> src/nodes/implementations.rs:41:52 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | statement::elif_node(node, node1) => b"elif".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | statement::elif_node(node, node1) => b"elif".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | statement::else_node(node) => b"else".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | statement::while_node(node, _) => b"while".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | statement::assignment(node, node1) => b"=".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:48:41 [INFO] [stdout] | [INFO] [stdout] 48 | statement::assignment(node, node1) => b"=".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | statement::assignment(node, node1) => b"assignment".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | statement::assignment(node, node1) => b"assignment".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | expresions::binop(node, binops, node1) => binops.value(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:162:45 [INFO] [stdout] | [INFO] [stdout] 162 | expresions::binop(node, binops, node1) => binops.value(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:163:37 [INFO] [stdout] | [INFO] [stdout] 163 | expresions::unop(unops, node) => unops.value(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:175:31 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binops` [INFO] [stdout] --> src/nodes/implementations.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:175:45 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unops` [INFO] [stdout] --> src/nodes/implementations.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | expresions::unop(unops, node) => b"Unary operation".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | expresions::unop(unops, node) => b"Unary operation".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | expresions::digits(vec) => b"digits".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/nodes/implementations.rs:178:33 [INFO] [stdout] | [INFO] [stdout] 178 | expresions::literal(a) => b"literal".to_vec(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EOF` is never constructed [INFO] [stdout] --> src/compiler/tokenizer.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum names { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 82 | EOF(u32, u32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `names` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AST_Errors` is never used [INFO] [stdout] --> src/compiler/parser.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AST_Errors { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST_Errors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek` is never used [INFO] [stdout] --> src/compiler/parser.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl AST_parser { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | fn peek(self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iterate` is never used [INFO] [stdout] --> src/compiler/interpreter.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl values { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 35 | pub fn iterate(self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `codegen`, `codegen_block`, `codegen_expression`, `codegen_return`, `codegen_statement`, and `codegen_variable` are never used [INFO] [stdout] --> src/compiler/codegen.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 7 | pub fn codegen(self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn codegen_block(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn codegen_expression(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn codegen_return(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn codegen_statement(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn codegen_variable(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `value`, `describe`, and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl types::node_type { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 6 | [INFO] [stdout] 7 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `describe` and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl statement { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value` and `describe` are never used [INFO] [stdout] --> src/nodes/implementations.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl unops { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 77 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `value`, `describe`, and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl expresions { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 160 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/nodes/types.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | return_node(node), [INFO] [stdout] | ----------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `node_type` has derived impls for the traits `Clone` and `Debug`, 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] 17 | return_node(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/nodes/types.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | for_node(node, Option, Option, node), [INFO] [stdout] | -------- ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 32 | for_node((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/nodes/types.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | while_node(node, node), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, 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] 34 | while_node(node, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `break_node` and `continue_node` are never constructed [INFO] [stdout] --> src/nodes/types.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | break_node, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | continue_node, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `true_exp`, `false_exp`, and `node` are never constructed [INFO] [stdout] --> src/nodes/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum expresions { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 80 | true_exp, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | false_exp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | node(node), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `expresions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "0ec4851e06e4213b13f1e7cff441dd8aa4275482931663c972521aecf1d4d909", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ec4851e06e4213b13f1e7cff441dd8aa4275482931663c972521aecf1d4d909", kill_on_drop: false }` [INFO] [stdout] 0ec4851e06e4213b13f1e7cff441dd8aa4275482931663c972521aecf1d4d909 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9cc2655a93a89fbecb8d1ec791cf8b669e12ee09e567234fd222730d4f764ef [INFO] running `Command { std: "docker" "start" "-a" "e9cc2655a93a89fbecb8d1ec791cf8b669e12ee09e567234fd222730d4f764ef", kill_on_drop: false }` [INFO] [stderr] Compiling lykoi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `token` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum token { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | digits(u8), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal_char` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | literal_char(u8), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LiteralChar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal_dec` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | literal_dec, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `LiteralDec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `space` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | space, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `newline` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | newline, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Newline` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | minor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | mayor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Mayor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minus` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | minus, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `plus` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | plus, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mult` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | mult, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `div` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | div, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Div` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | left_bracket, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeftBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | right_bracket, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RightBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | left_par, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LeftPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | right_par, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `RightPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/compiler/tokenizer.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | match (token_var) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - match (token_var) { [INFO] [stdout] 28 + match token_var { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `names` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum names { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `variable` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | variable(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | literal(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | digits(Vec, u32, u32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `operation` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | operation(Vec, u32, u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Operation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | left_bracket(u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeftBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_bracket` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | right_bracket(u32, u32), [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RightBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `left_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | left_par(u32, u32), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `LeftPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `right_par` should have an upper camel case name [INFO] [stdout] --> src/compiler/tokenizer.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | right_par(u32, u32), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `RightPar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/compiler/tokenizer.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 124 | if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] 124 + if buffered_token != token::space && buffered_token != token::newline { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/compiler/tokenizer.rs:137:28 [INFO] [stdout] | [INFO] [stdout] 137 | if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 137 - if (buffered_token != token::space && buffered_token != token::newline) { [INFO] [stdout] 137 + if buffered_token != token::space && buffered_token != token::newline { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `token` [INFO] [stdout] --> src/compiler/parser.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::tokenizer::{self, names, token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AST_parser` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST_parser { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AstParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AST_Errors` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AST_Errors { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `AstErrors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `sintaxis` should have an upper camel case name [INFO] [stdout] --> src/compiler/parser.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | sintaxis(String, String), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sintaxis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `any::Any`, `env::var`, `f32::consts::E`, `fmt::Display`, `fs::read`, and `iter::repeat` [INFO] [stdout] --> src/compiler/interpreter.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, borrow::Borrow, env::var, f32::consts::E, fmt, fmt::Display, fs::read, iter::repeat, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `variables` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct variables { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `values` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | enum values { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `string` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | string(String), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `integer` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | integer(i32), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `none` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | none, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `None` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `interpreter` should have an upper camel case name [INFO] [stdout] --> src/compiler/interpreter.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct interpreter { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Interpreter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types` [INFO] [stdout] --> src/compiler/codegen.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use nodes::{node, types::node_type, types}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::AST_parser` [INFO] [stdout] --> src/compiler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use parser::AST_parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/compiler.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | tokens.push(match (tokenizer::token::search_token(i as u8)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - tokens.push(match (tokenizer::token::search_token(i as u8)) { [INFO] [stdout] 18 + tokens.push(match tokenizer::token::search_token(i as u8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::node_type` [INFO] [stdout] --> src/nodes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use types::node_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types` [INFO] [stdout] --> src/nodes/data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::types; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `node_type` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum node_type { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NodeType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `variable` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | variable(Vec), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `expression` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | expression(expresions), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `return_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | return_node(node), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReturnNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `statement` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | statement(statement), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `block` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | block(Vec), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `statement` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum statement { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `if_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | if_node(node, node, Vec, Option), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IfNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `elif_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | elif_node(node, node), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ElifNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `else_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | else_node(node), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `ElseNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `for_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | for_node(node, Option, Option, node), [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `ForNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `while_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | while_node(node, node), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `WhileNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `break_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | break_node, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `BreakNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `continue_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | continue_node, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ContinueNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `assignment` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | assignment(node, node), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Assignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `binops` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum binops { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Binops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `in_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | in_node, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `InNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `assign` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | assign, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `plus` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | plus, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Plus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minus` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | minus, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `div` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | div, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Div` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mult` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | mult, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Mult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mayor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Mayor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | minor, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Minor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `mayor_equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | mayor_equal, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `MayorEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `minor_equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | minor_equal, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinorEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `or` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | or, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Or` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `and` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | and, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `And` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `unops` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum unops { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `negative` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | negative, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Negative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `not_node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | not_node, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NotNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `expresions` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum expresions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Expresions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `binop` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | binop(node, binops, node), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Binop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `unop` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | unop(unops, node), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Unop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `true_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | true_exp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `TrueExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `false_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | false_exp, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `FalseExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `none_exp` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | none_exp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NoneExp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `digits` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | digits(Vec), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Digits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `literal` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | literal(Vec), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `node` should have an upper camel case name [INFO] [stdout] --> src/nodes/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | node(node), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `node` should have an upper camel case name [INFO] [stdout] --> src/nodes.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct node { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/compiler/parser.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let exp = self.tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/compiler/parser.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let statement = self.tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/compiler/parser.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | let statement = self.clone().tokens.pop().expect("EOF"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/compiler/parser.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | a => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/compiler/parser.rs:365:29 [INFO] [stdout] | [INFO] [stdout] 365 | if let Some(val) = binops::is_reserved(&next_token.clone().value()) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compiler/interpreter.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | for (index, value) in vec.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/compiler/codegen.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | node_type::block(vec) => Self::codegen_block(self), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | fn codegen_expression(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | fn codegen_return(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn codegen_statement(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/codegen.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn codegen_variable(block: node) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut buffer = String::from("a = 10 if a + 2 == 15 { b = 30 } else { b = 20 } b"); [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/compiler.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut parser = parser::AST_parser::new_from(tokens); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | node_type::block(vec) => b"{}".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | node_type::return_node(node) => b"return".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | node_type::block(vec) => b"block".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statement` [INFO] [stdout] --> src/nodes/implementations.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | node_type::statement(statement) => b"statement".to_vec(), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | node_type::expression(node) => b"expression".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | node_type::variable(vec) => b"variable".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node2` [INFO] [stdout] --> src/nodes/implementations.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node3` [INFO] [stdout] --> src/nodes/implementations.rs:41:52 [INFO] [stdout] | [INFO] [stdout] 41 | statement::if_node(node, node1, node2, node3) => b"if".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | statement::elif_node(node, node1) => b"elif".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | statement::elif_node(node, node1) => b"elif".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | statement::else_node(node) => b"else".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | statement::while_node(node, _) => b"while".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | statement::assignment(node, node1) => b"=".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:48:41 [INFO] [stdout] | [INFO] [stdout] 48 | statement::assignment(node, node1) => b"=".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | statement::assignment(node, node1) => b"assignment".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | statement::assignment(node, node1) => b"assignment".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | expresions::binop(node, binops, node1) => binops.value(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:162:45 [INFO] [stdout] | [INFO] [stdout] 162 | expresions::binop(node, binops, node1) => binops.value(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:163:37 [INFO] [stdout] | [INFO] [stdout] 163 | expresions::unop(unops, node) => unops.value(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:175:31 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binops` [INFO] [stdout] --> src/nodes/implementations.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1` [INFO] [stdout] --> src/nodes/implementations.rs:175:45 [INFO] [stdout] | [INFO] [stdout] 175 | expresions::binop(node, binops, node1) => b"Binary operation".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_node1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unops` [INFO] [stdout] --> src/nodes/implementations.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | expresions::unop(unops, node) => b"Unary operation".to_vec(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/implementations.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 176 | expresions::unop(unops, node) => b"Unary operation".to_vec(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/nodes/implementations.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | expresions::digits(vec) => b"digits".to_vec(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/nodes/implementations.rs:178:33 [INFO] [stdout] | [INFO] [stdout] 178 | expresions::literal(a) => b"literal".to_vec(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EOF` is never constructed [INFO] [stdout] --> src/compiler/tokenizer.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum names { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 82 | EOF(u32, u32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `names` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AST_Errors` is never used [INFO] [stdout] --> src/compiler/parser.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AST_Errors { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST_Errors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek` is never used [INFO] [stdout] --> src/compiler/parser.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl AST_parser { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | fn peek(self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iterate` is never used [INFO] [stdout] --> src/compiler/interpreter.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl values { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 35 | pub fn iterate(self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `codegen`, `codegen_block`, `codegen_expression`, `codegen_return`, `codegen_statement`, and `codegen_variable` are never used [INFO] [stdout] --> src/compiler/codegen.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 7 | pub fn codegen(self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn codegen_block(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn codegen_expression(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn codegen_return(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn codegen_statement(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn codegen_variable(block: node) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `value`, `describe`, and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl types::node_type { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 6 | [INFO] [stdout] 7 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `describe` and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl statement { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value` and `describe` are never used [INFO] [stdout] --> src/nodes/implementations.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl unops { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 77 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `value`, `describe`, and `is_reserved` are never used [INFO] [stdout] --> src/nodes/implementations.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl expresions { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 160 | pub fn value(self) -> Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn describe(self) -> Vec{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn is_reserved(value: &Vec) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/nodes/types.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | return_node(node), [INFO] [stdout] | ----------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `node_type` has derived impls for the traits `Clone` and `Debug`, 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] 17 | return_node(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/nodes/types.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | for_node(node, Option, Option, node), [INFO] [stdout] | -------- ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 32 | for_node((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/nodes/types.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | while_node(node, node), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, 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] 34 | while_node(node, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `break_node` and `continue_node` are never constructed [INFO] [stdout] --> src/nodes/types.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | break_node, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | continue_node, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `true_exp`, `false_exp`, and `node` are never constructed [INFO] [stdout] --> src/nodes/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum expresions { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 80 | true_exp, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | false_exp, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | node(node), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `expresions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "e9cc2655a93a89fbecb8d1ec791cf8b669e12ee09e567234fd222730d4f764ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9cc2655a93a89fbecb8d1ec791cf8b669e12ee09e567234fd222730d4f764ef", kill_on_drop: false }` [INFO] [stdout] e9cc2655a93a89fbecb8d1ec791cf8b669e12ee09e567234fd222730d4f764ef