[INFO] cloning repository https://github.com/emersonmde/sea [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emersonmde/sea" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femersonmde%2Fsea", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femersonmde%2Fsea'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f5d723b22c59664c79d930acc4c5423ea07b27d [INFO] checking emersonmde/sea against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femersonmde%2Fsea" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/emersonmde/sea 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/emersonmde/sea [INFO] finished tweaking git repo https://github.com/emersonmde/sea [INFO] tweaked toml for git repo https://github.com/emersonmde/sea written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/emersonmde/sea 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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 511107ede19b4e27b5fb824f1d3a85b56790656afe4f21e654eff7f57e1c7150 [INFO] running `Command { std: "docker" "start" "-a" "511107ede19b4e27b5fb824f1d3a85b56790656afe4f21e654eff7f57e1c7150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "511107ede19b4e27b5fb824f1d3a85b56790656afe4f21e654eff7f57e1c7150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "511107ede19b4e27b5fb824f1d3a85b56790656afe4f21e654eff7f57e1c7150", kill_on_drop: false }` [INFO] [stdout] 511107ede19b4e27b5fb824f1d3a85b56790656afe4f21e654eff7f57e1c7150 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] be69b57b3620576b111f23f4d5c406acb332f39cbd289461668fec16c6f1632f [INFO] running `Command { std: "docker" "start" "-a" "be69b57b3620576b111f23f4d5c406acb332f39cbd289461668fec16c6f1632f", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking sea v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(Some(token)) = self.accept_token(TokenType::INT) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let value = &token.value; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(Some(token)) = self.accept_token(TokenType::INT) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let value = &token.value; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut parser = Parser::new(lexer.tokens); [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: field `0` is never read [INFO] [stdout] --> src/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Integer(i64), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Integer(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut parser = Parser::new(lexer.tokens); [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: field `0` is never read [INFO] [stdout] --> src/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `value` are never read [INFO] [stdout] --> src/lexer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 29 | pub token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub value: TokenValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_idx` and `ast` are never read [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | tokens: Vec, [INFO] [stdout] 5 | token_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | ast: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `accept_token`, `next_token`, `parse_factor`, `parse_term`, and `parse_expression` are never used [INFO] [stdout] --> src/parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn accept_token(&mut self, token_type: TokenType) -> Result, &str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn next_token(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn parse_factor(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn parse_term(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn parse_expression(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddNode` is never constructed [INFO] [stdout] --> src/parser.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct AddNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubtractNode` is never constructed [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SubtractNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Integer(i64), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Integer(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `value` are never read [INFO] [stdout] --> src/lexer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 29 | pub token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub value: TokenValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_idx` and `ast` are never read [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | tokens: Vec, [INFO] [stdout] 5 | token_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | ast: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `accept_token`, `next_token`, `parse_factor`, `parse_term`, and `parse_expression` are never used [INFO] [stdout] --> src/parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn accept_token(&mut self, token_type: TokenType) -> Result, &str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn next_token(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn parse_factor(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn parse_term(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn parse_expression(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddNode` is never constructed [INFO] [stdout] --> src/parser.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct AddNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubtractNode` is never constructed [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SubtractNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.55s [INFO] running `Command { std: "docker" "inspect" "be69b57b3620576b111f23f4d5c406acb332f39cbd289461668fec16c6f1632f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be69b57b3620576b111f23f4d5c406acb332f39cbd289461668fec16c6f1632f", kill_on_drop: false }` [INFO] [stdout] be69b57b3620576b111f23f4d5c406acb332f39cbd289461668fec16c6f1632f [INFO] checking emersonmde/sea against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femersonmde%2Fsea" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/emersonmde/sea 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/emersonmde/sea [INFO] finished tweaking git repo https://github.com/emersonmde/sea [INFO] tweaked toml for git repo https://github.com/emersonmde/sea written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/emersonmde/sea 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0ce0448f84653be983cfe08ae10db45b024fb10ff8306c74135305ea416db13f [INFO] running `Command { std: "docker" "start" "-a" "0ce0448f84653be983cfe08ae10db45b024fb10ff8306c74135305ea416db13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ce0448f84653be983cfe08ae10db45b024fb10ff8306c74135305ea416db13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ce0448f84653be983cfe08ae10db45b024fb10ff8306c74135305ea416db13f", kill_on_drop: false }` [INFO] [stdout] 0ce0448f84653be983cfe08ae10db45b024fb10ff8306c74135305ea416db13f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 1279e5a09445173cb00bd3ff4c9a97d5d7b6136890e46c73b23a9b6f57dc055e [INFO] running `Command { std: "docker" "start" "-a" "1279e5a09445173cb00bd3ff4c9a97d5d7b6136890e46c73b23a9b6f57dc055e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking sea v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(Some(token)) = self.accept_token(TokenType::INT) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let value = &token.value; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut parser = Parser::new(lexer.tokens); [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: field `0` is never read [INFO] [stdout] --> src/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Integer(i64), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Integer(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `value` are never read [INFO] [stdout] --> src/lexer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 29 | pub token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub value: TokenValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_idx` and `ast` are never read [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | tokens: Vec, [INFO] [stdout] 5 | token_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | ast: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `accept_token`, `next_token`, `parse_factor`, `parse_term`, and `parse_expression` are never used [INFO] [stdout] --> src/parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn accept_token(&mut self, token_type: TokenType) -> Result, &str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn next_token(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn parse_factor(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn parse_term(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn parse_expression(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddNode` is never constructed [INFO] [stdout] --> src/parser.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct AddNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubtractNode` is never constructed [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SubtractNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parser.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | if let Ok(Some(token)) = self.accept_token(TokenType::INT) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let value = &token.value; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut parser = Parser::new(lexer.tokens); [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: field `0` is never read [INFO] [stdout] --> src/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Integer(i64), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Integer(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `value` are never read [INFO] [stdout] --> src/lexer.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 29 | pub token_type: TokenType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | pub value: TokenValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_idx` and `ast` are never read [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Parser { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | tokens: Vec, [INFO] [stdout] 5 | token_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | ast: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `accept_token`, `next_token`, `parse_factor`, `parse_term`, and `parse_expression` are never used [INFO] [stdout] --> src/parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn accept_token(&mut self, token_type: TokenType) -> Result, &str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn next_token(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn parse_factor(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn parse_term(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn parse_expression(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddNode` is never constructed [INFO] [stdout] --> src/parser.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct AddNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubtractNode` is never constructed [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct SubtractNode { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "1279e5a09445173cb00bd3ff4c9a97d5d7b6136890e46c73b23a9b6f57dc055e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1279e5a09445173cb00bd3ff4c9a97d5d7b6136890e46c73b23a9b6f57dc055e", kill_on_drop: false }` [INFO] [stdout] 1279e5a09445173cb00bd3ff4c9a97d5d7b6136890e46c73b23a9b6f57dc055e