[INFO] cloning repository https://github.com/Goodjooy/RsInfixExpressToSuffixExpress [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Goodjooy/RsInfixExpressToSuffixExpress" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FRsInfixExpressToSuffixExpress", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FRsInfixExpressToSuffixExpress'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8582aa5f760e9219c64f0f90cacb937ba4108d34 [INFO] checking Goodjooy/RsInfixExpressToSuffixExpress/8582aa5f760e9219c64f0f90cacb937ba4108d34 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoodjooy%2FRsInfixExpressToSuffixExpress" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Goodjooy/RsInfixExpressToSuffixExpress on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Goodjooy/RsInfixExpressToSuffixExpress [INFO] finished tweaking git repo https://github.com/Goodjooy/RsInfixExpressToSuffixExpress [INFO] tweaked toml for git repo https://github.com/Goodjooy/RsInfixExpressToSuffixExpress written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Goodjooy/RsInfixExpressToSuffixExpress already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f0773ba6349be417ceb06243701bb71bac52391610b9151dc9e2949984e9605 [INFO] running `Command { std: "docker" "start" "-a" "3f0773ba6349be417ceb06243701bb71bac52391610b9151dc9e2949984e9605", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f0773ba6349be417ceb06243701bb71bac52391610b9151dc9e2949984e9605", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f0773ba6349be417ceb06243701bb71bac52391610b9151dc9e2949984e9605", kill_on_drop: false }` [INFO] [stdout] 3f0773ba6349be417ceb06243701bb71bac52391610b9151dc9e2949984e9605 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a5ee2a9b4bbcdf95d6020c4c225ca5fe40470c6d5846d80ccb2073d25787fe4 [INFO] running `Command { std: "docker" "start" "-a" "3a5ee2a9b4bbcdf95d6020c4c225ca5fe40470c6d5846d80ccb2073d25787fe4", kill_on_drop: false }` [INFO] [stderr] Checking sufix_express v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/anaylze/lexical/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::status` [INFO] [stdout] --> src/anaylze/lexical/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::status; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Final` [INFO] [stdout] --> src/anaylze/syntax/expr.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Data, Expr, Final, Item, Iter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/anaylze/lexical/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::status` [INFO] [stdout] --> src/anaylze/lexical/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::status; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Final` [INFO] [stdout] --> src/anaylze/syntax/expr.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Data, Expr, Final, Item, Iter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | f_number.parse().unwrap_or_else(|s| -> f64 { 0.0 }), [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: unused variable: `s` [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | f_number.parse().unwrap_or_else(|s| -> f64 { 0.0 }), [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: unused variable: `num` [INFO] [stdout] --> src/anaylze/syntax/factor.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | } else if let Data::NumFloat(num) = data { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let temp = |key: &String| -> Option { None }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/anaylze/syntax/factor.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | } else if let Data::NumFloat(num) = data { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anayles` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn anayles(in_str: &mut std::str::Chars, status: StatusMachin) -> (Option, StatusMachin) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PostiveSign`, `NegativeSign`, and `Num` are never constructed [INFO] [stdout] --> src/digit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Digit { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | PostiveSign, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | NegativeSign, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | Num(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Digit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `to_digit`, `new`, `item_update`, and `factor_update` are never used [INFO] [stdout] --> src/digit.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Digit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 13 | pub fn to_digit(last_exp: Express, ch: char) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new(last_exp: Express, num: i32) -> Express { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn item_update(item: &Item, num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn factor_update(fac: &Factor, num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nil`, `Add`, `Min`, and `Item` are never constructed [INFO] [stdout] --> src/express.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Express { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 6 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | Add(Box, Item), [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | Min(Box, Item), [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | Item(Item), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Express` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_sign` and `min_sign` are never used [INFO] [stdout] --> src/express.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Express { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 13 | pub fn add_sign(last_exp: Express) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn min_sign(last_exp: Express) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Expect`, `Digit`, and `PackItem` are never constructed [INFO] [stdout] --> src/factor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Factor { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 5 | Expect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Digit(Digit), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | PackItem(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Factor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_factor` is never used [INFO] [stdout] --> src/factor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Factor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 11 | pub fn to_factor(num: i32) -> Factor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nil`, `Produce`, `Divide`, `Factor`, and `PackExp` are never constructed [INFO] [stdout] --> src/item.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Item { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Produce(Box, Factor), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Divide(Box, Factor), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Factor(Factor), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | PackExp(Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `update_item`, `to_item`, `pack_opt`, `produce_sign`, and `divide_sign` are never used [INFO] [stdout] --> src/item.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Item { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 14 | pub fn update_item(num:i32,item:Item)->Item{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn to_item(num: i32) -> Item { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pack_opt(last_exp: Express, fun: F) -> Express [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn produce_sign(last_exp: Item) -> Item { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn divide_sign(last_exp: Item) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusMachin` is never constructed [INFO] [stdout] --> src/status.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct StatusMachin { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusMachin` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/status.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Init, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | LoadNum, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Min, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Produce, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | SubProcess, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | ExitProcess, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | SyntaxError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StackInfo` is never used [INFO] [stdout] --> src/status.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | enum StackInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `switch_status`, `is_recive`, and `get_status` are never used [INFO] [stdout] --> src/status.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl StatusMachin { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> StatusMachin { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn switch_status(mut self, next_char: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn is_recive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn get_status(&self) -> &Status { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Anaylzer` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Anaylzer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Nil` is never constructed [INFO] [stdout] --> src/anaylze/lexical/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum LexicalData { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 31 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexicalData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/anaylze/lexical/iter.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl LexicalDataIter { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(data: Vec) -> LexicalDataIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SINGLE_SIGNS` is never used [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const SINGLE_SIGNS: [&str; 9] = ["{", "}", "[", "]", "(", ")", ":", ".", ";"]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXCPT_SIGNS` is never used [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const EXCPT_SIGNS: [&str; 5] = [",", "$", "#", "@", "~"]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Sign` is never constructed [INFO] [stdout] --> src/anaylze/syntax/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Factor { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | Sign(isize), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Factor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptExpr` is never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | enum OptExpr { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anayles` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn anayles(in_str: &mut std::str::Chars, status: StatusMachin) -> (Option, StatusMachin) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PostiveSign`, `NegativeSign`, and `Num` are never constructed [INFO] [stdout] --> src/digit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Digit { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | PostiveSign, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | NegativeSign, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | Num(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Digit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `to_digit`, `new`, `item_update`, and `factor_update` are never used [INFO] [stdout] --> src/digit.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Digit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 13 | pub fn to_digit(last_exp: Express, ch: char) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new(last_exp: Express, num: i32) -> Express { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn item_update(item: &Item, num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn factor_update(fac: &Factor, num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nil`, `Add`, `Min`, and `Item` are never constructed [INFO] [stdout] --> src/express.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Express { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 6 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | Add(Box, Item), [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | Min(Box, Item), [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | Item(Item), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Express` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `add_sign` and `min_sign` are never used [INFO] [stdout] --> src/express.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Express { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 13 | pub fn add_sign(last_exp: Express) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn min_sign(last_exp: Express) -> Express { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Expect`, `Digit`, and `PackItem` are never constructed [INFO] [stdout] --> src/factor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Factor { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 5 | Expect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Digit(Digit), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | PackItem(Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Factor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_factor` is never used [INFO] [stdout] --> src/factor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Factor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 11 | pub fn to_factor(num: i32) -> Factor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nil`, `Produce`, `Divide`, `Factor`, and `PackExp` are never constructed [INFO] [stdout] --> src/item.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Item { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Produce(Box, Factor), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Divide(Box, Factor), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Factor(Factor), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | PackExp(Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `update_item`, `to_item`, `pack_opt`, `produce_sign`, and `divide_sign` are never used [INFO] [stdout] --> src/item.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Item { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 14 | pub fn update_item(num:i32,item:Item)->Item{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn to_item(num: i32) -> Item { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pack_opt(last_exp: Express, fun: F) -> Express [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn produce_sign(last_exp: Item) -> Item { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn divide_sign(last_exp: Item) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusMachin` is never constructed [INFO] [stdout] --> src/status.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct StatusMachin { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusMachin` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/status.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Init, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | [INFO] [stdout] 10 | LoadNum, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Min, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Produce, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | SubProcess, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | ExitProcess, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | SyntaxError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StackInfo` is never used [INFO] [stdout] --> src/status.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | enum StackInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `switch_status`, `is_recive`, and `get_status` are never used [INFO] [stdout] --> src/status.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl StatusMachin { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> StatusMachin { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn switch_status(mut self, next_char: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn is_recive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn get_status(&self) -> &Status { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Anaylzer` is never constructed [INFO] [stdout] --> src/anaylze/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Anaylzer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Nil` is never constructed [INFO] [stdout] --> src/anaylze/lexical/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum LexicalData { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 31 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexicalData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SINGLE_SIGNS` is never used [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const SINGLE_SIGNS: [&str; 9] = ["{", "}", "[", "]", "(", ")", ":", ".", ";"]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXCPT_SIGNS` is never used [INFO] [stdout] --> src/anaylze/lexical/do_anaylze.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const EXCPT_SIGNS: [&str; 5] = [",", "$", "#", "@", "~"]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Sign` is never constructed [INFO] [stdout] --> src/anaylze/syntax/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Factor { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | Sign(isize), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Factor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OptExpr` is never used [INFO] [stdout] --> src/anaylze/syntax/mod.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | enum OptExpr { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "3a5ee2a9b4bbcdf95d6020c4c225ca5fe40470c6d5846d80ccb2073d25787fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a5ee2a9b4bbcdf95d6020c4c225ca5fe40470c6d5846d80ccb2073d25787fe4", kill_on_drop: false }` [INFO] [stdout] 3a5ee2a9b4bbcdf95d6020c4c225ca5fe40470c6d5846d80ccb2073d25787fe4