[INFO] cloning repository https://github.com/Goodjooy/QQBotMsgTemplateEngine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Goodjooy/QQBotMsgTemplateEngine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FQQBotMsgTemplateEngine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FQQBotMsgTemplateEngine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a23f8acb748c31c86b8d56784a41efc8ee4836b8 [INFO] checking Goodjooy/QQBotMsgTemplateEngine against try#c4ca24658d934444a28db36abebef17a8651701a for pr-144156 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FQQBotMsgTemplateEngine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Goodjooy/QQBotMsgTemplateEngine [INFO] finished tweaking git repo https://github.com/Goodjooy/QQBotMsgTemplateEngine [INFO] tweaked toml for git repo https://github.com/Goodjooy/QQBotMsgTemplateEngine written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Goodjooy/QQBotMsgTemplateEngine on toolchain c4ca24658d934444a28db36abebef17a8651701a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Goodjooy/QQBotMsgTemplateEngine 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" "+c4ca24658d934444a28db36abebef17a8651701a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ead7a440f2f452b3b01363158361f825e19ff571183c2c995bff276195b37ca [INFO] running `Command { std: "docker" "start" "-a" "9ead7a440f2f452b3b01363158361f825e19ff571183c2c995bff276195b37ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ead7a440f2f452b3b01363158361f825e19ff571183c2c995bff276195b37ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ead7a440f2f452b3b01363158361f825e19ff571183c2c995bff276195b37ca", kill_on_drop: false }` [INFO] [stdout] 9ead7a440f2f452b3b01363158361f825e19ff571183c2c995bff276195b37ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e62cf49fb9134dd53abc30d864c237e46ce40cdc1d809b134f891c2b467ee39f [INFO] running `Command { std: "docker" "start" "-a" "e62cf49fb9134dd53abc30d864c237e46ce40cdc1d809b134f891c2b467ee39f", kill_on_drop: false }` [INFO] [stderr] Checking msg_template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Add`, `Div`, `Mul`, and `Sub` [INFO] [stdout] --> src/anaylze/var.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{Add, Div, Mul, Sub}; [INFO] [stdout] | ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/mid_output.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `Div`, `Mul`, and `Sub` [INFO] [stdout] --> src/anaylze/var.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::{Add, Div, Mul, Sub}; [INFO] [stdout] | ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/mid_output.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/anaylze/val_format.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | Value::UnSet(s) => String::from("Rander Time Set"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Anaylze` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Anaylze<'a, S> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Sign` is never used [INFO] [stdout] --> src/anaylze/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Sign { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/anaylze/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Var` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Var { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SignTableHandle` is never used [INFO] [stdout] --> src/anaylze/mod.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait SignTableHandle:Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoadNext` is never used [INFO] [stdout] --> src/anaylze/mod.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait LoadNext { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LoadNextWithSignTable` is never used [INFO] [stdout] --> src/anaylze/mod.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | pub trait LoadNextWithSignTable<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PreviewIter` is never used [INFO] [stdout] --> src/anaylze/mod.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub trait PreviewIter:Iterator { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PreviewableIter` is never constructed [INFO] [stdout] --> src/anaylze/lexical/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PreviewableIter<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LexicalType` is never used [INFO] [stdout] --> src/anaylze/lexical/mod.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum LexicalType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LexicalHandle` is never constructed [INFO] [stdout] --> src/anaylze/lexical/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct LexicalHandle<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OutDataLoader` is never constructed [INFO] [stdout] --> src/anaylze/lexical/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct OutDataLoader<'a, S>(LexicalHandle<'a>, &'a mut S, LexicalType) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_postion`, `get_sign_table`, `into_child`, and `leave_child` are never used [INFO] [stdout] --> src/anaylze/lexical/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a, S: SignTableHandle> OutDataLoader<'a, S> { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 62 | pub fn new(signs: &'a mut S, iter: PreviewableIter<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_postion(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_sign_table(&mut self) -> &mut S { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn into_child(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn leave_child(&mut self) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExprLexical` is never used [INFO] [stdout] --> src/anaylze/lexical/expr/mod.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ExprLexical { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_digit`, `read_litral`, and `read_sign_name` are never used [INFO] [stdout] --> src/anaylze/lexical/expr/mod.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl ExprLexical { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 57 | fn read_digit(init: i64, data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn read_litral(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn read_sign_name(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExprIter` is never constructed [INFO] [stdout] --> src/anaylze/lexical/expr/mod.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct ExprIter<'a, S>(PreviewableIter<'a>, &'a mut S, ExprLexical) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_postion` are never used [INFO] [stdout] --> src/anaylze/lexical/expr/mod.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl<'a, S: SignTableHandle> ExprIter<'a, S> { [INFO] [stdout] | -------------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new(signs: &'a mut S, iter: PreviewableIter<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_postion(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `load_next` are never used [INFO] [stdout] --> src/anaylze/lexical/handle.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl LexicalHandle<'_> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 6 | fn new(data: &str) -> LexicalHandle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn load_next(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `preview`, `preview_check`, and `get_postion` are never used [INFO] [stdout] --> src/anaylze/lexical/iter.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a> PreviewableIter<'a> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(data: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn preview(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn preview_check(data: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_postion(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Literal` is never constructed [INFO] [stdout] --> src/anaylze/lexical/literal/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Literal(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tag` is never used [INFO] [stdout] --> src/anaylze/lexical/tag/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Tag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TagStruct` is never constructed [INFO] [stdout] --> src/anaylze/lexical/tag/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TagStruct { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TagAttr` is never constructed [INFO] [stdout] --> src/anaylze/lexical/tag/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TagAttr(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/anaylze/lexical/tag/iter.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 7 | impl TagAttr { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | pub fn iter<'a>(&'a self) -> PreviewableIter<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/anaylze/lexical/tag/tag.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl TagStruct { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(name: String, attrs: HashMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_attrs(&self)->&HashMap{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn chcek_attr_exist(&self, k: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn check_attr_all_exist(&self, ks: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_default(&self,key:&str,default:&str)->TagAttr{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_raw`, `get_raw_owner`, and `get_iter` are never used [INFO] [stdout] --> src/anaylze/lexical/tag/tag.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl TagAttr { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 41 | pub fn get_raw(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_raw_owner(self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_iter<'a>(&'a self) -> PreviewableIter<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `load_tag`, `load_attrs`, `load_attr_name`, `load_attr_value`, `check_close_sign`, and `clear_comment` are never used [INFO] [stdout] --> src/anaylze/lexical/tag/tag_loader.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 55 | impl Tag { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 56 | fn load_tag(data: &mut PreviewableIter) -> Option<(String, bool)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn load_attrs(data: &mut PreviewableIter) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn load_attr_name(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn load_attr_value(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn check_close_sign(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn clear_comment(data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_space` is never used [INFO] [stdout] --> src/anaylze/lexical/util.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn clear_space(data: &mut PreviewableIter) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_next_sign` is never used [INFO] [stdout] --> src/anaylze/lexical/util.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn check_next_sign(sign: char, moving: bool, data: &mut PreviewableIter) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignTable` is never constructed [INFO] [stdout] --> src/anaylze/sign_table/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct SignTable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_root` and `new_child` are never used [INFO] [stdout] --> src/anaylze/sign_table/mod.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl SignTable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 72 | pub fn new_root() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn new_child(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SyntaxLoadNext` is never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait SyntaxLoadNext<'a, I, L> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoadStatus` is never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum LoadStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl LoadStatus { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn ok(data: T) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn unmatch(expr: N) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn load_or(self, f: F) -> T [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn ok_or_else(self, f: F) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn unmatch_then(self, f: F) ->Result< LoadStatus,LoadErr> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn and_then(self, f: F) -> LoadStatus [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn into_ok(self) -> Result, E> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn unwrap(self) -> T [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn unwarp_unmatch(self) -> N [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoadErr` is never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum LoadErr { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `unexpect`, `unsupport`, `attr_not_found`, and `sign_not_in_table` are never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl LoadErr { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 110 | pub fn unexpect<'a, T: Display>(expect: &'a str, get: T, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn unsupport<'a>(var: &Var, operate: &'a str, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn attr_not_found<'a>(attr_name: &str, tag_name: &str, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn sign_not_in_table<'a>(sign_name: &str, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Literal` is never constructed [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Literal(pub String); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExprVar` is never constructed [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ExprVar(pub Var); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Factor` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Factor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SubItem` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum SubItem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Item(pub Factor,pub SubItem); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SubCaculate` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum SubCaculate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Caculate` is never constructed [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Caculate(pub Item, pub SubCaculate); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nil_sign` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn nil_sign<'a, T, N>(err: LoadErr, nil: T) -> Result, LoadErr> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LexIter` is never constructed [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct LexIter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 97 | impl LexIter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 98 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/caculate.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> SubCaculate { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 74 | fn new(sign: char, item: Item, sub: SubCaculate) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_caculate` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/factor.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> Factor { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 55 | pub fn can_caculate<'b>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/expr/item.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl SubItem { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 80 | fn new<'a>(factor: Factor, sub: SubItem, sign: char) -> SubItem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TagInfo` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait TagInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Items(ItemMeta, Item); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Item` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemMeta` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum ItemMeta { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Tag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CtrlTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum CtrlTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Loops` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Loops { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InfoTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum InfoTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LiteralTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum LiteralTag { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/cmp.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl CmpMod { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 5 | pub fn new(ty:&str,data:&TagStruct,pos:(usize,usize),sign_table:&mut S)->Result{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `At` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct At { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Image` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sign` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Sign { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `If` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IfFollows` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum IfFollows { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Loop` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Loop { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `For` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct For { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `While` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct While { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CmpMod` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum CmpMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Var` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Var { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ValueOperate` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum ValueOperate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/ctrl_tag/var/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueOperate { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new<'a, S: SignTableHandle>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_tag_match` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn check_tag_match<'a, T: TagInfo>(lt: &'a LexicalType) -> Option<&'a TagStruct> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_tag_name` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn check_tag_name<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_express` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn load_express( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_attr` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn load_attr(tag: &TagStruct, key: &str, pos: (usize, usize)) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_end_tag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn check_end_tag( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_body` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn load_body<'a, S: SignTableHandle>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_string` and `format` are never used [INFO] [stdout] --> src/anaylze/val_format.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 7 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn format(&self, format: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/var.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Var { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 7 | pub fn new(name: &str, value: Value) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_value`, `into_value_mut`, and `into_value` are never used [INFO] [stdout] --> src/anaylze/var.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sign { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 16 | pub fn is_value(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn into_value_mut(&mut self) -> Option<&mut Value> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn into_value(&self) -> Option<&Value> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `into_var` and `into_temp` are never used [INFO] [stdout] --> src/anaylze/var.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 40 | pub fn into_var(self, name: &str) -> Var { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn into_temp(self) -> TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_as`, `add_assgin`, `sub_assgin`, `mul_assgin`, `div_assign`, and `push` are never used [INFO] [stdout] --> src/anaylze/var.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 59 | pub fn set_as(&mut self, target: Self) -> Option<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn sub_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn mul_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn div_assign(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn push(&mut self, data: Value) -> Option<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpQuate` is never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum OpQuate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InerData` is never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum InerData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoOpQuate` is never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait IntoOpQuate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_num`, `new_sign`, and `into_temp` are never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl InerData { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 86 | fn new_num(n: i64) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn new_sign(name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn into_temp(self) -> TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MidData` is never used [INFO] [stdout] --> src/mid_output.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum MidData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_sign` is never used [INFO] [stdout] --> src/mid_output.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl MidData { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 20 | pub fn get_sign(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Image` is never constructed [INFO] [stdout] --> src/mid_output.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TempValue` is never used [INFO] [stdout] --> src/mid_output.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MoveOffset` is never used [INFO] [stdout] --> src/mid_output.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | type MoveOffset = isize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoMid` is never used [INFO] [stdout] --> src/mid_output.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub trait IntoMid { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignIdGenerator` is never constructed [INFO] [stdout] --> src/mid_output.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct SignIdGenerator(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next_id` are never used [INFO] [stdout] --> src/mid_output.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl SignIdGenerator { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn next_id(&mut self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MidSignTable` is never constructed [INFO] [stdout] --> src/mid_output.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct MidSignTable(HashMap, usize); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_sign`, and `get_sign` are never used [INFO] [stdout] --> src/mid_output.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl MidSignTable { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 66 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn set_sign(&mut self, value: TempValue) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_sign(&self, id: usize) -> Option<&TempValue> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/anaylze/lexical/handle.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | fn new(data: &str) -> LexicalHandle { [INFO] [stdout] | ^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 6 | fn new(data: &str) -> LexicalHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/anaylze/val_format.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | Value::UnSet(s) => String::from("Rander Time Set"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Anaylze` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Anaylze<'a, S> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Const` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Sign { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 23 | Var(Var), [INFO] [stdout] 24 | Const(Value), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sign` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bool` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_exist` is never used [INFO] [stdout] --> src/anaylze/mod.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait SignTableHandle:Sized { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 41 | fn check_exist(&self, key: &str) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/anaylze/lexical/mod.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct OutDataLoader<'a, S>(LexicalHandle<'a>, &'a mut S, LexicalType) [INFO] [stdout] | ------------- field in this struct ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 32 - pub struct OutDataLoader<'a, S>(LexicalHandle<'a>, &'a mut S, LexicalType) [INFO] [stdout] 32 + pub struct OutDataLoader<'a, S>(LexicalHandle<'a>, (), LexicalType) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_postion`, `get_sign_table`, `into_child`, and `leave_child` are never used [INFO] [stdout] --> src/anaylze/lexical/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a, S: SignTableHandle> OutDataLoader<'a, S> { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 62 | pub fn new(signs: &'a mut S, iter: PreviewableIter<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_postion(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_sign_table(&mut self) -> &mut S { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn into_child(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn leave_child(&mut self) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/anaylze/lexical/tag/iter.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 7 | impl TagAttr { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | pub fn iter<'a>(&'a self) -> PreviewableIter<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `chcek_attr_exist`, `check_attr_all_exist`, `get`, and `get_default` are never used [INFO] [stdout] --> src/anaylze/lexical/tag/tag.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl TagStruct { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn chcek_attr_exist(&self, k: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn check_attr_all_exist(&self, ks: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_default(&self,key:&str,default:&str)->TagAttr{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_raw_owner` and `get_iter` are never used [INFO] [stdout] --> src/anaylze/lexical/tag/tag.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl TagAttr { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_raw_owner(self)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_iter<'a>(&'a self) -> PreviewableIter<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ok`, `load_or`, `unmatch_then`, and `unwarp_unmatch` are never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl LoadStatus { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] 25 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn load_or(self, f: F) -> T [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn unmatch_then(self, f: F) ->Result< LoadStatus,LoadErr> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn unwarp_unmatch(self) -> N [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TargetAttrNotExist` and `DataNotFoundInSignTable` are never constructed [INFO] [stdout] --> src/anaylze/syntax/mod.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum LoadErr { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 105 | TargetAttrNotExist(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | DataNotFoundInSignTable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoadErr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `attr_not_found` and `sign_not_in_table` are never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl LoadErr { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn attr_not_found<'a>(attr_name: &str, tag_name: &str, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn sign_not_in_table<'a>(sign_name: &str, pos: (usize, usize)) -> LoadErr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TagInfo` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait TagInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Items(ItemMeta, Item); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Item` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemMeta` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum ItemMeta { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Tag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CtrlTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum CtrlTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Loops` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Loops { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InfoTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum InfoTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LiteralTag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/mod.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum LiteralTag { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/cmp.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl CmpMod { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 5 | pub fn new(ty:&str,data:&TagStruct,pos:(usize,usize),sign_table:&mut S)->Result{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `At` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct At { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Image` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sign` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Sign { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `If` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct If { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IfFollows` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum IfFollows { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Loop` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Loop { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `For` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct For { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `While` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct While { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CmpMod` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum CmpMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Var` is never constructed [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Var { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ValueOperate` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/structs.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum ValueOperate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/ctrl_tag/var/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ValueOperate { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new<'a, S: SignTableHandle>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_tag_match` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn check_tag_match<'a, T: TagInfo>(lt: &'a LexicalType) -> Option<&'a TagStruct> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_tag_name` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn check_tag_name<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_express` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn load_express( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_attr` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn load_attr(tag: &TagStruct, key: &str, pos: (usize, usize)) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_end_tag` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn check_end_tag( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_body` is never used [INFO] [stdout] --> src/anaylze/syntax/literal/util.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn load_body<'a, S: SignTableHandle>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_value` is never used [INFO] [stdout] --> src/anaylze/var.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sign { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn into_value(&self) -> Option<&Value> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `into_var` and `into_temp` are never used [INFO] [stdout] --> src/anaylze/var.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 40 | pub fn into_var(self, name: &str) -> Var { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn into_temp(self) -> TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_as`, `add_assgin`, `sub_assgin`, `mul_assgin`, `div_assign`, and `push` are never used [INFO] [stdout] --> src/anaylze/var.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Value { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 59 | pub fn set_as(&mut self, target: Self) -> Option<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn sub_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn mul_assgin(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn div_assign(&mut self, rhs: i64) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn push(&mut self, data: Value) -> Option<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InerData` is never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum InerData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_num`, `new_sign`, and `into_temp` are never used [INFO] [stdout] --> src/anaylze/into_mid/expr/mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl InerData { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 86 | fn new_num(n: i64) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn new_sign(name: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn into_temp(self) -> TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MidData` is never used [INFO] [stdout] --> src/mid_output.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum MidData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_sign` is never used [INFO] [stdout] --> src/mid_output.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl MidData { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 20 | pub fn get_sign(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Image` is never constructed [INFO] [stdout] --> src/mid_output.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TempValue` is never used [INFO] [stdout] --> src/mid_output.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TempValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MoveOffset` is never used [INFO] [stdout] --> src/mid_output.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | type MoveOffset = isize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoMid` is never used [INFO] [stdout] --> src/mid_output.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub trait IntoMid { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignIdGenerator` is never constructed [INFO] [stdout] --> src/mid_output.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct SignIdGenerator(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next_id` are never used [INFO] [stdout] --> src/mid_output.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl SignIdGenerator { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn next_id(&mut self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MidSignTable` is never constructed [INFO] [stdout] --> src/mid_output.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct MidSignTable(HashMap, usize); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_sign`, and `get_sign` are never used [INFO] [stdout] --> src/mid_output.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl MidSignTable { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 66 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn set_sign(&mut self, value: TempValue) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_sign(&self, id: usize) -> Option<&TempValue> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/anaylze/lexical/handle.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | fn new(data: &str) -> LexicalHandle { [INFO] [stdout] | ^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 6 | fn new(data: &str) -> LexicalHandle<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "e62cf49fb9134dd53abc30d864c237e46ce40cdc1d809b134f891c2b467ee39f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e62cf49fb9134dd53abc30d864c237e46ce40cdc1d809b134f891c2b467ee39f", kill_on_drop: false }` [INFO] [stdout] e62cf49fb9134dd53abc30d864c237e46ce40cdc1d809b134f891c2b467ee39f