[INFO] cloning repository https://github.com/ucanme/math_calculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ucanme/math_calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucanme%2Fmath_calculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucanme%2Fmath_calculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2fb121cddf6a8cfa49e8758a72c97742aa412a5e [INFO] checking ucanme/math_calculator against master#fe348cd1a8e0fa445b772393147ed865904dcd4d for pr-139587-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucanme%2Fmath_calculator" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ucanme/math_calculator on toolchain fe348cd1a8e0fa445b772393147ed865904dcd4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ucanme/math_calculator [INFO] finished tweaking git repo https://github.com/ucanme/math_calculator [INFO] tweaked toml for git repo https://github.com/ucanme/math_calculator written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ucanme/math_calculator 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" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bea91e1cff7623fc747ba5758300a958d89e0e33e0208217c416bc28aeb057ee [INFO] running `Command { std: "docker" "start" "-a" "bea91e1cff7623fc747ba5758300a958d89e0e33e0208217c416bc28aeb057ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bea91e1cff7623fc747ba5758300a958d89e0e33e0208217c416bc28aeb057ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bea91e1cff7623fc747ba5758300a958d89e0e33e0208217c416bc28aeb057ee", kill_on_drop: false }` [INFO] [stdout] bea91e1cff7623fc747ba5758300a958d89e0e33e0208217c416bc28aeb057ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8907bcb2f31c78f7ed487402ff9960c87136daeaf283aeb4bd8bda9f3ae82af [INFO] running `Command { std: "docker" "start" "-a" "f8907bcb2f31c78f7ed487402ff9960c87136daeaf283aeb4bd8bda9f3ae82af", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking math_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Alignment::Left` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::hash` [INFO] [stdout] --> src/ast.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::hash; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/ast.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lex::{Parser, Token, TokenType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/error/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(io_error_more)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::E` [INFO] [stdout] --> src/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f32::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Alignment::Left` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Alignment::Left; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::hash` [INFO] [stdout] --> src/ast.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::hash; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/ast.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::lex::{Parser, Token, TokenType}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/error/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(io_error_more)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/ast.rs:282:45 [INFO] [stdout] | [INFO] [stdout] 245 | / ... match self.curr_tok { [INFO] [stdout] 246 | | ... Some(token) => { [INFO] [stdout] 247 | | ... let e = self.parse_expression(); [INFO] [stdout] 248 | | ... println!("---e-- {:?}", e); [INFO] [stdout] ... | [INFO] [stdout] 281 | | ... } [INFO] [stdout] | |___________________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 282 | ... println!("{}", self.curr_tok.unwrap().tok); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/ast.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | fn func_min(args: &[AstNode])->f64{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/ast.rs:246:58 [INFO] [stdout] | [INFO] [stdout] 246 | ... Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberAst` is more private than the item `AstNode::Number::0` [INFO] [stdout] --> src/ast.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | Number(NumberAst), [INFO] [stdout] | ^^^^^^^^^ field `AstNode::Number::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NumberAst` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct NumberAst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BinaryAst` is more private than the item `AstNode::Binary::0` [INFO] [stdout] --> src/ast.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Binary(BinaryAst), [INFO] [stdout] | ^^^^^^^^^ field `AstNode::Binary::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `BinaryAst` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct BinaryAst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunCallerAST` is more private than the item `AstNode::FunCaller::0` [INFO] [stdout] --> src/ast.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | FunCaller(FunCallerAST), [INFO] [stdout] | ^^^^^^^^^^^^ field `AstNode::FunCaller::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunCallerAST` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct FunCallerAST { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `flag` and `offset` are never read [INFO] [stdout] --> src/lex.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | flag : i8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | offset: i16 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/lex.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub error: Error [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_digit_number` is never used [INFO] [stdout] --> src/lex.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Parser { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn is_digit_number(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct NumberAst { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | val: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberAst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `left`, and `right` are never read [INFO] [stdout] --> src/ast.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct BinaryAst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | op: String, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | left: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | right: Rc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryAst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct FunCallerAST { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunCallerAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argc` and `func` are never read [INFO] [stdout] --> src/ast.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Func { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 31 | argc: i8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | func: fn(args: &[AstNode]) -> f64 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Func` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_func` is never used [INFO] [stdout] --> src/ast.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_func(name:&str) -> Option<&Func> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | Number(NumberAst), [INFO] [stdout] | ------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 - Number(NumberAst), [INFO] [stdout] 75 + Number(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Binary(BinaryAst), [INFO] [stdout] | ------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 76 - Binary(BinaryAst), [INFO] [stdout] 76 + Binary(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | FunCaller(FunCallerAST), [INFO] [stdout] | --------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 77 - FunCaller(FunCallerAST), [INFO] [stdout] 77 + FunCaller(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_token` is never used [INFO] [stdout] --> src/ast.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 88 | impl<'a> Ast<'a> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn next_token(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FuncNotExist` is never constructed [INFO] [stdout] --> src/error/error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CustomError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | FuncNotExist(String) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/ast.rs:282:45 [INFO] [stdout] | [INFO] [stdout] 245 | / ... match self.curr_tok { [INFO] [stdout] 246 | | ... Some(token) => { [INFO] [stdout] 247 | | ... let e = self.parse_expression(); [INFO] [stdout] 248 | | ... println!("---e-- {:?}", e); [INFO] [stdout] ... | [INFO] [stdout] 281 | | ... } [INFO] [stdout] | |___________________________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 282 | ... println!("{}", self.curr_tok.unwrap().tok); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/ast.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | fn func_min(args: &[AstNode])->f64{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/ast.rs:246:58 [INFO] [stdout] | [INFO] [stdout] 246 | ... Some(token) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberAst` is more private than the item `AstNode::Number::0` [INFO] [stdout] --> src/ast.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | Number(NumberAst), [INFO] [stdout] | ^^^^^^^^^ field `AstNode::Number::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NumberAst` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct NumberAst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BinaryAst` is more private than the item `AstNode::Binary::0` [INFO] [stdout] --> src/ast.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Binary(BinaryAst), [INFO] [stdout] | ^^^^^^^^^ field `AstNode::Binary::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `BinaryAst` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct BinaryAst { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunCallerAST` is more private than the item `AstNode::FunCaller::0` [INFO] [stdout] --> src/ast.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | FunCaller(FunCallerAST), [INFO] [stdout] | ^^^^^^^^^^^^ field `AstNode::FunCaller::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunCallerAST` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ast.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | struct FunCallerAST { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `flag` and `offset` are never read [INFO] [stdout] --> src/lex.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | flag : i8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | offset: i16 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/lex.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub error: Error [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_digit_number` is never used [INFO] [stdout] --> src/lex.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Parser { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | fn is_digit_number(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct NumberAst { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | val: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberAst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `left`, and `right` are never read [INFO] [stdout] --> src/ast.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct BinaryAst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | op: String, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | left: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | right: Rc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryAst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct FunCallerAST { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunCallerAST` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `argc` and `func` are never read [INFO] [stdout] --> src/ast.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Func { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 31 | argc: i8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | func: fn(args: &[AstNode]) -> f64 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Func` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_func` is never used [INFO] [stdout] --> src/ast.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_func(name:&str) -> Option<&Func> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | Number(NumberAst), [INFO] [stdout] | ------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 - Number(NumberAst), [INFO] [stdout] 75 + Number(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Binary(BinaryAst), [INFO] [stdout] | ------ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 76 - Binary(BinaryAst), [INFO] [stdout] 76 + Binary(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | FunCaller(FunCallerAST), [INFO] [stdout] | --------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AstNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 77 - FunCaller(FunCallerAST), [INFO] [stdout] 77 + FunCaller(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_token` is never used [INFO] [stdout] --> src/ast.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 88 | impl<'a> Ast<'a> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn next_token(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FuncNotExist` is never constructed [INFO] [stdout] --> src/error/error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CustomError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | FuncNotExist(String) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.10s [INFO] running `Command { std: "docker" "inspect" "f8907bcb2f31c78f7ed487402ff9960c87136daeaf283aeb4bd8bda9f3ae82af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8907bcb2f31c78f7ed487402ff9960c87136daeaf283aeb4bd8bda9f3ae82af", kill_on_drop: false }` [INFO] [stdout] f8907bcb2f31c78f7ed487402ff9960c87136daeaf283aeb4bd8bda9f3ae82af