[INFO] cloning repository https://github.com/terrarier2111/MathInterpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/terrarier2111/MathInterpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96987527875efdce60bba0ab311c6983bae6ff4a [INFO] testing terrarier2111/MathInterpreter against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FMathInterpreter" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/terrarier2111/MathInterpreter on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/terrarier2111/MathInterpreter [INFO] finished tweaking git repo https://github.com/terrarier2111/MathInterpreter [INFO] tweaked toml for git repo https://github.com/terrarier2111/MathInterpreter written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/terrarier2111/MathInterpreter already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0d126291a08b2a514045bf63066a59fe6877bec7154d15cfbfc46ce839f1561 [INFO] running `Command { std: "docker" "start" "-a" "c0d126291a08b2a514045bf63066a59fe6877bec7154d15cfbfc46ce839f1561", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0d126291a08b2a514045bf63066a59fe6877bec7154d15cfbfc46ce839f1561", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0d126291a08b2a514045bf63066a59fe6877bec7154d15cfbfc46ce839f1561", kill_on_drop: false }` [INFO] [stdout] c0d126291a08b2a514045bf63066a59fe6877bec7154d15cfbfc46ce839f1561 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 444182615bf0c7782e7d70dae5b601bc3b10613b987189557626a6588a6f8547 [INFO] running `Command { std: "docker" "start" "-a" "444182615bf0c7782e7d70dae5b601bc3b10613b987189557626a6588a6f8547", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling rust_decimal v1.22.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling rust_decimal_macros v1.22.0 [INFO] [stderr] Compiling MathInterpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ANSMode`, `Config`, `DiagnosticsConfig`, `Mode`, `_lib` [INFO] [stdout] --> src/equation_simplifier.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{_lib, parser, shared, ANSMode, Config, DiagnosticsConfig, Mode}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `DiagnosticsConfig`, `_lib` [INFO] [stdout] --> src/parser.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | register_const, ANSMode, Config, DiagnosticsConfig, _lib, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/equation_solver.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diagnostics` [INFO] [stdout] --> src/_lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `color` [INFO] [stdout] --> src/_lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `printing_order` [INFO] [stdout] --> src/_lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | printing_order: DiagnosticsPrintingOrder, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Before` [INFO] [stdout] --> src/_lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Before, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Simplify` [INFO] [stdout] --> src/_lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | Simplify, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Solve` [INFO] [stdout] --> src/_lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Solve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Never` [INFO] [stdout] --> src/_lib.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ANSMode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Copy, Clone, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Always` [INFO] [stdout] --> src/_lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | Always, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ANSMode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Copy, Clone, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_lin_1_arg` [INFO] [stdout] --> src/equation_solver.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shrink_lo` [INFO] [stdout] --> src/error.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn shrink_lo(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shrink_hi` [INFO] [stdout] --> src/error.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn shrink_hi(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expand_lo` [INFO] [stdout] --> src/error.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn expand_lo(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `error` [INFO] [stdout] --> src/error.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `warn` [INFO] [stdout] --> src/error.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `note` [INFO] [stdout] --> src/error.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `suggest_spanned` [INFO] [stdout] --> src/error.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_multi_span_string` [INFO] [stdout] --> src/error.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | fn build_multi_span_string(len: usize, spans: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Suggestion` [INFO] [stdout] --> src/error.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/error.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Note` [INFO] [stdout] --> src/error.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | Note(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/error.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_input` [INFO] [stdout] --> src/parser.rs:525:12 [INFO] [stdout] | [INFO] [stdout] 525 | pub fn get_input(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineRecFunc` [INFO] [stdout] --> src/parser.rs:790:5 [INFO] [stdout] | [INFO] [stdout] 790 | DefineRecFunc(String, Vec, (usize, usize)), // function name, function arguments, (recursive min idx, recursive min val) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:786:10 [INFO] [stdout] | [INFO] [stdout] 786 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/parser.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineVar` [INFO] [stdout] --> src/parser.rs:807:5 [INFO] [stdout] | [INFO] [stdout] 807 | DefineVar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineFunc` [INFO] [stdout] --> src/parser.rs:808:5 [INFO] [stdout] | [INFO] [stdout] 808 | DefineFunc, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineRecFunc` [INFO] [stdout] --> src/parser.rs:809:5 [INFO] [stdout] | [INFO] [stdout] 809 | DefineRecFunc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Eval` [INFO] [stdout] --> src/parser.rs:810:5 [INFO] [stdout] | [INFO] [stdout] 810 | Eval, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tokens_to_string_ranged` [INFO] [stdout] --> src/parser.rs:1025:12 [INFO] [stdout] | [INFO] [stdout] 1025 | fn tokens_to_string_ranged(tokens: &Vec, start: usize, end: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inner_span` [INFO] [stdout] --> src/parser.rs:1137:5 [INFO] [stdout] | [INFO] [stdout] 1137 | inner_span: Span, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:1133:10 [INFO] [stdout] | [INFO] [stdout] 1133 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `replace_in_tokens` [INFO] [stdout] --> src/parser.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_token` [INFO] [stdout] --> src/parser.rs:1159:19 [INFO] [stdout] | [INFO] [stdout] 1159 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_inner_tokens` [INFO] [stdout] --> src/parser.rs:1163:19 [INFO] [stdout] | [INFO] [stdout] 1163 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_braces` [INFO] [stdout] --> src/parser.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/parser.rs:1262:19 [INFO] [stdout] | [INFO] [stdout] 1262 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_ok` [INFO] [stdout] --> src/parser.rs:1306:19 [INFO] [stdout] | [INFO] [stdout] 1306 | pub(crate) fn new_ok(val: T) -> ParseResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diagnostics` [INFO] [stdout] --> src/parser.rs:1310:12 [INFO] [stdout] | [INFO] [stdout] 1310 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap` [INFO] [stdout] --> src/parser.rs:1318:19 [INFO] [stdout] | [INFO] [stdout] 1318 | pub(crate) fn unwrap(self) -> (T, Option) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_wrapped` [INFO] [stdout] --> src/parser.rs:1324:8 [INFO] [stdout] | [INFO] [stdout] 1324 | fn to_wrapped(self) -> Result, ParseResult> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/shared.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/shared.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/shared.rs:248:10 [INFO] [stdout] | [INFO] [stdout] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/shared.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/shared.rs:248:10 [INFO] [stdout] | [INFO] [stdout] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_mut` [INFO] [stdout] --> src/shared.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_token` [INFO] [stdout] --> src/shared.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back` [INFO] [stdout] --> src/shared.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_by` [INFO] [stdout] --> src/shared.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_mut` [INFO] [stdout] --> src/shared.rs:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_by_mut` [INFO] [stdout] --> src/shared.rs:367:12 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_ahead_mut` [INFO] [stdout] --> src/shared.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_ahead_by_mut` [INFO] [stdout] --> src/shared.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MathInterpreter` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `math_interpreter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.47s [INFO] running `Command { std: "docker" "inspect" "444182615bf0c7782e7d70dae5b601bc3b10613b987189557626a6588a6f8547", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "444182615bf0c7782e7d70dae5b601bc3b10613b987189557626a6588a6f8547", kill_on_drop: false }` [INFO] [stdout] 444182615bf0c7782e7d70dae5b601bc3b10613b987189557626a6588a6f8547 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c4b26352df0b5f983409ce3d7cad377ec52d256f4908f224ca88ca1f557cbcb [INFO] running `Command { std: "docker" "start" "-a" "7c4b26352df0b5f983409ce3d7cad377ec52d256f4908f224ca88ca1f557cbcb", kill_on_drop: false }` [INFO] [stderr] Compiling MathInterpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/equation_solver.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diagnostics` [INFO] [stdout] --> src/_lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | diagnostics: DiagnosticsConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `color` [INFO] [stdout] --> src/_lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | color: bool, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `printing_order` [INFO] [stdout] --> src/_lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | printing_order: DiagnosticsPrintingOrder, // FIXME: Currently unsupported [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Before` [INFO] [stdout] --> src/_lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Before, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Solve` [INFO] [stdout] --> src/_lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Solve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Always` [INFO] [stdout] --> src/_lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | Always, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ANSMode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/_lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Copy, Clone, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_lin_1_arg` [INFO] [stdout] --> src/equation_solver.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shrink_lo` [INFO] [stdout] --> src/error.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn shrink_lo(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shrink_hi` [INFO] [stdout] --> src/error.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn shrink_hi(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expand_lo` [INFO] [stdout] --> src/error.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn expand_lo(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `error` [INFO] [stdout] --> src/error.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `warn` [INFO] [stdout] --> src/error.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `note` [INFO] [stdout] --> src/error.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `suggest_spanned` [INFO] [stdout] --> src/error.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_multi_span_string` [INFO] [stdout] --> src/error.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | fn build_multi_span_string(len: usize, spans: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Suggestion` [INFO] [stdout] --> src/error.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | Suggestion(String, Span), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/error.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Note` [INFO] [stdout] --> src/error.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | Note(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/error.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 160 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineRecFunc` [INFO] [stdout] --> src/parser.rs:790:5 [INFO] [stdout] | [INFO] [stdout] 790 | DefineRecFunc(String, Vec, (usize, usize)), // function name, function arguments, (recursive min idx, recursive min val) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:786:10 [INFO] [stdout] | [INFO] [stdout] 786 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/parser.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 795 | pub fn kind(&self) -> ActionKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineVar` [INFO] [stdout] --> src/parser.rs:807:5 [INFO] [stdout] | [INFO] [stdout] 807 | DefineVar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineFunc` [INFO] [stdout] --> src/parser.rs:808:5 [INFO] [stdout] | [INFO] [stdout] 808 | DefineFunc, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DefineRecFunc` [INFO] [stdout] --> src/parser.rs:809:5 [INFO] [stdout] | [INFO] [stdout] 809 | DefineRecFunc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Eval` [INFO] [stdout] --> src/parser.rs:810:5 [INFO] [stdout] | [INFO] [stdout] 810 | Eval, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:805:10 [INFO] [stdout] | [INFO] [stdout] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tokens_to_string_ranged` [INFO] [stdout] --> src/parser.rs:1025:12 [INFO] [stdout] | [INFO] [stdout] 1025 | fn tokens_to_string_ranged(tokens: &Vec, start: usize, end: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inner_span` [INFO] [stdout] --> src/parser.rs:1137:5 [INFO] [stdout] | [INFO] [stdout] 1137 | inner_span: Span, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:1133:10 [INFO] [stdout] | [INFO] [stdout] 1133 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `replace_in_tokens` [INFO] [stdout] --> src/parser.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_token` [INFO] [stdout] --> src/parser.rs:1159:19 [INFO] [stdout] | [INFO] [stdout] 1159 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_inner_tokens` [INFO] [stdout] --> src/parser.rs:1163:19 [INFO] [stdout] | [INFO] [stdout] 1163 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_braces` [INFO] [stdout] --> src/parser.rs:1171:19 [INFO] [stdout] | [INFO] [stdout] 1171 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/parser.rs:1262:19 [INFO] [stdout] | [INFO] [stdout] 1262 | pub(crate) fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_ok` [INFO] [stdout] --> src/parser.rs:1306:19 [INFO] [stdout] | [INFO] [stdout] 1306 | pub(crate) fn new_ok(val: T) -> ParseResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diagnostics` [INFO] [stdout] --> src/parser.rs:1310:12 [INFO] [stdout] | [INFO] [stdout] 1310 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_wrapped` [INFO] [stdout] --> src/parser.rs:1324:8 [INFO] [stdout] | [INFO] [stdout] 1324 | fn to_wrapped(self) -> Result, ParseResult> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/shared.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/shared.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/shared.rs:248:10 [INFO] [stdout] | [INFO] [stdout] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/shared.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/shared.rs:248:10 [INFO] [stdout] | [INFO] [stdout] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_mut` [INFO] [stdout] --> src/shared.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_token` [INFO] [stdout] --> src/shared.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn pop_token(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back` [INFO] [stdout] --> src/shared.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_by` [INFO] [stdout] --> src/shared.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 349 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_mut` [INFO] [stdout] --> src/shared.rs:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_back_by_mut` [INFO] [stdout] --> src/shared.rs:367:12 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_ahead_mut` [INFO] [stdout] --> src/shared.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `look_ahead_by_mut` [INFO] [stdout] --> src/shared.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `MathInterpreter` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `math_interpreter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.48s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/MathInterpreter-092947080e6e0a84) [INFO] running `Command { std: "docker" "inspect" "7c4b26352df0b5f983409ce3d7cad377ec52d256f4908f224ca88ca1f557cbcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c4b26352df0b5f983409ce3d7cad377ec52d256f4908f224ca88ca1f557cbcb", kill_on_drop: false }` [INFO] [stdout] 7c4b26352df0b5f983409ce3d7cad377ec52d256f4908f224ca88ca1f557cbcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 379877ed39b0c3fb00ec7943f06325e2e89c5e7c29c43fdaef7abdf5ecebfc29 [INFO] running `Command { std: "docker" "start" "-a" "379877ed39b0c3fb00ec7943f06325e2e89c5e7c29c43fdaef7abdf5ecebfc29", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `tokens` [INFO] [stderr] --> src/equation_solver.rs:3:24 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `diagnostics` [INFO] [stderr] --> src/_lib.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | diagnostics: DiagnosticsConfig, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `color` [INFO] [stderr] --> src/_lib.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | color: bool, // FIXME: Currently unsupported [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `printing_order` [INFO] [stderr] --> src/_lib.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | printing_order: DiagnosticsPrintingOrder, // FIXME: Currently unsupported [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Before` [INFO] [stderr] --> src/_lib.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | Before, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Solve` [INFO] [stderr] --> src/_lib.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | Solve, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Mode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/_lib.rs:42:16 [INFO] [stderr] | [INFO] [stderr] 42 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Always` [INFO] [stderr] --> src/_lib.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | Always, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ANSMode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/_lib.rs:50:16 [INFO] [stderr] | [INFO] [stderr] 50 | #[derive(Copy, Clone, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solve_lin_1_arg` [INFO] [stderr] --> src/equation_solver.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn solve_lin_1_arg(tokens: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `shrink_lo` [INFO] [stderr] --> src/error.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn shrink_lo(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `shrink_hi` [INFO] [stderr] --> src/error.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn shrink_hi(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expand_lo` [INFO] [stderr] --> src/error.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn expand_lo(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `error` [INFO] [stderr] --> src/error.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn error(&mut self, error: String) -> &mut Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `warn` [INFO] [stderr] --> src/error.rs:120:12 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn warn(&mut self, warning: String) -> &mut Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `note` [INFO] [stderr] --> src/error.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn note(&mut self, note: String) -> &mut Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `suggest_spanned` [INFO] [stderr] --> src/error.rs:129:12 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn suggest_spanned(&mut self, suggestion: String, span: Span) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `build_multi_span_string` [INFO] [stderr] --> src/error.rs:139:8 [INFO] [stderr] | [INFO] [stderr] 139 | fn build_multi_span_string(len: usize, spans: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Suggestion` [INFO] [stderr] --> src/error.rs:164:5 [INFO] [stderr] | [INFO] [stderr] 164 | Suggestion(String, Span), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/error.rs:160:10 [INFO] [stderr] | [INFO] [stderr] 160 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Note` [INFO] [stderr] --> src/error.rs:165:5 [INFO] [stderr] | [INFO] [stderr] 165 | Note(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DiagnosticItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/error.rs:160:10 [INFO] [stderr] | [INFO] [stderr] 160 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DefineRecFunc` [INFO] [stderr] --> src/parser.rs:790:5 [INFO] [stderr] | [INFO] [stderr] 790 | DefineRecFunc(String, Vec, (usize, usize)), // function name, function arguments, (recursive min idx, recursive min val) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:786:10 [INFO] [stderr] | [INFO] [stderr] 786 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `kind` [INFO] [stderr] --> src/parser.rs:795:12 [INFO] [stderr] | [INFO] [stderr] 795 | pub fn kind(&self) -> ActionKind { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DefineVar` [INFO] [stderr] --> src/parser.rs:807:5 [INFO] [stderr] | [INFO] [stderr] 807 | DefineVar, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:805:10 [INFO] [stderr] | [INFO] [stderr] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DefineFunc` [INFO] [stderr] --> src/parser.rs:808:5 [INFO] [stderr] | [INFO] [stderr] 808 | DefineFunc, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:805:10 [INFO] [stderr] | [INFO] [stderr] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DefineRecFunc` [INFO] [stderr] --> src/parser.rs:809:5 [INFO] [stderr] | [INFO] [stderr] 809 | DefineRecFunc, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:805:10 [INFO] [stderr] | [INFO] [stderr] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Eval` [INFO] [stderr] --> src/parser.rs:810:5 [INFO] [stderr] | [INFO] [stderr] 810 | Eval, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ActionKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:805:10 [INFO] [stderr] | [INFO] [stderr] 805 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `tokens_to_string_ranged` [INFO] [stderr] --> src/parser.rs:1025:12 [INFO] [stderr] | [INFO] [stderr] 1025 | fn tokens_to_string_ranged(tokens: &Vec, start: usize, end: usize) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `inner_span` [INFO] [stderr] --> src/parser.rs:1137:5 [INFO] [stderr] | [INFO] [stderr] 1137 | inner_span: Span, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/parser.rs:1133:10 [INFO] [stderr] | [INFO] [stderr] 1133 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `replace_in_tokens` [INFO] [stderr] --> src/parser.rs:1151:19 [INFO] [stderr] | [INFO] [stderr] 1151 | pub(crate) fn replace_in_tokens(self, tokens: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_token` [INFO] [stderr] --> src/parser.rs:1159:19 [INFO] [stderr] | [INFO] [stderr] 1159 | pub(crate) fn to_token(self, tokens: Vec) -> Token { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_inner_tokens` [INFO] [stderr] --> src/parser.rs:1163:19 [INFO] [stderr] | [INFO] [stderr] 1163 | pub(crate) fn to_inner_tokens(self, tokens: &Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_braces` [INFO] [stderr] --> src/parser.rs:1171:19 [INFO] [stderr] | [INFO] [stderr] 1171 | pub(crate) fn pop_braces(&mut self, tokens: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `len` [INFO] [stderr] --> src/parser.rs:1262:19 [INFO] [stderr] | [INFO] [stderr] 1262 | pub(crate) fn len(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_ok` [INFO] [stderr] --> src/parser.rs:1306:19 [INFO] [stderr] | [INFO] [stderr] 1306 | pub(crate) fn new_ok(val: T) -> ParseResult { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `diagnostics` [INFO] [stderr] --> src/parser.rs:1310:12 [INFO] [stderr] | [INFO] [stderr] 1310 | pub fn diagnostics(&self) -> Option<&DiagnosticBuilder> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_wrapped` [INFO] [stderr] --> src/parser.rs:1324:8 [INFO] [stderr] | [INFO] [stderr] 1324 | fn to_wrapped(self) -> Result, ParseResult> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_string` [INFO] [stderr] --> src/shared.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn to_string(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Left` [INFO] [stderr] --> src/shared.rs:251:5 [INFO] [stderr] | [INFO] [stderr] 251 | Left, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/shared.rs:248:10 [INFO] [stderr] | [INFO] [stderr] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Right` [INFO] [stderr] --> src/shared.rs:252:5 [INFO] [stderr] | [INFO] [stderr] 252 | Right, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgsKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/shared.rs:248:10 [INFO] [stderr] | [INFO] [stderr] 248 | #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `next_mut` [INFO] [stderr] --> src/shared.rs:330:12 [INFO] [stderr] | [INFO] [stderr] 330 | pub fn next_mut(&mut self) -> Option<&mut Token> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_token` [INFO] [stderr] --> src/shared.rs:336:12 [INFO] [stderr] | [INFO] [stderr] 336 | pub fn pop_token(&mut self) -> Token { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_back` [INFO] [stderr] --> src/shared.rs:345:12 [INFO] [stderr] | [INFO] [stderr] 345 | pub fn look_back(&self) -> Option<&Token> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_back_by` [INFO] [stderr] --> src/shared.rs:349:12 [INFO] [stderr] | [INFO] [stderr] 349 | pub fn look_back_by(&self, by: usize) -> Option<&Token> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_back_mut` [INFO] [stderr] --> src/shared.rs:363:12 [INFO] [stderr] | [INFO] [stderr] 363 | pub fn look_back_mut(&mut self) -> Option<&mut Token> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_back_by_mut` [INFO] [stderr] --> src/shared.rs:367:12 [INFO] [stderr] | [INFO] [stderr] 367 | pub fn look_back_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_ahead_mut` [INFO] [stderr] --> src/shared.rs:372:12 [INFO] [stderr] | [INFO] [stderr] 372 | pub fn look_ahead_mut(&mut self) -> Option<&mut Token> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `look_ahead_by_mut` [INFO] [stderr] --> src/shared.rs:376:12 [INFO] [stderr] | [INFO] [stderr] 376 | pub fn look_ahead_by_mut(&mut self, by: usize) -> Option<&mut Token> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `MathInterpreter` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `math_interpreter` [INFO] [stderr] [INFO] [stderr] warning: `MathInterpreter` (bin "MathInterpreter" test) generated 46 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/MathInterpreter-092947080e6e0a84) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test parser::test ... ok [INFO] [stdout] test equation_simplifier::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "379877ed39b0c3fb00ec7943f06325e2e89c5e7c29c43fdaef7abdf5ecebfc29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "379877ed39b0c3fb00ec7943f06325e2e89c5e7c29c43fdaef7abdf5ecebfc29", kill_on_drop: false }` [INFO] [stdout] 379877ed39b0c3fb00ec7943f06325e2e89c5e7c29c43fdaef7abdf5ecebfc29