[INFO] cloning repository https://github.com/wend-xu/stone_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wend-xu/stone_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwend-xu%2Fstone_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwend-xu%2Fstone_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef21a445eca1e2d16fba25c90709ab600e1944a7 [INFO] checking wend-xu/stone_rs against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwend-xu%2Fstone_rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wend-xu/stone_rs [INFO] finished tweaking git repo https://github.com/wend-xu/stone_rs [INFO] tweaked toml for git repo https://github.com/wend-xu/stone_rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wend-xu/stone_rs on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wend-xu/stone_rs 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9adeff03c529fede5aaceddab0ee2643b22ec44c9a16c7bcb5f5de64d9f9072e [INFO] running `Command { std: "docker" "start" "-a" "9adeff03c529fede5aaceddab0ee2643b22ec44c9a16c7bcb5f5de64d9f9072e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9adeff03c529fede5aaceddab0ee2643b22ec44c9a16c7bcb5f5de64d9f9072e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9adeff03c529fede5aaceddab0ee2643b22ec44c9a16c7bcb5f5de64d9f9072e", kill_on_drop: false }` [INFO] [stdout] 9adeff03c529fede5aaceddab0ee2643b22ec44c9a16c7bcb5f5de64d9f9072e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cd9a01db6ca439a849b2b1f33e36832b6126327a07443561d6f9f1e97a728fa [INFO] running `Command { std: "docker" "start" "-a" "5cd9a01db6ca439a849b2b1f33e36832b6126327a07443561d6f9f1e97a728fa", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking stone_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::lexer::lexer::Lexer` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lexer::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Debug` [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lexer::Lexer` [INFO] [stdout] --> src/lexer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::lexer::Lexer` [INFO] [stdout] --> src/tests/func_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lexer::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | mod func_test; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/util/dev_util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/util/dev_util.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parser::element::{*}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::element::IdToken` [INFO] [stdout] --> src/ast/leaf/identifier_literal.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::element::IdToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/ast/list/block_stmt.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NullStmt` [INFO] [stdout] --> src/ast/list/block_stmt.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::list::null_stmt::{is_null_stmt, NullStmt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ast/list/primary_expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/ast/list/primary_expr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/ast/list/paramter_list.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/ast/list/arguments.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ast/list/arguments.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/ast/list/arguments.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/ast/list/arguments.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::identifier_literal::IdentifierLiteral` [INFO] [stdout] --> src/ast/list/arguments.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ast::leaf::identifier_literal::IdentifierLiteral; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Env` [INFO] [stdout] --> src/ast/list/arguments.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::eval::environment::{Env, EnvWrapper, MapNestedEnv}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/element.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | / ... /// parser 出现AstList则是factory构建ast节点的时候没有指定类型,实际上没有执行的功能 [INFO] [stdout] 125 | | ... /// 这种情况确实可以忽略,因为本身就是无法执行的,在ast树上也没意义 [INFO] [stdout] 126 | | ... /// [INFO] [stdout] 127 | | ... /// 按照BNF的语法定义,仅在 block中有 repeat ,定义为 {(";" | EOL) [ statement ]} "}" , [INFO] [stdout] ... | [INFO] [stdout] 131 | | ... /// [INFO] [stdout] 132 | | ... /// 故进入while 循环后的判定条件: 不为AstList(不可执行无意义) 子节点是数为0(实际未匹配可执行内容) [INFO] [stdout] | |_________________________________________________________________________________________________________^ [INFO] [stdout] 133 | ... let tree_node = parser_borrow.parse(lexer)?; [INFO] [stdout] | -------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::binary_expr::BinaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::list::binary_expr::BinaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::block_stmt::BlockStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::list::block_stmt::BlockStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::identifier_literal::IdentifierLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::leaf::identifier_literal::IdentifierLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::if_stmt::IfStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::list::if_stmt::IfStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::negative_expr::NegativeExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::list::negative_expr::NegativeExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::null_stmt::NullStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ast::list::null_stmt::NullStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::number_literal::NumberLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::leaf::number_literal::NumberLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::primary_expr::PrimaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ast::list::primary_expr::PrimaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::string_literal::StringLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ast::leaf::string_literal::StringLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::while_stmt::WhileStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ast::list::while_stmt::WhileStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Operators` and `Precedence` [INFO] [stdout] --> src/parser/basic_parser.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parser::element::{Operators, Precedence}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::TokenValue` [INFO] [stdout] --> src/parser/basic_parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::token::TokenValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::primary_expr::PrimaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser_macros.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::list::primary_expr::PrimaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/eval/eval.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/eval/environment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_list::AstList` [INFO] [stdout] --> src/stone.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::ast_list::AstList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::log::Log` [INFO] [stdout] --> src/stone.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::native::log::Log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::native_fun::reg_native_fun` [INFO] [stdout] --> src/stone.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::native::native_fun::reg_native_fun; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::lexer::Lexer` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lexer::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Debug` [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lexer::Lexer` [INFO] [stdout] --> src/lexer/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::lexer::Lexer` [INFO] [stdout] --> src/tests/func_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lexer::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/tests/func_test.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::null_stmt::NullStmt` [INFO] [stdout] --> src/tests/func_test.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::ast::list::null_stmt::NullStmt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::log::Log` [INFO] [stdout] --> src/tests/func_test.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::native::log::Log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/util/dev_util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> src/util/dev_util.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parser::element::{*}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::element::IdToken` [INFO] [stdout] --> src/ast/leaf/identifier_literal.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::element::IdToken; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/ast/list/block_stmt.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NullStmt` [INFO] [stdout] --> src/ast/list/block_stmt.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::list::null_stmt::{is_null_stmt, NullStmt}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ast/list/primary_expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/ast/list/primary_expr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/ast/list/paramter_list.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::TypeId` [INFO] [stdout] --> src/ast/list/arguments.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/ast/list/arguments.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/ast/list/arguments.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/ast/list/arguments.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::identifier_literal::IdentifierLiteral` [INFO] [stdout] --> src/ast/list/arguments.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ast::leaf::identifier_literal::IdentifierLiteral; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Env` [INFO] [stdout] --> src/ast/list/arguments.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::eval::environment::{Env, EnvWrapper, MapNestedEnv}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser/element.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | / ... /// parser 出现AstList则是factory构建ast节点的时候没有指定类型,实际上没有执行的功能 [INFO] [stdout] 125 | | ... /// 这种情况确实可以忽略,因为本身就是无法执行的,在ast树上也没意义 [INFO] [stdout] 126 | | ... /// [INFO] [stdout] 127 | | ... /// 按照BNF的语法定义,仅在 block中有 repeat ,定义为 {(";" | EOL) [ statement ]} "}" , [INFO] [stdout] ... | [INFO] [stdout] 131 | | ... /// [INFO] [stdout] 132 | | ... /// 故进入while 循环后的判定条件: 不为AstList(不可执行无意义) 子节点是数为0(实际未匹配可执行内容) [INFO] [stdout] | |_________________________________________________________________________________________________________^ [INFO] [stdout] 133 | ... let tree_node = parser_borrow.parse(lexer)?; [INFO] [stdout] | -------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::binary_expr::BinaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::list::binary_expr::BinaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::block_stmt::BlockStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::list::block_stmt::BlockStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::identifier_literal::IdentifierLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::leaf::identifier_literal::IdentifierLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::if_stmt::IfStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::list::if_stmt::IfStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::negative_expr::NegativeExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::list::negative_expr::NegativeExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::null_stmt::NullStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ast::list::null_stmt::NullStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::number_literal::NumberLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::leaf::number_literal::NumberLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::primary_expr::PrimaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ast::list::primary_expr::PrimaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::leaf::string_literal::StringLiteralFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ast::leaf::string_literal::StringLiteralFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::while_stmt::WhileStmtFactory` [INFO] [stdout] --> src/parser/basic_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::ast::list::while_stmt::WhileStmtFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Operators` and `Precedence` [INFO] [stdout] --> src/parser/basic_parser.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parser::element::{Operators, Precedence}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::TokenValue` [INFO] [stdout] --> src/parser/basic_parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::token::TokenValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::list::primary_expr::PrimaryExprFactory` [INFO] [stdout] --> src/parser/basic_parser_macros.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::list::primary_expr::PrimaryExprFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/eval/eval.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/eval/environment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_list::AstList` [INFO] [stdout] --> src/stone.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::ast_list::AstList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::log::Log` [INFO] [stdout] --> src/stone.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::native::log::Log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::native_fun::reg_native_fun` [INFO] [stdout] --> src/stone.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::native::native_fun::reg_native_fun; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/list/def_stmt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/list/arguments.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/leaf/number_literal.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/leaf/identifier_literal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser/element.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{Token, TokenValue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let mut try_read_line; [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: unused variable: `env` [INFO] [stdout] --> src/ast/ast_macros.rs:291:31 [INFO] [stdout] | [INFO] [stdout] 291 | fn do_eval(&self, env: &mut crate::eval::environment::EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | ast_leaf_default_eval_impl! { StringLiteral, StringVal, StringVal } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_eval_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/ast_macros.rs:291:31 [INFO] [stdout] | [INFO] [stdout] 291 | fn do_eval(&self, env: &mut crate::eval::environment::EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | ast_leaf_default_eval_impl! { NumberLiteral, NUMBER, NUMBER } [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_eval_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/null_stmt.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/paramter_list.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn param_name(&self, env: &mut EnvWrapper, index:usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/paramter_list.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/arguments.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/ast/list/arguments.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | EvalRes::FUNCTION(func_name, param_list, func_block) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/ast/list/arguments.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | EvalRes::NativeFun(func_name, func_block_native) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/fun_stmt.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/list/arguments.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/ast/ast_leaf.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fn child(&self, index: usize) -> Option<&Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/tests/line_reader_lexer_text.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/parser/element.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn is_match(&self, lexer: &mut dyn Lexer) -> bool { false } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::native::native_fun::NativeFun` [INFO] [stdout] --> src/tests/func_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::native::native_fun::NativeFun; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/list/def_stmt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/parser/element.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{Token, TokenValue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/leaf/number_literal.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::ast_tree::AstTree` [INFO] [stdout] --> src/ast/leaf/identifier_literal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::ast_tree::AstTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let mut try_read_line; [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: unused variable: `res` [INFO] [stdout] --> src/parser/element.rs:243:44 [INFO] [stdout] | [INFO] [stdout] 243 | fn parse(&self, lexer: &mut dyn Lexer, res: &mut Vec>) -> Result<(), String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/element.rs:303:15 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn rc(mut self) -> Rc { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | if let Some(mut ele_0) = self.elements.get_mut(0) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let mut or_tree = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:152:15 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn rc(mut self) -> Rc> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tests/line_reader_lexer_text.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | for i in 0.. 10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/basic_parser_macros.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut expr = rule!(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/basic_parser_macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut statement = rule!(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:68 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:93 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factor` [INFO] [stdout] --> src/tests/element_test.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let factor = Rc::new(Parser::rule_def()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | seq!(block: "{" [ statement ] { (";","\n") [ statement ] } "}" ); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operators` [INFO] [stdout] --> src/tests/element_test.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let operators = Rc::new(Operators::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operators` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tests/element_test.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let x = Box::new(BinaryExprFactory {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | seq!(if : "if" expr block [ "else" block ]), [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/parser/parser_macros.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq = parser.borrow_mut(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factor` [INFO] [stdout] --> src/tests/element_test.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let factor = Rc::new(Parser::rule_def()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operators` [INFO] [stdout] --> src/tests/element_test.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let operators = Rc::new(Operators::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operators` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tests/element_test.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let x = BinaryExprFactory::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_token` [INFO] [stdout] --> src/tests/element_test.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let num_token = NumToken::new(None); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/element_test.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut test = Test { vec: vec![] }; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `option` [INFO] [stdout] --> src/tests/element_test.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let option = vec_0_any.downcast_mut::(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/element_test.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let mut vec_0_any: &mut dyn Any = vec_0.to_any_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut expr = rule!(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut statement = rule!(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq = parser.borrow_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let param = seq!(seq: id->reserved); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `def` [INFO] [stdout] --> src/tests/func_test.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let def = seq!(def: "def" id->reserved param_list); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_def` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | let params = seq!(param_list: param { "," param }); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let param_list = seq!(seq: "(" [ params ]* ")"); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | let args = seq!(args: expr { "," expr }); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let postfix = seq!(seq: "(" [args]* ")"); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:58 [INFO] [stdout] | [INFO] [stdout] 35 | ... or!(primary:seq!{fun: "fun" param_list block } , seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:st... [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:84 [INFO] [stdout] | [INFO] [stdout] 35 | ... or!(primary:seq!{fun: "fun" param_list block } , seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:st... [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:104 [INFO] [stdout] | [INFO] [stdout] 35 | ...!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/tests/func_test.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let param = seq!(seq: id->reserved); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:129 [INFO] [stdout] | [INFO] [stdout] 35 | ... seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | seq!(block; seq : "{" [ statement ] { (";","\n") [ statement ] } "}" ); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | seq!(if : "if" expr block [ "else" block ]), [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/tests/func_test.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let params = seq!(param_list: param { "," param }); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/tests/func_test.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | let param_list = seq!(seq: "(" [ params ]* ")"); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_list` [INFO] [stdout] --> src/tests/func_test.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | EvalRes::FUNCTION(fun_name, param_list, block) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapper` [INFO] [stdout] --> src/tests/func_test.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | let mut wrapper = EnvWrapper::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/func_test.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut wrapper = EnvWrapper::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/tests/func_test.rs:192:20 [INFO] [stdout] | [INFO] [stdout] 192 | Ok(ok) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/func_test.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | let mut nest = MapNestedEnv::new_with(&mut outer); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/tests/func_test.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | Ok(env) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/eval/eval.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | fn do_eval_postfix(&self, env: &mut EnvWrapper, result: EvalRes) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/eval/eval.rs:78:53 [INFO] [stdout] | [INFO] [stdout] 78 | fn do_eval_postfix(&self, env: &mut EnvWrapper, result: EvalRes) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval/environment.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut value_op = self.env_map.remove(key); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapper` [INFO] [stdout] --> src/tests/eq_test.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let mut wrapper = EnvWrapper::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval/environment.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | Some(mut env_had) => { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/eq_test.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut wrapper = EnvWrapper::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stone.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut lexer = &mut self.lexer; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stone.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut parser = &mut self.parser; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/stone.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for (index, ast_tree_one) in ast_tree_res_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: `other` [INFO] [stdout] --> src/native/native_fun.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/ast_macros.rs:291:31 [INFO] [stdout] | [INFO] [stdout] 291 | fn do_eval(&self, env: &mut crate::eval::environment::EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | ast_leaf_default_eval_impl! { StringLiteral, StringVal, StringVal } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_eval_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/ast_macros.rs:291:31 [INFO] [stdout] | [INFO] [stdout] 291 | fn do_eval(&self, env: &mut crate::eval::environment::EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | ast_leaf_default_eval_impl! { NumberLiteral, NUMBER, NUMBER } [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_eval_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Lexer` is never used [INFO] [stdout] --> src/lexer/lexer.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATCH_COMMENT` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const MATCH_COMMENT: &str = "//."; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATCH_IDENTIFIER` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MATCH_IDENTIFIER: &str = r#"[A-Z_a-z][A-Z_a-z0-9]*|==|<=|>=|&&|\|\||[+\-*/%=\\|&,.!?(){}\[\]><:;]"#; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATCH_NUMBER` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MATCH_NUMBER: &str = r"[0-9]+"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATCH_STRING` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const MATCH_STRING: &str = r#""((?:\\"|\\\\|\\n|[^"\\])*)""#; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATCH_NAMES` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const MATCH_NAMES: [&str; 4] = ["comment", "number", "string", "identifier"]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchNames` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum MatchNames { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `literal_all`, `of_literal`, and `literal` are never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl MatchNames { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 29 | fn literal_all() -> &'static [&'static str; 4] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn of_literal(literal: &str) -> MatchNames { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineReaderLexer` is never constructed [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct LineReaderLexer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_line_regex_str` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn match_line_regex_str() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl LineReaderLexer { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 69 | pub fn new() -> LineReaderLexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn new_with_code(code: String) -> LineReaderLexer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn new_with_regex(code: String, regex: Regex) -> LineReaderLexer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn read_line(&mut self) -> &mut LineReaderLexer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn gen_token(line_number: &usize, cap: Captures) -> (usize, Option>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn enqueue_token_op(vec: &mut VecDeque>, next_pos: &usize, token_op: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn enqueue_token(vec: &mut VecDeque>, token: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenEOL` is never constructed [INFO] [stdout] --> src/token/token_end.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TokenEOL { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/token/token_end.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TokenEOL { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(line_number: usize) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenEOF` is never constructed [INFO] [stdout] --> src/token/token_end.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TokenEOF { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/token/token_end.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TokenEOF { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(line_number: usize) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_literal` is never used [INFO] [stdout] --> src/token/token_number.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl TokenNumber { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new_literal(line_number: usize, number_literal: &str) -> Box { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenString` is never constructed [INFO] [stdout] --> src/token/token_string.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TokenString { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/token/token_string.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TokenString { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(line_number: usize, str: &str) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_from_captures` is never used [INFO] [stdout] --> src/util/regex_util.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_from_captures<'a>(captures: &'a regex::Captures, names: &'a [&'a str]) -> Option<(&'a str, &'a str, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_is_type` is never used [INFO] [stdout] --> src/util/type_util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn struct_is_type(struct_any: &dyn Any) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_downcast_ref` is never used [INFO] [stdout] --> src/util/type_util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn struct_downcast_ref(struct_any: Box) -> Result,Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_and_flush` is never used [INFO] [stdout] --> src/util/dev_util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn print_and_flush(msg:&str, debug:&dyn Debug) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_and_flush_msg` is never used [INFO] [stdout] --> src/util/dev_util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn print_and_flush_msg(msg:&str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringLiteral` is never constructed [INFO] [stdout] --> src/ast/leaf/string_literal.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct StringLiteral { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_match`, and `leaf_val` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(token: Box) -> Box<$node_name> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn is_match(token: &Box) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn leaf_val(&self) -> &crate::token::TokenValue{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | impl StringLiteral { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 11 | ast_leaf_default_new! {StringLiteral,StringVal } [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringLiteralFactory` is never constructed [INFO] [stdout] --> src/ast/leaf/string_literal.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | ast_leaf_factory_default_impl! {StringLiteralFactory,StringLiteral} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 227 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | ast_leaf_factory_default_impl! {StringLiteralFactory,StringLiteral} [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_match` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn is_match(token: &Box) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | impl NumberLiteral { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 12 | ast_leaf_default_new! {NumberLiteral,NUMBER } [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumberLiteralFactory` is never constructed [INFO] [stdout] --> src/ast/leaf/number_literal.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | ast_leaf_factory_default_impl! {NumberLiteralFactory,NumberLiteral} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 227 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | ast_leaf_factory_default_impl! {NumberLiteralFactory,NumberLiteral} [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_match` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn is_match(token: &Box) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/identifier_literal.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | impl IdentifierLiteral { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 16 | [INFO] [stdout] 17 | ast_leaf_default_new! {IdentifierLiteral,IDENTIFIER } [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdentifierLiteralFactory` is never constructed [INFO] [stdout] --> src/ast/leaf/identifier_literal.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | ast_leaf_factory_default_impl! {IdentifierLiteralFactory,IdentifierLiteral} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 227 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/identifier_literal.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | ast_leaf_factory_default_impl! {IdentifierLiteralFactory,IdentifierLiteral} [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExprFactory` is never constructed [INFO] [stdout] --> src/ast/list/binary_expr.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ast_list_factory_default_impl! {BinaryExprFactory,BinaryExpr} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/binary_expr.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | ast_list_factory_default_impl! {BinaryExprFactory,BinaryExpr} [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/block_stmt.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | ast_list_factory_default_impl! {BlockStmtFactory,BlockStmt} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/block_stmt.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | ast_list_factory_default_impl! {BlockStmtFactory,BlockStmt} [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IfStmt` is never constructed [INFO] [stdout] --> src/ast/list/if_stmt.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IfStmt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `condition`, `then_block`, and `else_block` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/if_stmt.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | impl IfStmt { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | ast_list_default_new! {IfStmt} [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] 14 | [INFO] [stdout] 15 | fn condition(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn then_block(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn else_block(&self) -> Option<&Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IfStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/if_stmt.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | ast_list_factory_default_impl! {IfStmtFactory,IfStmt} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/if_stmt.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | ast_list_factory_default_impl! {IfStmtFactory,IfStmt} [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeExpr` is never constructed [INFO] [stdout] --> src/ast/list/negative_expr.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NegativeExpr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `operand` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | impl NegativeExpr { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | ast_list_default_new! { NegativeExpr } [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] 13 | [INFO] [stdout] 14 | fn operand(&self) -> Result< &Box,String>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeExprFactory` is never constructed [INFO] [stdout] --> src/ast/list/negative_expr.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | ast_list_factory_default_impl! {NegativeExprFactory,NegativeExpr} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | ast_list_factory_default_impl! {NegativeExprFactory,NegativeExpr} [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/null_stmt.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | impl NullStmt { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 13 | ast_list_default_new! { NullStmt } [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NullStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/null_stmt.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | ast_list_factory_default_impl! {NullStmtFactory,NullStmt} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/null_stmt.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | ast_list_factory_default_impl! {NullStmtFactory,NullStmt} [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrimaryExpr` is never constructed [INFO] [stdout] --> src/ast/list/primary_expr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct PrimaryExpr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `operand`, `postfix`, `has_postfix`, and `eval_sub_expr` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/primary_expr.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | impl PrimaryExpr { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | ast_list_default_new! { PrimaryExpr } [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] 16 | [INFO] [stdout] 17 | fn operand(&self) -> Result<&Box, String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn postfix(&self, nest: usize) -> Result<&Box, String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn has_postfix(&self, nest: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn eval_sub_expr(&self, env: &mut EnvWrapper, nest: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrimaryExprFactory` is never constructed [INFO] [stdout] --> src/ast/list/primary_expr.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct PrimaryExprFactory {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/list/primary_expr.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl PrimaryExprFactory { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 49 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhileStmt` is never constructed [INFO] [stdout] --> src/ast/list/while_stmt.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct WhileStmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `condition`, and `body` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/while_stmt.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | impl WhileStmt { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | ast_list_default_new! { WhileStmt } [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] 12 | [INFO] [stdout] 13 | fn condition(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn body(&self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhileStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/while_stmt.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_factory_default_impl! {WhileStmtFactory,WhileStmt} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/while_stmt.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_factory_default_impl! {WhileStmtFactory,WhileStmt} [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParameterListFactory` is never constructed [INFO] [stdout] --> src/ast/list/paramter_list.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 39 | ast_list_factory_default_impl!{ ParameterListFactory,ParameterList } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/paramter_list.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | ast_list_factory_default_impl!{ ParameterListFactory,ParameterList } [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefStmt` is never constructed [INFO] [stdout] --> src/ast/list/def_stmt.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct DefStmt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `def_name`, `param_list`, and `block_stmt` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/def_stmt.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | impl DefStmt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 16 | ast_list_default_new! { DefStmt } [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] 17 | [INFO] [stdout] 18 | fn def_name(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn param_list(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn block_stmt(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/def_stmt.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | ast_list_factory_default_impl! { DefStmtFactory,DefStmt } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/def_stmt.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | ast_list_factory_default_impl! { DefStmtFactory,DefStmt } [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arguments` is never constructed [INFO] [stdout] --> src/ast/list/arguments.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Arguments { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/arguments.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | impl Arguments { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 18 | ast_list_default_new! { Arguments } [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArgumentsFactory` is never constructed [INFO] [stdout] --> src/ast/list/arguments.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_factory_default_impl! { ArgumentsFactory,Arguments } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/arguments.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_factory_default_impl! { ArgumentsFactory,Arguments } [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunStmt` is never constructed [INFO] [stdout] --> src/ast/list/fun_stmt.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct FunStmt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `param_list`, and `block_stmt` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/fun_stmt.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | impl FunStmt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 14 | ast_list_default_new! { FunStmt } [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] 15 | [INFO] [stdout] 16 | fn param_list(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn block_stmt(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunStmtFactory` is never constructed [INFO] [stdout] --> src/ast/list/fun_stmt.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | ast_list_factory_default_impl! { FunStmtFactory,FunStmt } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/fun_stmt.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | ast_list_factory_default_impl! { FunStmtFactory,FunStmt } [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_def` and `child_downcast` are never used [INFO] [stdout] --> src/ast/ast_list.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl AstList { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new_def(children: Vec>) -> AstList { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn child_downcast(&self, index: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefAstLeafFactory` is never constructed [INFO] [stdout] --> src/ast/ast_leaf.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | ast_leaf_factory_default_impl! {DefAstLeafFactory,AstLeaf} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 227 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/ast_leaf.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | ast_leaf_factory_default_impl! {DefAstLeafFactory,AstLeaf} [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Element` is never used [INFO] [stdout] --> src/parser/element.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/parser/element.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/element.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Tree { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(parser: &Rc>) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrTree` is never constructed [INFO] [stdout] --> src/parser/element.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct OrTree { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `choose`, and `insert` are never used [INFO] [stdout] --> src/parser/element.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl OrTree { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 60 | pub fn new(parser_vec: Vec>>) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn choose(&self, lexer: &mut dyn Lexer) -> Option>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert(&mut self,parser: &Rc>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repeat` is never constructed [INFO] [stdout] --> src/parser/element.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Repeat { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/element.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 114 | impl Repeat { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 115 | pub fn new(parser: &Rc>, only_once: bool) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrToken` is never constructed [INFO] [stdout] --> src/parser/element.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | ast_element_terminal_default_impl! {StrToken,StringLiteral,StringLiteralFactory} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_def` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 178 | impl $ele_name { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 179 | pub fn new(factory:Option>) -> Box{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_def() -> Box{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | ast_element_terminal_default_impl! {StrToken,StringLiteral,StringLiteralFactory} [INFO] [stdout] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumToken` is never constructed [INFO] [stdout] --> src/parser/element.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | ast_element_terminal_default_impl! {NumToken, NumberLiteral,NumberLiteralFactory} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_def` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 178 | impl $ele_name { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 179 | pub fn new(factory:Option>) -> Box{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_def() -> Box{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | ast_element_terminal_default_impl! {NumToken, NumberLiteral,NumberLiteralFactory} [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdToken` is never constructed [INFO] [stdout] --> src/parser/element.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct IdToken { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_def` are never used [INFO] [stdout] --> src/parser/element.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl IdToken { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 160 | pub fn new(factory: Option>, vec: &Vec<&str>) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn new_def(vec: Vec<&str>) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Leaf` is never constructed [INFO] [stdout] --> src/parser/element.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Leaf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/element.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Leaf { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 202 | pub fn new(leaf_literal: Vec<&str>) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Skip` is never constructed [INFO] [stdout] --> src/parser/element.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct Skip { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/element.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl Skip { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 233 | pub fn new(leaf_literal: Vec<&str>) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Precedence` is never constructed [INFO] [stdout] --> src/parser/element.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct Precedence { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `left` and `right` are never used [INFO] [stdout] --> src/parser/element.rs:272:12 [INFO] [stdout] | [INFO] [stdout] 271 | impl Precedence { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 272 | pub fn left(name: &'static str, value: usize) -> Precedence { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn right(name: &'static str, value: usize) -> Precedence { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Operators` is never constructed [INFO] [stdout] --> src/parser/element.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct Operators { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `get`, and `rc` are never used [INFO] [stdout] --> src/parser/element.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 284 | impl Operators { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 285 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | pub fn add(&mut self, precedence: Precedence) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn get(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn rc(mut self) -> Rc { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Expr` is never constructed [INFO] [stdout] --> src/parser/element.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/element.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 314 | impl Expr { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 315 | pub fn new(factor: Rc>, operators: Rc, factory: Box) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/parser.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/null_stmt.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/parser.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn rule_def() -> Parser { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn rule(factory: Box) -> Parser { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn parse(&self, lexer: &mut dyn Lexer) -> Result, String> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn is_match(&self, lexer: &mut dyn Lexer) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn reset(&mut self, factory: Option>) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn reset_def(&mut self) -> &Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn number(&mut self, factory: Option>) -> &Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn identifier(&mut self, factory: Option>, reserved: &Vec<&str>) -> &Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn string(&mut self, factory: Option>) -> &Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn token(&mut self, pat: Vec<&str>) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn ast(&mut self, pat: &Rc>) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn sep(&mut self, pat: Vec<&str>) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn or_owner(mut self, vec: Vec<&Rc>>) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn or(&mut self, vec: Vec<&Rc>>) -> &Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn maybe(&mut self, repeat: &Rc>) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn option(&mut self, repeat: &Rc>) -> &Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn repeat(&mut self, repeat: &Rc>) -> &Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn expr(&mut self, f: Box, factor: &Rc>, operators: &Rc) -> &Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn expr_ref(&mut self, f: Box, factor: &Rc>, operators: &Rc) -> &Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn insert_choice(mut self, parser: &Rc>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn otherwise(&mut self,parser:&Rc>) -> Rc> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn rc(mut self) -> Rc> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AstFactory` is never used [INFO] [stdout] --> src/parser/factory.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait AstFactory { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AstLeafFactory` is never used [INFO] [stdout] --> src/parser/factory.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait AstLeafFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AstListFactory` is never constructed [INFO] [stdout] --> src/parser/factory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AstListFactory {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/parser/factory.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl AstListFactory { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stone_parser` is never used [INFO] [stdout] --> src/parser/basic_parser.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn stone_parser() -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stone_parser` is never used [INFO] [stdout] --> src/parser/basic_parser_macros.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn stone_parser() -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stone_parser_with_func` is never used [INFO] [stdout] --> src/parser/func_parser.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn stone_parser_with_func() -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MapNestedEnv` is never constructed [INFO] [stdout] --> src/eval/environment.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct MapNestedEnv<'outer, 'env> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_with`, `wrapper`, `set_outer`, and `capture` are never used [INFO] [stdout] --> src/eval/environment.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'outer, 'env> MapNestedEnv<'outer, 'env> { [INFO] [stdout] | --------------------------------------------- associated items in this implementation [INFO] [stdout] 119 | pub fn new() -> MapNestedEnv<'outer, 'env> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn new_with(outer: &'outer mut EnvWrapper<'env>) -> MapNestedEnv<'outer, 'env> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn wrapper(self) -> EnvWrapper<'outer> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn set_outer(&mut self, outer: &'outer mut EnvWrapper<'env>) -> &mut MapNestedEnv<'outer, 'env> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn capture(env: &'outer mut EnvWrapper<'env>, arg: &Arguments, param_list: &ParameterList) -> Result, ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoneLang` is never constructed [INFO] [stdout] --> src/stone.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct StoneLang<'s> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_def`, `code_2_ast`, and `code_eval` are never used [INFO] [stdout] --> src/stone.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'s> StoneLang<'s> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new_def() -> StoneLang<'s> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn code_2_ast(&mut self, code: String) -> Result>, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn code_eval(&mut self, code: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Log` is never constructed [INFO] [stdout] --> src/native/log.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Log; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `log`, and `to_box` are never used [INFO] [stdout] --> src/native/log.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Log { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn log(msg: &str) -> EvalRes { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn to_box(self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reg_native_fun` is never used [INFO] [stdout] --> src/native/native_fun.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn reg_native_fun(native_fun: Box, env: &mut EnvWrapper) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `native_reg` is never used [INFO] [stdout] --> src/native/native_reg.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn native_reg(env: &mut EnvWrapper) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_tree.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | fn children(&self) -> Iter>; [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 10 | fn children(&self) -> Iter<'_, Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | ast_leaf_default_impl! {StringLiteral,TokenText} [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | ast_leaf_default_impl! {NumberLiteral,TokenNumber} [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/identifier_literal.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | ast_leaf_default_impl! {IdentifierLiteral,TokenIdentifier} [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/binary_expr.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | ast_list_default_impl! {BinaryExpr} [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/block_stmt.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | ast_list_default_impl! {BlockStmt} [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/if_stmt.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | ast_list_default_impl! {IfStmt} [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/paramter_list.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn param_name(&self, env: &mut EnvWrapper, index:usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_default_impl! { NegativeExpr } [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/paramter_list.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/null_stmt.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | ast_list_default_impl! { NullStmt } [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/primary_expr.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | ast_list_default_impl! { PrimaryExpr } [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/while_stmt.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | ast_list_default_impl! { WhileStmt } [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/paramter_list.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | ast_list_default_impl!{ ParameterList } [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/def_stmt.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | ast_list_default_impl! { DefStmt } [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/arguments.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | ast_list_default_impl! { Arguments } [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/fun_stmt.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | ast_list_default_impl! { FunStmt } [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_list.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | fn children(&self) -> Iter> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 61 | fn children(&self) -> Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_leaf.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | fn children(&self) -> Iter> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | fn children(&self) -> Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/arguments.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/ast/list/arguments.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | EvalRes::FUNCTION(func_name, param_list, func_block) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/ast/list/arguments.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | EvalRes::NativeFun(func_name, func_block_native) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/stone.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn code_eval(&mut self, code: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn code_eval(&mut self, code: String) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/ast/list/fun_stmt.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | fn do_eval(&self, env: &mut EnvWrapper) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/ast/ast_leaf.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | fn child(&self, index: usize) -> Option<&Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/parser/element.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | fn is_match(&self, lexer: &mut dyn Lexer) -> bool { false } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/parser/element.rs:243:44 [INFO] [stdout] | [INFO] [stdout] 243 | fn parse(&self, lexer: &mut dyn Lexer, res: &mut Vec>) -> Result<(), String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/element.rs:303:15 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn rc(mut self) -> Rc { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | if let Some(mut ele_0) = self.elements.get_mut(0) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | let mut or_tree = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser.rs:152:15 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn rc(mut self) -> Rc> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/basic_parser_macros.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut expr = rule!(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/basic_parser_macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut statement = rule!(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:68 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:31:93 [INFO] [stdout] | [INFO] [stdout] 31 | or!(primary: seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | seq!(block: "{" [ statement ] { (";","\n") [ statement ] } "}" ); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/basic_parser_macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | seq!(if : "if" expr block [ "else" block ]), [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/parser/parser_macros.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq = parser.borrow_mut(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut expr = rule!(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut statement = rule!(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/func_parser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | let mut seq = parser.borrow_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut block = seq!(block: ); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let param = seq!(seq: id->reserved); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | let params = seq!(param_list: param { "," param }); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let param_list = seq!(seq: "(" [ params ]* ")"); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | let args = seq!(args: expr { "," expr }); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let postfix = seq!(seq: "(" [args]* ")"); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:58 [INFO] [stdout] | [INFO] [stdout] 35 | ... or!(primary:seq!{fun: "fun" param_list block } , seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:st... [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:84 [INFO] [stdout] | [INFO] [stdout] 35 | ... or!(primary:seq!{fun: "fun" param_list block } , seq!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:st... [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:104 [INFO] [stdout] | [INFO] [stdout] 35 | ...!{seq: "(" expr ")"}, seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:35:129 [INFO] [stdout] | [INFO] [stdout] 35 | ... seq!(seq: number), seq!(seq: id->reserved), seq!(seq:string)); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | seq!(block; seq : "{" [ statement ] { (";","\n") [ statement ] } "}" ); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parser_macros.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parser = crate::parser::parser::Parser::rule_def().rc(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/func_parser.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | seq!(if : "if" expr block [ "else" block ]), [INFO] [stdout] | ------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `seq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/eval/eval.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | fn do_eval_postfix(&self, env: &mut EnvWrapper, result: EvalRes) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/eval/eval.rs:78:53 [INFO] [stdout] | [INFO] [stdout] 78 | fn do_eval_postfix(&self, env: &mut EnvWrapper, result: EvalRes) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval/environment.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut value_op = self.env_map.remove(key); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/eval/environment.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | Some(mut env_had) => { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stone.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut lexer = &mut self.lexer; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/stone.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut parser = &mut self.parser; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/stone.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for (index, ast_tree_one) in ast_tree_res_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: `other` [INFO] [stdout] --> src/native/native_fun.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn eq(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `literal` is never used [INFO] [stdout] --> src/lexer/line_reader_lexer.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl MatchNames { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | fn literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_with_generic` is never used [INFO] [stdout] --> src/tests/element_test.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 89 | impl Test { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_with_generic(mut self, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_is_type` is never used [INFO] [stdout] --> src/util/type_util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn struct_is_type(struct_any: &dyn Any) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_downcast_ref` is never used [INFO] [stdout] --> src/util/type_util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn struct_downcast_ref(struct_any: Box) -> Result,Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_and_flush` is never used [INFO] [stdout] --> src/util/dev_util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn print_and_flush(msg:&str, debug:&dyn Debug) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_and_flush_msg` is never used [INFO] [stdout] --> src/util/dev_util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn print_and_flush_msg(msg:&str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeExpr` is never constructed [INFO] [stdout] --> src/ast/list/negative_expr.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NegativeExpr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `operand` are never used [INFO] [stdout] --> src/ast/ast_macros.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new($field_name: Vec>) -> $node_name { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | impl NegativeExpr { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | ast_list_default_new! { NegativeExpr } [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] 13 | [INFO] [stdout] 14 | fn operand(&self) -> Result< &Box,String>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_new` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeExprFactory` is never constructed [INFO] [stdout] --> src/ast/list/negative_expr.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | ast_list_factory_default_impl! {NegativeExprFactory,NegativeExpr} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 247 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 248 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | ast_list_factory_default_impl! {NegativeExprFactory,NegativeExpr} [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefAstLeafFactory` is never constructed [INFO] [stdout] --> src/ast/ast_leaf.rs:68:33 [INFO] [stdout] | [INFO] [stdout] 68 | ast_leaf_factory_default_impl! {DefAstLeafFactory,AstLeaf} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl $factory_name { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 227 | pub fn new() -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/ast_leaf.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | ast_leaf_factory_default_impl! {DefAstLeafFactory,AstLeaf} [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_factory_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory` is never read [INFO] [stdout] --> src/ast/ast_macros.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | factory: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | ast_element_terminal_default_impl! {StrToken,StringLiteral,StringLiteralFactory} [INFO] [stdout] | -------------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_def` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 178 | impl $ele_name { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_def() -> Box{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:153:1 [INFO] [stdout] | [INFO] [stdout] 153 | ast_element_terminal_default_impl! {StrToken,StringLiteral,StringLiteralFactory} [INFO] [stdout] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory` is never read [INFO] [stdout] --> src/ast/ast_macros.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | factory: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | ast_element_terminal_default_impl! {NumToken, NumberLiteral,NumberLiteralFactory} [INFO] [stdout] | --------------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_def` is never used [INFO] [stdout] --> src/ast/ast_macros.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 178 | impl $ele_name { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn new_def() -> Box{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser/element.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | ast_element_terminal_default_impl! {NumToken, NumberLiteral,NumberLiteralFactory} [INFO] [stdout] | --------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_element_terminal_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory` is never read [INFO] [stdout] --> src/parser/element.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct IdToken { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 156 | reserved: Vec, [INFO] [stdout] 157 | factory: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_def` is never used [INFO] [stdout] --> src/parser/element.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl IdToken { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn new_def(vec: Vec<&str>) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset`, `reset_def`, `token`, `expr`, `insert_choice`, and `otherwise` are never used [INFO] [stdout] --> src/parser/parser.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn reset(&mut self, factory: Option>) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn reset_def(&mut self) -> &Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn token(&mut self, pat: Vec<&str>) -> &Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn expr(&mut self, f: Box, factor: &Rc>, operators: &Rc) -> &Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn insert_choice(mut self, parser: &Rc>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn otherwise(&mut self,parser:&Rc>) -> Rc> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make` is never used [INFO] [stdout] --> src/parser/factory.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait AstLeafFactory { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 13 | fn make(&self, res: Box) -> Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stone_parser` is never used [INFO] [stdout] --> src/parser/basic_parser.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn stone_parser() -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/element_test.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | x.parse(&mut lexer, &mut res); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = x.parse(&mut lexer, &mut res); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `astTree` should have a snake case name [INFO] [stdout] --> src/tests/element_test.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | Ok(astTree) => { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ast_tree` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement drops value [INFO] [stdout] --> src/tests/element_test.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | parser; [INFO] [stdout] | ^^^^^^^ help: use `drop` to clarify the intent: `drop(parser);` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/func_test.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | outer.put("a".to_string(), EvalRes::BOOLEAN(false)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 185 | let _ = outer.put("a".to_string(), EvalRes::BOOLEAN(false)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_tree.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | fn children(&self) -> Iter>; [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 10 | fn children(&self) -> Iter<'_, Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/string_literal.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | ast_leaf_default_impl! {StringLiteral,TokenText} [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/number_literal.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | ast_leaf_default_impl! {NumberLiteral,TokenNumber} [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ -------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/leaf/identifier_literal.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | ast_leaf_default_impl! {IdentifierLiteral,TokenIdentifier} [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_leaf_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/binary_expr.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | ast_list_default_impl! {BinaryExpr} [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/block_stmt.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | ast_list_default_impl! {BlockStmt} [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/if_stmt.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | ast_list_default_impl! {IfStmt} [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/negative_expr.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | ast_list_default_impl! { NegativeExpr } [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/null_stmt.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | ast_list_default_impl! { NullStmt } [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/primary_expr.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | ast_list_default_impl! { PrimaryExpr } [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/while_stmt.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | ast_list_default_impl! { WhileStmt } [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/paramter_list.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | ast_list_default_impl!{ ParameterList } [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/def_stmt.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | ast_list_default_impl! { DefStmt } [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/arguments.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | ast_list_default_impl! { Arguments } [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_macros.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter> { [INFO] [stdout] | ^^^^^ --------------------------------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] ::: src/ast/list/fun_stmt.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | ast_list_default_impl! { FunStmt } [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ast_list_default_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 116 | fn children(&self) -> std::slice::Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_list.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | fn children(&self) -> Iter> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 61 | fn children(&self) -> Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/ast_leaf.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | fn children(&self) -> Iter> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | fn children(&self) -> Iter<'_, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/stone.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn code_eval(&mut self, code: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn code_eval(&mut self, code: String) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.04s [INFO] running `Command { std: "docker" "inspect" "5cd9a01db6ca439a849b2b1f33e36832b6126327a07443561d6f9f1e97a728fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cd9a01db6ca439a849b2b1f33e36832b6126327a07443561d6f9f1e97a728fa", kill_on_drop: false }` [INFO] [stdout] 5cd9a01db6ca439a849b2b1f33e36832b6126327a07443561d6f9f1e97a728fa