[INFO] cloning repository https://github.com/bytewired/mova [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bytewired/mova" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytewired%2Fmova", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytewired%2Fmova'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e42540849cb25647380e50087423a2f81226d702 [INFO] checking bytewired/mova against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytewired%2Fmova" "/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/bytewired/mova 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/bytewired/mova [INFO] finished tweaking git repo https://github.com/bytewired/mova [INFO] tweaked toml for git repo https://github.com/bytewired/mova written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bytewired/mova 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] c12efd7784737c45c6b4519c75b13373195ddbabbac1697532ca3422682ce113 [INFO] running `Command { std: "docker" "start" "-a" "c12efd7784737c45c6b4519c75b13373195ddbabbac1697532ca3422682ce113", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c12efd7784737c45c6b4519c75b13373195ddbabbac1697532ca3422682ce113", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c12efd7784737c45c6b4519c75b13373195ddbabbac1697532ca3422682ce113", kill_on_drop: false }` [INFO] [stdout] c12efd7784737c45c6b4519c75b13373195ddbabbac1697532ca3422682ce113 [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] 724921e3227139109945c5c31c90e6842c28623dec19d0c69b70e3ee341608c1 [INFO] running `Command { std: "docker" "start" "-a" "724921e3227139109945c5c31c90e6842c28623dec19d0c69b70e3ee341608c1", kill_on_drop: false }` [INFO] [stderr] Checking mova v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::compiler::ast::expr::Expr` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::ast::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/stmt_parser.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenSuffix` is imported redundantly [INFO] [stdout] --> src/compiler/lexer/mod.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | use crate::compiler::token::TokenSuffix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 474 | [INFO] [stdout] 475 | use super::*; [INFO] [stdout] | -------- the item `TokenSuffix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::expr::Expr` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::ast::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/stmt_parser.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decls` [INFO] [stdout] --> src/compiler.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let decls = DeclParser::new(&mut stream).parse(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_decls` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExprParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | stream: &'a mut TokenStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> ExprParser<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn parse_or(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn parse_and(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn parse_cmp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn parse_temp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn parse_factor(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn parse_unary(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn parse_base(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn parse_operand(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decls` [INFO] [stdout] --> src/compiler.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let decls = DeclParser::new(&mut stream).parse(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_decls` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LetDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `params`, and `stmts` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `is_mutable` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FnParam { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Var(VarDecl), [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] 28 | Var(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Let(LetDecl), [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] 29 | Let(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | Fn(FnDecl), [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] 30 | Fn(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hex`, `Bin`, `Oct`, `Char`, and `Multiline` are never constructed [INFO] [stdout] --> src/compiler/token.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum TokenMod { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 101 | None, [INFO] [stdout] 102 | Hex, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | Bin, [INFO] [stdout] | ^^^ [INFO] [stdout] 104 | Oct, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Multiline, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenMod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeKind` is never used [INFO] [stdout] --> src/compiler/token.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum TypeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modd`, `suffix`, and `line` are never read [INFO] [stdout] --> src/compiler/token.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 138 | pub kind: TokenKind, [INFO] [stdout] 139 | pub modd: TokenMod, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | pub suffix: TokenSuffix, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 141 | pub value: Value, [INFO] [stdout] 142 | pub line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `advance_if_match_any`, `advance_if_cmp`, `advance_if_unary`, and `is_assign` are never used [INFO] [stdout] --> src/compiler/token_stream.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn advance_if_match_any(&mut self, kinds: &[TokenKind]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn advance_if_cmp(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn advance_if_unary(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn is_assign(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExprParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | stream: &'a mut TokenStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> ExprParser<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn parse_or(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn parse_and(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn parse_cmp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn parse_temp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn parse_factor(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn parse_unary(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn parse_base(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn parse_operand(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LetDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `params`, and `stmts` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `is_mutable` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FnParam { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Var(VarDecl), [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] 28 | Var(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Let(LetDecl), [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] 29 | Let(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | Fn(FnDecl), [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] 30 | Fn(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hex`, `Bin`, `Oct`, `Char`, and `Multiline` are never constructed [INFO] [stdout] --> src/compiler/token.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum TokenMod { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 101 | None, [INFO] [stdout] 102 | Hex, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | Bin, [INFO] [stdout] | ^^^ [INFO] [stdout] 104 | Oct, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Multiline, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenMod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeKind` is never used [INFO] [stdout] --> src/compiler/token.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum TypeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modd` and `line` are never read [INFO] [stdout] --> src/compiler/token.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 138 | pub kind: TokenKind, [INFO] [stdout] 139 | pub modd: TokenMod, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `advance_if_match_any`, `advance_if_cmp`, `advance_if_unary`, and `is_assign` are never used [INFO] [stdout] --> src/compiler/token_stream.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn advance_if_match_any(&mut self, kinds: &[TokenKind]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn advance_if_cmp(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn advance_if_unary(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn is_assign(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "724921e3227139109945c5c31c90e6842c28623dec19d0c69b70e3ee341608c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "724921e3227139109945c5c31c90e6842c28623dec19d0c69b70e3ee341608c1", kill_on_drop: false }` [INFO] [stdout] 724921e3227139109945c5c31c90e6842c28623dec19d0c69b70e3ee341608c1 [INFO] checking bytewired/mova against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytewired%2Fmova" "/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/bytewired/mova 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/bytewired/mova [INFO] finished tweaking git repo https://github.com/bytewired/mova [INFO] tweaked toml for git repo https://github.com/bytewired/mova written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bytewired/mova 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] [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-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] 0b0691e1e893d32083d4fb793878c2d6976618e27a52cccfab8933e9280d27e8 [INFO] running `Command { std: "docker" "start" "-a" "0b0691e1e893d32083d4fb793878c2d6976618e27a52cccfab8933e9280d27e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b0691e1e893d32083d4fb793878c2d6976618e27a52cccfab8933e9280d27e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b0691e1e893d32083d4fb793878c2d6976618e27a52cccfab8933e9280d27e8", kill_on_drop: false }` [INFO] [stdout] 0b0691e1e893d32083d4fb793878c2d6976618e27a52cccfab8933e9280d27e8 [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] 2d97b04a44a9220eec4848441b965a008713bdc2a4b9e4000be7e260fa3d918a [INFO] running `Command { std: "docker" "start" "-a" "2d97b04a44a9220eec4848441b965a008713bdc2a4b9e4000be7e260fa3d918a", kill_on_drop: false }` [INFO] [stderr] Checking mova v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `TokenSuffix` is imported redundantly [INFO] [stdout] --> src/compiler/lexer/mod.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 473 | use crate::compiler::token::TokenSuffix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 474 | [INFO] [stdout] 475 | use super::*; [INFO] [stdout] | -------- the item `TokenSuffix` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::expr::Expr` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::ast::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/stmt_parser.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::expr::Expr` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::ast::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/decl_parser.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/compiler/parser/stmt_parser.rs:2:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::compiler::token::{TokenKind, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decls` [INFO] [stdout] --> src/compiler.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let decls = DeclParser::new(&mut stream).parse(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_decls` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExprParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | stream: &'a mut TokenStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> ExprParser<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn parse_or(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn parse_and(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn parse_cmp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn parse_temp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn parse_factor(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn parse_unary(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn parse_base(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn parse_operand(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LetDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `params`, and `stmts` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `is_mutable` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FnParam { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Var(VarDecl), [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] 28 | Var(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Let(LetDecl), [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] 29 | Let(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | Fn(FnDecl), [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] 30 | Fn(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hex`, `Bin`, `Oct`, `Char`, and `Multiline` are never constructed [INFO] [stdout] --> src/compiler/token.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum TokenMod { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 101 | None, [INFO] [stdout] 102 | Hex, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | Bin, [INFO] [stdout] | ^^^ [INFO] [stdout] 104 | Oct, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Multiline, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenMod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeKind` is never used [INFO] [stdout] --> src/compiler/token.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum TypeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modd` and `line` are never read [INFO] [stdout] --> src/compiler/token.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 138 | pub kind: TokenKind, [INFO] [stdout] 139 | pub modd: TokenMod, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `advance_if_match_any`, `advance_if_cmp`, `advance_if_unary`, and `is_assign` are never used [INFO] [stdout] --> src/compiler/token_stream.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn advance_if_match_any(&mut self, kinds: &[TokenKind]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn advance_if_cmp(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn advance_if_unary(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn is_assign(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decls` [INFO] [stdout] --> src/compiler.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let decls = DeclParser::new(&mut stream).parse(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_decls` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExprParser<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 5 | stream: &'a mut TokenStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/compiler/parser/expr_parser.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> ExprParser<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn parse_or(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn parse_and(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn parse_cmp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn parse_temp(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn parse_factor(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn parse_unary(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn parse_base(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn parse_operand(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `expr` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LetDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub expr: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `params`, and `stmts` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 15 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `is_mutable` are never read [INFO] [stdout] --> src/compiler/ast/decl.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FnParam { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Var(VarDecl), [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] 28 | Var(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Let(LetDecl), [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] 29 | Let(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/ast/decl.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | Fn(FnDecl), [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] 30 | Fn(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hex`, `Bin`, `Oct`, `Char`, and `Multiline` are never constructed [INFO] [stdout] --> src/compiler/token.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub enum TokenMod { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 101 | None, [INFO] [stdout] 102 | Hex, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | Bin, [INFO] [stdout] | ^^^ [INFO] [stdout] 104 | Oct, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | Multiline, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenMod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeKind` is never used [INFO] [stdout] --> src/compiler/token.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum TypeKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modd`, `suffix`, and `line` are never read [INFO] [stdout] --> src/compiler/token.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 138 | pub kind: TokenKind, [INFO] [stdout] 139 | pub modd: TokenMod, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | pub suffix: TokenSuffix, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 141 | pub value: Value, [INFO] [stdout] 142 | pub line: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `advance_if_match_any`, `advance_if_cmp`, `advance_if_unary`, and `is_assign` are never used [INFO] [stdout] --> src/compiler/token_stream.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl TokenStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn advance_if_match_any(&mut self, kinds: &[TokenKind]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn advance_if_cmp(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn advance_if_unary(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn is_assign(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "2d97b04a44a9220eec4848441b965a008713bdc2a4b9e4000be7e260fa3d918a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d97b04a44a9220eec4848441b965a008713bdc2a4b9e4000be7e260fa3d918a", kill_on_drop: false }` [INFO] [stdout] 2d97b04a44a9220eec4848441b965a008713bdc2a4b9e4000be7e260fa3d918a