[INFO] cloning repository https://github.com/intbyte-100/olynt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/intbyte-100/olynt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fintbyte-100%2Folynt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fintbyte-100%2Folynt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a127bad500e97cfe2a109a721bde2257ac1ee9ad [INFO] checking intbyte-100/olynt against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fintbyte-100%2Folynt" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/intbyte-100/olynt on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/intbyte-100/olynt [INFO] finished tweaking git repo https://github.com/intbyte-100/olynt [INFO] tweaked toml for git repo https://github.com/intbyte-100/olynt written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/intbyte-100/olynt 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e50b184ee74cfcdb809af35a71bd589b6460f57e45931abfa53758ab654348fc [INFO] running `Command { std: "docker" "start" "-a" "e50b184ee74cfcdb809af35a71bd589b6460f57e45931abfa53758ab654348fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e50b184ee74cfcdb809af35a71bd589b6460f57e45931abfa53758ab654348fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e50b184ee74cfcdb809af35a71bd589b6460f57e45931abfa53758ab654348fc", kill_on_drop: false }` [INFO] [stdout] e50b184ee74cfcdb809af35a71bd589b6460f57e45931abfa53758ab654348fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef6fad5e9181e6c9c5f5c8523ba9b7b8b28549e7ead7b4a28c7ca3157b2ca4ee [INFO] running `Command { std: "docker" "start" "-a" "ef6fad5e9181e6c9c5f5c8523ba9b7b8b28549e7ead7b4a28c7ca3157b2ca4ee", kill_on_drop: false }` [INFO] [stderr] Checking sll v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ASTGenerator`, `AST`, `self` [INFO] [stdout] --> src/frontend/parser.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | frontend::ast::{ASTGenerator, AST}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 5 | frontend::chariter::CharIterator, [INFO] [stdout] 6 | util::logger::{self, Logger}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatcherFlag`, `self` [INFO] [stdout] --> src/frontend/ast.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | frontend::token::{self, MatcherFlag, WordTokenMatcher}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ASTGenerator`, `AST`, `self` [INFO] [stdout] --> src/frontend/parser.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | frontend::ast::{ASTGenerator, AST}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 5 | frontend::chariter::CharIterator, [INFO] [stdout] 6 | util::logger::{self, Logger}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatcherFlag`, `self` [INFO] [stdout] --> src/frontend/ast.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | frontend::token::{self, MatcherFlag, WordTokenMatcher}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnlyErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnlyErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ERROR_AND_WARNS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ERROR_AND_WARNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ErrorAndWarns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ERROR_AND_WARNS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ERROR_AND_WARNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ErrorAndWarns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::mask::Mask` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use util::mask::Mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::mask::Mask` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use util::mask::Mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut lines = BufReader::new(file).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_index`, `lines`, `logger`, and `buffer` are never read [INFO] [stdout] --> src/frontend/parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | line_index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | lines: &'a mut Lines, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | logger: &'a mut Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | buffer: LinkedList, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_line` and `next` are never used [INFO] [stdout] --> src/frontend/parser.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn parse_line(&mut self) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineLexer` is never constructed [INFO] [stdout] --> src/frontend/parser.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct LineLexer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_next`, `trim`, `is_space`, `next`, and `string_token` are never used [INFO] [stdout] --> src/frontend/parser.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl<'a> LineLexer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 65 | pub(crate) fn new(string: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub(crate) fn has_next(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn trim(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn is_space(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn string_token(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CharIterator` is never constructed [INFO] [stdout] --> src/frontend/chariter.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) struct CharIterator> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `go_back` are never used [INFO] [stdout] --> src/frontend/chariter.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl CharIterator where I: Iterator { [INFO] [stdout] | --------------------------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn new(iter: I) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn next(&mut self) -> Option<(usize, char)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn go_back(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Function` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/frontend/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AST { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ASTGenerator` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct ASTGenerator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `define_func`, `parse_expresion`, `define_submodule`, and `finish_sentence` are never used [INFO] [stdout] --> src/frontend/ast.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a, 'b> ASTGenerator<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(logger: &'a mut Logger, ast: &'a mut AST) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn push(&mut self, line: &u32, token: Token) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | [INFO] [stdout] 60 | fn define_submodule(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn finish_sentence(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SentenceType` is never used [INFO] [stdout] --> src/frontend/sentence.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum SentenceType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpressionElement` is never used [INFO] [stdout] --> src/frontend/sentence.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) enum ExpressionElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct ExpressionSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionBlock` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct ExecutionBlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclareSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct VariableDeclareSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSentecne` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct CallSentecne { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) struct IterSentence { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RangeSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct RangeSentence { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Word`, `Number`, `Operator`, and `NewLine` are never constructed [INFO] [stdout] --> src/frontend/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Word(u32, String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Number(u32, String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Operator(u32, char), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | NewLine(u32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `to_string` are never used [INFO] [stdout] --> src/frontend/token.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn parse(line_index: u32, string: &str) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatcherFlag` is never used [INFO] [stdout] --> src/frontend/token.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) enum MatcherFlag { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut lines = BufReader::new(file).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatcherMask` is never constructed [INFO] [stdout] --> src/frontend/token.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) struct MatcherMask { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `get_state`, and `is_ok` are never used [INFO] [stdout] --> src/frontend/token.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl MatcherMask { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 52 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn enable(&mut self, flag: MatcherFlag) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_state(&self, flag: MatcherFlag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordTokenMatcher` is never constructed [INFO] [stdout] --> src/frontend/token.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) struct WordTokenMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `equals` are never used [INFO] [stdout] --> src/frontend/token.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl WordTokenMatcher { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 77 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn from(token: Token) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn equals(mut self, val: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_index`, `lines`, `logger`, and `buffer` are never read [INFO] [stdout] --> src/frontend/parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | line_index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | lines: &'a mut Lines, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | logger: &'a mut Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | buffer: LinkedList, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_special_symbol` is never used [INFO] [stdout] --> src/frontend/util.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) fn is_special_symbol(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_line` and `next` are never used [INFO] [stdout] --> src/frontend/parser.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn parse_line(&mut self) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineLexer` is never constructed [INFO] [stdout] --> src/frontend/parser.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct LineLexer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` is never constructed [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LoggerType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_next`, `trim`, `is_space`, `next`, and `string_token` are never used [INFO] [stdout] --> src/frontend/parser.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl<'a> LineLexer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 65 | pub(crate) fn new(string: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub(crate) fn has_next(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn trim(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn is_space(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn string_token(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer`, `loger_type`, `file_name`, and `logs` are never read [INFO] [stdout] --> src/util/logger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Logger { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | writer: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | loger_type: LoggerType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | logs: LinkedList, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CharIterator` is never constructed [INFO] [stdout] --> src/frontend/chariter.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) struct CharIterator> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/util/logger.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn error(&mut self, line: u32, token_index: u32, log: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `go_back` are never used [INFO] [stdout] --> src/frontend/chariter.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl CharIterator where I: Iterator { [INFO] [stdout] | --------------------------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn new(iter: I) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn next(&mut self) -> Option<(usize, char)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn go_back(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Function` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line`, `token_index`, and `log` are never read [INFO] [stdout] --> src/util/logger.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 37 | line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | token_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | log: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/frontend/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AST { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ASTGenerator` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct ASTGenerator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/mask.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait MaskElement [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 54 | fn one() -> T; [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | fn lshift(&self, size: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | fn bitand(&self, value: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | fn bitor(&self, value: T) -> T; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | fn set_mask(&mut self, value: T); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | fn to_bool(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `define_func`, `parse_expresion`, `define_submodule`, and `finish_sentence` are never used [INFO] [stdout] --> src/frontend/ast.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a, 'b> ASTGenerator<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(logger: &'a mut Logger, ast: &'a mut AST) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn push(&mut self, line: &u32, token: Token) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | [INFO] [stdout] 60 | fn define_submodule(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn finish_sentence(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/util/mask.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Mask [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SentenceType` is never used [INFO] [stdout] --> src/frontend/sentence.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum SentenceType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpressionElement` is never used [INFO] [stdout] --> src/frontend/sentence.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) enum ExpressionElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct ExpressionSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set`, `get`, `as_int`, and `new` are never used [INFO] [stdout] --> src/util/mask.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 86 | / impl Mask [INFO] [stdout] 87 | | where [INFO] [stdout] 88 | | T: MaskElement, [INFO] [stdout] 89 | | T: Copy, [INFO] [stdout] | |____________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, index: T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn as_int(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn new() -> Mask{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionBlock` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct ExecutionBlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclareSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct VariableDeclareSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSentecne` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct CallSentecne { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) struct IterSentence { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RangeSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct RangeSentence { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Word`, `Number`, `Operator`, and `NewLine` are never constructed [INFO] [stdout] --> src/frontend/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Word(u32, String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Number(u32, String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Operator(u32, char), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | NewLine(u32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `to_string` are never used [INFO] [stdout] --> src/frontend/token.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn parse(line_index: u32, string: &str) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatcherFlag` is never used [INFO] [stdout] --> src/frontend/token.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) enum MatcherFlag { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatcherMask` is never constructed [INFO] [stdout] --> src/frontend/token.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) struct MatcherMask { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `get_state`, and `is_ok` are never used [INFO] [stdout] --> src/frontend/token.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl MatcherMask { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 52 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn enable(&mut self, flag: MatcherFlag) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_state(&self, flag: MatcherFlag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordTokenMatcher` is never constructed [INFO] [stdout] --> src/frontend/token.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) struct WordTokenMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `equals` are never used [INFO] [stdout] --> src/frontend/token.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl WordTokenMatcher { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 77 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn from(token: Token) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn equals(mut self, val: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_special_symbol` is never used [INFO] [stdout] --> src/frontend/util.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) fn is_special_symbol(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` is never constructed [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LoggerType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer`, `loger_type`, `file_name`, and `logs` are never read [INFO] [stdout] --> src/util/logger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Logger { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | writer: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | loger_type: LoggerType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | logs: LinkedList, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/util/logger.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn error(&mut self, line: u32, token_index: u32, log: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line`, `token_index`, and `log` are never read [INFO] [stdout] --> src/util/logger.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 37 | line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | token_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | log: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/mask.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait MaskElement [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 54 | fn one() -> T; [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | fn lshift(&self, size: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | fn bitand(&self, value: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | fn bitor(&self, value: T) -> T; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | fn set_mask(&mut self, value: T); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | fn to_bool(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/util/mask.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Mask [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set`, `get`, `as_int`, and `new` are never used [INFO] [stdout] --> src/util/mask.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 86 | / impl Mask [INFO] [stdout] 87 | | where [INFO] [stdout] 88 | | T: MaskElement, [INFO] [stdout] 89 | | T: Copy, [INFO] [stdout] | |____________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, index: T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn as_int(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn new() -> Mask{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "ef6fad5e9181e6c9c5f5c8523ba9b7b8b28549e7ead7b4a28c7ca3157b2ca4ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6fad5e9181e6c9c5f5c8523ba9b7b8b28549e7ead7b4a28c7ca3157b2ca4ee", kill_on_drop: false }` [INFO] [stdout] ef6fad5e9181e6c9c5f5c8523ba9b7b8b28549e7ead7b4a28c7ca3157b2ca4ee [INFO] checking intbyte-100/olynt against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fintbyte-100%2Folynt" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/intbyte-100/olynt on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/intbyte-100/olynt [INFO] finished tweaking git repo https://github.com/intbyte-100/olynt [INFO] tweaked toml for git repo https://github.com/intbyte-100/olynt written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/intbyte-100/olynt 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04836bc648d2c2d1a3c90bd672bb57f7f9880f43b22d40ddf199aa8c14f5f486 [INFO] running `Command { std: "docker" "start" "-a" "04836bc648d2c2d1a3c90bd672bb57f7f9880f43b22d40ddf199aa8c14f5f486", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04836bc648d2c2d1a3c90bd672bb57f7f9880f43b22d40ddf199aa8c14f5f486", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04836bc648d2c2d1a3c90bd672bb57f7f9880f43b22d40ddf199aa8c14f5f486", kill_on_drop: false }` [INFO] [stdout] 04836bc648d2c2d1a3c90bd672bb57f7f9880f43b22d40ddf199aa8c14f5f486 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c46a466394d861dcf265931e054567482576a68e01be1faab95ea58df78e5c3 [INFO] running `Command { std: "docker" "start" "-a" "3c46a466394d861dcf265931e054567482576a68e01be1faab95ea58df78e5c3", kill_on_drop: false }` [INFO] [stderr] Checking sll v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ASTGenerator`, `AST`, `self` [INFO] [stdout] --> src/frontend/parser.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | frontend::ast::{ASTGenerator, AST}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 5 | frontend::chariter::CharIterator, [INFO] [stdout] 6 | util::logger::{self, Logger}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatcherFlag`, `self` [INFO] [stdout] --> src/frontend/ast.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | frontend::token::{self, MatcherFlag, WordTokenMatcher}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnlyErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ERROR_AND_WARNS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ERROR_AND_WARNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ErrorAndWarns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::mask::Mask` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use util::mask::Mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ASTGenerator`, `AST`, `self` [INFO] [stdout] --> src/frontend/parser.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | frontend::ast::{ASTGenerator, AST}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^ [INFO] [stdout] 5 | frontend::chariter::CharIterator, [INFO] [stdout] 6 | util::logger::{self, Logger}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatcherFlag`, `self` [INFO] [stdout] --> src/frontend/ast.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | frontend::token::{self, MatcherFlag, WordTokenMatcher}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnlyErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ERROR_AND_WARNS` should have an upper camel case name [INFO] [stdout] --> src/util/logger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ERROR_AND_WARNS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ErrorAndWarns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::mask::Mask` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use util::mask::Mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut lines = BufReader::new(file).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_index`, `lines`, `logger`, and `buffer` are never read [INFO] [stdout] --> src/frontend/parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | line_index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | lines: &'a mut Lines, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | logger: &'a mut Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | buffer: LinkedList, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_line` and `next` are never used [INFO] [stdout] --> src/frontend/parser.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn parse_line(&mut self) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineLexer` is never constructed [INFO] [stdout] --> src/frontend/parser.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct LineLexer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_next`, `trim`, `is_space`, `next`, and `string_token` are never used [INFO] [stdout] --> src/frontend/parser.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl<'a> LineLexer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 65 | pub(crate) fn new(string: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub(crate) fn has_next(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn trim(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn is_space(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn string_token(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CharIterator` is never constructed [INFO] [stdout] --> src/frontend/chariter.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) struct CharIterator> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `go_back` are never used [INFO] [stdout] --> src/frontend/chariter.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl CharIterator where I: Iterator { [INFO] [stdout] | --------------------------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn new(iter: I) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn next(&mut self) -> Option<(usize, char)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn go_back(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Function` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/frontend/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AST { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ASTGenerator` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct ASTGenerator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `define_func`, `parse_expresion`, `define_submodule`, and `finish_sentence` are never used [INFO] [stdout] --> src/frontend/ast.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a, 'b> ASTGenerator<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(logger: &'a mut Logger, ast: &'a mut AST) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn push(&mut self, line: &u32, token: Token) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | [INFO] [stdout] 60 | fn define_submodule(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn finish_sentence(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SentenceType` is never used [INFO] [stdout] --> src/frontend/sentence.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum SentenceType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpressionElement` is never used [INFO] [stdout] --> src/frontend/sentence.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) enum ExpressionElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct ExpressionSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionBlock` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct ExecutionBlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclareSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct VariableDeclareSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSentecne` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct CallSentecne { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) struct IterSentence { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RangeSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct RangeSentence { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Word`, `Number`, `Operator`, and `NewLine` are never constructed [INFO] [stdout] --> src/frontend/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Word(u32, String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Number(u32, String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Operator(u32, char), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | NewLine(u32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `to_string` are never used [INFO] [stdout] --> src/frontend/token.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn parse(line_index: u32, string: &str) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatcherFlag` is never used [INFO] [stdout] --> src/frontend/token.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) enum MatcherFlag { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatcherMask` is never constructed [INFO] [stdout] --> src/frontend/token.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) struct MatcherMask { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `get_state`, and `is_ok` are never used [INFO] [stdout] --> src/frontend/token.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl MatcherMask { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 52 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn enable(&mut self, flag: MatcherFlag) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_state(&self, flag: MatcherFlag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordTokenMatcher` is never constructed [INFO] [stdout] --> src/frontend/token.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) struct WordTokenMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `equals` are never used [INFO] [stdout] --> src/frontend/token.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl WordTokenMatcher { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 77 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn from(token: Token) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn equals(mut self, val: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_special_symbol` is never used [INFO] [stdout] --> src/frontend/util.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) fn is_special_symbol(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` is never constructed [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LoggerType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer`, `loger_type`, `file_name`, and `logs` are never read [INFO] [stdout] --> src/util/logger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Logger { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | writer: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | loger_type: LoggerType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | logs: LinkedList, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/util/logger.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn error(&mut self, line: u32, token_index: u32, log: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line`, `token_index`, and `log` are never read [INFO] [stdout] --> src/util/logger.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 37 | line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | token_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | log: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:56:31 [INFO] [stdout] | [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/frontend/ast.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/mask.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait MaskElement [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 54 | fn one() -> T; [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | fn lshift(&self, size: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | fn bitand(&self, value: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | fn bitor(&self, value: T) -> T; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | fn set_mask(&mut self, value: T); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | fn to_bool(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/util/mask.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Mask [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set`, `get`, `as_int`, and `new` are never used [INFO] [stdout] --> src/util/mask.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 86 | / impl Mask [INFO] [stdout] 87 | | where [INFO] [stdout] 88 | | T: MaskElement, [INFO] [stdout] 89 | | T: Copy, [INFO] [stdout] | |____________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, index: T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn as_int(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn new() -> Mask{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut lines = BufReader::new(file).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lexer = Parser::new(&mut lines.enumerate(), &mut binding); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_index`, `lines`, `logger`, and `buffer` are never read [INFO] [stdout] --> src/frontend/parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | line_index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | lines: &'a mut Lines, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | logger: &'a mut Logger, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | buffer: LinkedList, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_line` and `next` are never used [INFO] [stdout] --> src/frontend/parser.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn parse_line(&mut self) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineLexer` is never constructed [INFO] [stdout] --> src/frontend/parser.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct LineLexer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_next`, `trim`, `is_space`, `next`, and `string_token` are never used [INFO] [stdout] --> src/frontend/parser.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl<'a> LineLexer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 65 | pub(crate) fn new(string: &'a String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub(crate) fn has_next(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn trim(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn is_space(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn next(&mut self) -> Option<&str> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn string_token(&mut self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CharIterator` is never constructed [INFO] [stdout] --> src/frontend/chariter.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) struct CharIterator> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `next`, and `go_back` are never used [INFO] [stdout] --> src/frontend/chariter.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 8 | impl CharIterator where I: Iterator { [INFO] [stdout] | --------------------------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn new(iter: I) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn next(&mut self) -> Option<(usize, char)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn go_back(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Function` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AST` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AST { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/frontend/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl AST { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ASTGenerator` is never constructed [INFO] [stdout] --> src/frontend/ast.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct ASTGenerator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `define_func`, `parse_expresion`, `define_submodule`, and `finish_sentence` are never used [INFO] [stdout] --> src/frontend/ast.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a, 'b> ASTGenerator<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(logger: &'a mut Logger, ast: &'a mut AST) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn push(&mut self, line: &u32, token: Token) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn define_func(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | fn parse_expresion(&mut self, line: &u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | [INFO] [stdout] 60 | fn define_submodule(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn finish_sentence(&mut self, line: &u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SentenceType` is never used [INFO] [stdout] --> src/frontend/sentence.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum SentenceType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpressionElement` is never used [INFO] [stdout] --> src/frontend/sentence.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) enum ExpressionElement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct ExpressionSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionBlock` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) struct ExecutionBlock { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclareSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct VariableDeclareSentence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallSentecne` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct CallSentecne { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) struct IterSentence { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RangeSentence` is never constructed [INFO] [stdout] --> src/frontend/sentence.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct RangeSentence { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Word`, `Number`, `Operator`, and `NewLine` are never constructed [INFO] [stdout] --> src/frontend/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Word(u32, String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Number(u32, String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Operator(u32, char), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | NewLine(u32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `to_string` are never used [INFO] [stdout] --> src/frontend/token.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) fn parse(line_index: u32, string: &str) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatcherFlag` is never used [INFO] [stdout] --> src/frontend/token.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) enum MatcherFlag { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatcherMask` is never constructed [INFO] [stdout] --> src/frontend/token.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) struct MatcherMask { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `get_state`, and `is_ok` are never used [INFO] [stdout] --> src/frontend/token.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl MatcherMask { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 52 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn enable(&mut self, flag: MatcherFlag) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get_state(&self, flag: MatcherFlag) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WordTokenMatcher` is never constructed [INFO] [stdout] --> src/frontend/token.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) struct WordTokenMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `equals` are never used [INFO] [stdout] --> src/frontend/token.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl WordTokenMatcher { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 77 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn from(token: Token) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn equals(mut self, val: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_special_symbol` is never used [INFO] [stdout] --> src/frontend/util.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) fn is_special_symbol(i: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONLY_ERRORS` is never constructed [INFO] [stdout] --> src/util/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum LoggerType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 6 | ONLY_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `writer`, `loger_type`, `file_name`, and `logs` are never read [INFO] [stdout] --> src/util/logger.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Logger { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | writer: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | loger_type: LoggerType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | file_name: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | logs: LinkedList, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/util/logger.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn error(&mut self, line: u32, token_index: u32, log: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line`, `token_index`, and `log` are never read [INFO] [stdout] --> src/util/logger.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Log { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 37 | line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | token_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | log: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/mask.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait MaskElement [INFO] [stdout] | ----------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 54 | fn one() -> T; [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | fn lshift(&self, size: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | fn bitand(&self, value: T) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | fn bitor(&self, value: T) -> T; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 58 | fn set_mask(&mut self, value: T); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | fn to_bool(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/util/mask.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Mask [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `set`, `get`, `as_int`, and `new` are never used [INFO] [stdout] --> src/util/mask.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 86 | / impl Mask [INFO] [stdout] 87 | | where [INFO] [stdout] 88 | | T: MaskElement, [INFO] [stdout] 89 | | T: Copy, [INFO] [stdout] | |____________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set(&mut self, index: T, value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, index: T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn as_int(&self) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn new() -> Mask{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "3c46a466394d861dcf265931e054567482576a68e01be1faab95ea58df78e5c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c46a466394d861dcf265931e054567482576a68e01be1faab95ea58df78e5c3", kill_on_drop: false }` [INFO] [stdout] 3c46a466394d861dcf265931e054567482576a68e01be1faab95ea58df78e5c3