[INFO] cloning repository https://github.com/novoru/simia [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/novoru/simia" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnovoru%2Fsimia", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnovoru%2Fsimia'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] df2ac25c4b33f70f6c0e99003fe583f7e5654fb4 [INFO] checking novoru/simia against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnovoru%2Fsimia" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/novoru/simia on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/novoru/simia [INFO] finished tweaking git repo https://github.com/novoru/simia [INFO] tweaked toml for git repo https://github.com/novoru/simia written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/novoru/simia already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12636d9df6c6ba152978babbc344467d76b78002a28ab87f1e17392161afe0a5 [INFO] running `Command { std: "docker" "start" "-a" "12636d9df6c6ba152978babbc344467d76b78002a28ab87f1e17392161afe0a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12636d9df6c6ba152978babbc344467d76b78002a28ab87f1e17392161afe0a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12636d9df6c6ba152978babbc344467d76b78002a28ab87f1e17392161afe0a5", kill_on_drop: false }` [INFO] [stdout] 12636d9df6c6ba152978babbc344467d76b78002a28ab87f1e17392161afe0a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0be875711e9e4e845bcc41812ab43c224b4cc700537f95caa5305c997b2cbf32 [INFO] running `Command { std: "docker" "start" "-a" "0be875711e9e4e845bcc41812ab43c224b4cc700537f95caa5305c997b2cbf32", kill_on_drop: false }` [INFO] [stderr] Checking simia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | '0' ... '9' => return Token {kind: TokenKind::Integer, literal: self.read_integer()}, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/repl.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast:: { Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/repl.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexier` [INFO] [stdout] --> src/eval.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexier::{ Lexier }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/eval.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::{ Parser }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/eval.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/eval.rs:459:43 [INFO] [stdout] | [INFO] [stdout] 459 | Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] 459 + Object::Array { ref elements } => &elements.len() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/builtins.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{ Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | '0' ... '9' => return Token {kind: TokenKind::Integer, literal: self.read_integer()}, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/repl.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast:: { Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/repl.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenKind`, `Token` [INFO] [stdout] --> src/parser.rs:901:26 [INFO] [stdout] | [INFO] [stdout] 901 | use crate::token:: { TokenKind, Token}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexier` [INFO] [stdout] --> src/eval.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexier::{ Lexier }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/eval.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::{ Parser }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/eval.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/eval.rs:459:43 [INFO] [stdout] | [INFO] [stdout] 459 | Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] 459 + Object::Array { ref elements } => &elements.len() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/builtins.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{ Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lexier.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let position = self.position + 1; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut value = match self.parse_expression(Precedence::Lowest) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_exp` is never read [INFO] [stdout] --> src/parser.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut left_exp = Ast::Expression { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 461 | _ => return None, [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ast` [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | let mut statement = match self.parse_statement() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | Object::Array { elements } => {let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lexier.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let position = self.position + 1; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/eval.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | Ast::ArrayLiteral { elements, token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/eval.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | if let Object::Builtin { function } = builtins(value.clone()) { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `function: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut value = match self.parse_expression(Precedence::Lowest) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_call_arguments` and `parse_error` are never used [INFO] [stdout] --> src/parser.rs:555:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 555 | fn parse_call_arguments(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | fn parse_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_statements` is never used [INFO] [stdout] --> src/eval.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn eval_statements(statements: Vec>, env: &mut Env) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_exp` is never read [INFO] [stdout] --> src/parser.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut left_exp = Ast::Expression { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 461 | _ => return None, [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ast` should have a snake case name [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ast` [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | let mut statement = match self.parse_statement() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/eval.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | if idx < 0 || idx > max { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:994:13 [INFO] [stdout] | [INFO] [stdout] 994 | _ => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:1089:42 [INFO] [stdout] | [INFO] [stdout] 1089 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alternative` [INFO] [stdout] --> src/parser.rs:1089:85 [INFO] [stdout] | [INFO] [stdout] 1089 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `alternative: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:1129:42 [INFO] [stdout] | [INFO] [stdout] 1129 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | Object::Array { elements } => {let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/eval.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | Ast::ArrayLiteral { elements, token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/eval.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | if let Object::Builtin { function } = builtins(value.clone()) { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `function: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_call_arguments` and `parse_error` are never used [INFO] [stdout] --> src/parser.rs:555:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 555 | fn parse_call_arguments(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | fn parse_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_statements` is never used [INFO] [stdout] --> src/eval.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn eval_statements(statements: Vec>, env: &mut Env) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ast` should have a snake case name [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/eval.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | if idx < 0 || idx > max { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> tests/eval_test.rs:339:6 [INFO] [stdout] | [INFO] [stdout] 339 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> tests/eval_test.rs:379:38 [INFO] [stdout] | [INFO] [stdout] 379 | Object::String { value } => (), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "0be875711e9e4e845bcc41812ab43c224b4cc700537f95caa5305c997b2cbf32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0be875711e9e4e845bcc41812ab43c224b4cc700537f95caa5305c997b2cbf32", kill_on_drop: false }` [INFO] [stdout] 0be875711e9e4e845bcc41812ab43c224b4cc700537f95caa5305c997b2cbf32 [INFO] checking novoru/simia against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnovoru%2Fsimia" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/novoru/simia on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/novoru/simia [INFO] finished tweaking git repo https://github.com/novoru/simia [INFO] tweaked toml for git repo https://github.com/novoru/simia written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/novoru/simia already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 086c4f0715fac5189414e66bea28a2e0f73fce8b8a75f17750c779c896ac5eb3 [INFO] running `Command { std: "docker" "start" "-a" "086c4f0715fac5189414e66bea28a2e0f73fce8b8a75f17750c779c896ac5eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "086c4f0715fac5189414e66bea28a2e0f73fce8b8a75f17750c779c896ac5eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "086c4f0715fac5189414e66bea28a2e0f73fce8b8a75f17750c779c896ac5eb3", kill_on_drop: false }` [INFO] [stdout] 086c4f0715fac5189414e66bea28a2e0f73fce8b8a75f17750c779c896ac5eb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 481194578a99ba826357be064cec12904bab6abe940807391ca6a28687a6d317 [INFO] running `Command { std: "docker" "start" "-a" "481194578a99ba826357be064cec12904bab6abe940807391ca6a28687a6d317", kill_on_drop: false }` [INFO] [stderr] Checking simia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | '0' ... '9' => return Token {kind: TokenKind::Integer, literal: self.read_integer()}, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/repl.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast:: { Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/repl.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexier` [INFO] [stdout] --> src/eval.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexier::{ Lexier }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/eval.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::{ Parser }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/eval.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/eval.rs:459:43 [INFO] [stdout] | [INFO] [stdout] 459 | Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] 459 + Object::Array { ref elements } => &elements.len() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/builtins.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{ Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | 'a'...'z' | 'A' ... 'Z' | '_' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexier.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | '0' ... '9' => return Token {kind: TokenKind::Integer, literal: self.read_integer()}, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/repl.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast:: { Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/repl.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenKind`, `Token` [INFO] [stdout] --> src/parser.rs:901:26 [INFO] [stdout] | [INFO] [stdout] 901 | use crate::token:: { TokenKind, Token}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexier` [INFO] [stdout] --> src/eval.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexier::{ Lexier }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> src/eval.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::{ Parser }; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenKind` [INFO] [stdout] --> src/eval.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::token::{ TokenKind }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/eval.rs:459:43 [INFO] [stdout] | [INFO] [stdout] 459 | Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - Object::Array { ref elements } => (&elements.len() - 1), [INFO] [stdout] 459 + Object::Array { ref elements } => &elements.len() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ast` [INFO] [stdout] --> src/builtins.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{ Ast }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lexier.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let position = self.position + 1; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut value = match self.parse_expression(Precedence::Lowest) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_exp` is never read [INFO] [stdout] --> src/parser.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut left_exp = Ast::Expression { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 461 | _ => return None, [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ast` [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | let mut statement = match self.parse_statement() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | Object::Array { elements } => {let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/eval.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | Ast::ArrayLiteral { elements, token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lexier.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let position = self.position + 1; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/eval.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | if let Object::Builtin { function } = builtins(value.clone()) { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `function: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_call_arguments` and `parse_error` are never used [INFO] [stdout] --> src/parser.rs:555:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 555 | fn parse_call_arguments(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | fn parse_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_statements` is never used [INFO] [stdout] --> src/eval.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn eval_statements(statements: Vec>, env: &mut Env) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ast` should have a snake case name [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/eval.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | if idx < 0 || idx > max { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut value = match self.parse_expression(Precedence::Lowest) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_exp` is never read [INFO] [stdout] --> src/parser.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut left_exp = Ast::Expression { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | --- matches any value [INFO] [stdout] ... [INFO] [stdout] 461 | _ => return None, [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ast` [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | let mut statement = match self.parse_statement() { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:994:13 [INFO] [stdout] | [INFO] [stdout] 994 | _ => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:1089:42 [INFO] [stdout] | [INFO] [stdout] 1089 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alternative` [INFO] [stdout] --> src/parser.rs:1089:85 [INFO] [stdout] | [INFO] [stdout] 1089 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `alternative: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:1129:42 [INFO] [stdout] | [INFO] [stdout] 1129 | Ast::IfExpression { ref token, ref condition, ref consequence, ref alternative } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `string` is never read [INFO] [stdout] --> src/object.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | Object::Array { elements } => {let mut string = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/eval.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | Ast::ArrayLiteral { elements, token } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/eval.rs:419:30 [INFO] [stdout] | [INFO] [stdout] 419 | if let Object::Builtin { function } = builtins(value.clone()) { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `function: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_call_arguments` and `parse_error` are never used [INFO] [stdout] --> src/parser.rs:555:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 555 | fn parse_call_arguments(&mut self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | fn parse_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_statements` is never used [INFO] [stdout] --> src/eval.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn eval_statements(statements: Vec>, env: &mut Env) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ast` should have a snake case name [INFO] [stdout] --> src/parser.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | Ast => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/eval.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | if idx < 0 || idx > max { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> tests/eval_test.rs:339:6 [INFO] [stdout] | [INFO] [stdout] 339 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> tests/eval_test.rs:379:38 [INFO] [stdout] | [INFO] [stdout] 379 | Object::String { value } => (), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "481194578a99ba826357be064cec12904bab6abe940807391ca6a28687a6d317", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "481194578a99ba826357be064cec12904bab6abe940807391ca6a28687a6d317", kill_on_drop: false }` [INFO] [stdout] 481194578a99ba826357be064cec12904bab6abe940807391ca6a28687a6d317