[INFO] cloning repository https://github.com/sizakuma/RustyZSharp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sizakuma/RustyZSharp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizakuma%2FRustyZSharp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizakuma%2FRustyZSharp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 719e886462db6de55027e3df53c3b00b548ee6e9 [INFO] checking sizakuma/RustyZSharp against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizakuma%2FRustyZSharp" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sizakuma/RustyZSharp 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/sizakuma/RustyZSharp [INFO] finished tweaking git repo https://github.com/sizakuma/RustyZSharp [INFO] tweaked toml for git repo https://github.com/sizakuma/RustyZSharp written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sizakuma/RustyZSharp 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded vec_map v0.6.0 [INFO] [stderr] Downloaded lalr v0.0.2 [INFO] [stderr] Downloaded redfa v0.0.2 [INFO] [stderr] Downloaded bit-set v0.4.0 [INFO] [stderr] Downloaded plex v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51ece7cb00f123d115a56dcbe3c8c9bc4a5e272d5168cf66b0baeeca369e53eb [INFO] running `Command { std: "docker" "start" "-a" "51ece7cb00f123d115a56dcbe3c8c9bc4a5e272d5168cf66b0baeeca369e53eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51ece7cb00f123d115a56dcbe3c8c9bc4a5e272d5168cf66b0baeeca369e53eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51ece7cb00f123d115a56dcbe3c8c9bc4a5e272d5168cf66b0baeeca369e53eb", kill_on_drop: false }` [INFO] [stdout] 51ece7cb00f123d115a56dcbe3c8c9bc4a5e272d5168cf66b0baeeca369e53eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3eefe7f2ad7c3112979062393b1ff7069d13c8e8b0eec5554754d08e84e8b9b [INFO] running `Command { std: "docker" "start" "-a" "c3eefe7f2ad7c3112979062393b1ff7069d13c8e8b0eec5554754d08e84e8b9b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling bit-vec v0.4.4 [INFO] [stderr] Compiling vec_map v0.6.0 [INFO] [stderr] Compiling lalr v0.0.2 [INFO] [stderr] Compiling bit-set v0.4.0 [INFO] [stderr] Compiling redfa v0.0.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Compiling plex v0.3.0 [INFO] [stderr] Checking rusty-zsharp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Raw`, `raw` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::util::{Raw, raw}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/lexer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/lexer.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/program.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/program.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprKind`, `Expr` [INFO] [stdout] --> src/program.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::{Expr, ExprKind}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Member`, `Val` [INFO] [stdout] --> src/program.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::environment::{Env, Member, Val}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/program.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::{Lexer, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::Span` [INFO] [stdout] --> src/program.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util::Span; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter`, `write` [INFO] [stdout] --> src/util.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `raw` [INFO] [stdout] --> src/util.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | macro_rules! raw { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Raw`, `raw` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::util::{Raw, raw}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/lexer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/lexer.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/program.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/program.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprKind`, `Expr` [INFO] [stdout] --> src/program.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::{Expr, ExprKind}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Member`, `Val` [INFO] [stdout] --> src/program.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::environment::{Env, Member, Val}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/program.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::{Lexer, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::Span` [INFO] [stdout] --> src/program.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util::Span; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter`, `write` [INFO] [stdout] --> src/util.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `raw` [INFO] [stdout] --> src/util.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | macro_rules! raw { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/parser.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let Some(name) = self.parse_name() else { todo!() }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/lexer.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Lexer<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 129 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg` and `pos` are never read [INFO] [stdout] --> src/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ParserError { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub pos: Span, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_block`, `rollback`, `rollback1`, `skip_until`, `skip_while`, and `require_or` are never used [INFO] [stdout] --> src/parser.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_block(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn rollback(&mut self, offset: usize) { self.pos -= offset; } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 219 | #[inline(always)] [INFO] [stdout] 220 | fn rollback1(&mut self) { self.rollback(1); } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn skip_until(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn skip_while(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn require_or(&mut self, expected: &'a [TokenKind], cb: fn()) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `span` are never read [INFO] [stdout] --> src/ast.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Expr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | pub kind: ExprKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Global(Box), [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] 11 | Global(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | VarDef(Box, Box, Box), [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 | VarDef((), (), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | Name(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 | Name(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | IntLit(i64), [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] 20 | IntLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FloatLit(f64), [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] 21 | FloatLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | BoolLit(bool), [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] 22 | BoolLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | StrLit(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] 23 | StrLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `FuncDef`, and `Call` are never constructed [INFO] [stdout] --> src/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ExprKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | FuncDef(Box, Vec, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Call(Box, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExprKind` 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 `filename` and `env` are never read [INFO] [stdout] --> src/program.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Program<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 11 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | pub(crate) env: Env [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `String`, `Integer`, `Float`, and `Bool` are never constructed [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Val { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Bool(bool) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Val` 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: variants `Var` and `Func` are never constructed [INFO] [stdout] --> src/environment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Member { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 15 | Var(String, Val), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Func(String, Vec, Expr) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` 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: associated items `null`, `new`, `as_immut`, and `as_mut` are never used [INFO] [stdout] --> src/util.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Raw { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | pub fn null() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn new(n: &mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn as_immut<'a>(&self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_mut<'a>(&mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c_char_array` is never used [INFO] [stdout] --> src/util.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn to_c_char_array(s: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/parser.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let Some(name) = self.parse_name() else { todo!() }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/lexer.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Lexer<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 129 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg` and `pos` are never read [INFO] [stdout] --> src/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ParserError { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub pos: Span, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_block`, `rollback`, `rollback1`, `skip_until`, `skip_while`, and `require_or` are never used [INFO] [stdout] --> src/parser.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_block(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn rollback(&mut self, offset: usize) { self.pos -= offset; } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 219 | #[inline(always)] [INFO] [stdout] 220 | fn rollback1(&mut self) { self.rollback(1); } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn skip_until(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn skip_while(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn require_or(&mut self, expected: &'a [TokenKind], cb: fn()) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `span` are never read [INFO] [stdout] --> src/ast.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Expr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | pub kind: ExprKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Global(Box), [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] 11 | Global(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | VarDef(Box, Box, Box), [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 | VarDef((), (), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | Name(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 | Name(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | IntLit(i64), [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] 20 | IntLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FloatLit(f64), [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] 21 | FloatLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | BoolLit(bool), [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] 22 | BoolLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | StrLit(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] 23 | StrLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `FuncDef`, and `Call` are never constructed [INFO] [stdout] --> src/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ExprKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | FuncDef(Box, Vec, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Call(Box, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExprKind` 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 `filename` and `env` are never read [INFO] [stdout] --> src/program.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Program<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 11 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | pub(crate) env: Env [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `String`, `Integer`, `Float`, and `Bool` are never constructed [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Val { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Bool(bool) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Val` 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: variants `Var` and `Func` are never constructed [INFO] [stdout] --> src/environment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Member { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 15 | Var(String, Val), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Func(String, Vec, Expr) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` 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: associated items `null`, `new`, `as_immut`, and `as_mut` are never used [INFO] [stdout] --> src/util.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Raw { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | pub fn null() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn new(n: &mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn as_immut<'a>(&self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_mut<'a>(&mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c_char_array` is never used [INFO] [stdout] --> src/util.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn to_c_char_array(s: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.54s [INFO] running `Command { std: "docker" "inspect" "c3eefe7f2ad7c3112979062393b1ff7069d13c8e8b0eec5554754d08e84e8b9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3eefe7f2ad7c3112979062393b1ff7069d13c8e8b0eec5554754d08e84e8b9b", kill_on_drop: false }` [INFO] [stdout] c3eefe7f2ad7c3112979062393b1ff7069d13c8e8b0eec5554754d08e84e8b9b [INFO] checking sizakuma/RustyZSharp against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizakuma%2FRustyZSharp" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sizakuma/RustyZSharp 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/sizakuma/RustyZSharp [INFO] finished tweaking git repo https://github.com/sizakuma/RustyZSharp [INFO] tweaked toml for git repo https://github.com/sizakuma/RustyZSharp written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sizakuma/RustyZSharp 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] fb3c9a8c4db3884feb708243186a46d615cc6f60ea745683c692c8dbabc51588 [INFO] running `Command { std: "docker" "start" "-a" "fb3c9a8c4db3884feb708243186a46d615cc6f60ea745683c692c8dbabc51588", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb3c9a8c4db3884feb708243186a46d615cc6f60ea745683c692c8dbabc51588", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb3c9a8c4db3884feb708243186a46d615cc6f60ea745683c692c8dbabc51588", kill_on_drop: false }` [INFO] [stdout] fb3c9a8c4db3884feb708243186a46d615cc6f60ea745683c692c8dbabc51588 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 6d55f504207ba0573236a5d5027f49d46d252e4296db85df3433882011562b6f [INFO] running `Command { std: "docker" "start" "-a" "6d55f504207ba0573236a5d5027f49d46d252e4296db85df3433882011562b6f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling bit-vec v0.4.4 [INFO] [stderr] Compiling vec_map v0.6.0 [INFO] [stderr] Compiling lalr v0.0.2 [INFO] [stderr] Compiling bit-set v0.4.0 [INFO] [stderr] Compiling redfa v0.0.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Compiling plex v0.3.0 [INFO] [stderr] Checking rusty-zsharp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Raw`, `raw` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::util::{Raw, raw}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/lexer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/lexer.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/program.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/program.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprKind`, `Expr` [INFO] [stdout] --> src/program.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::{Expr, ExprKind}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Member`, `Val` [INFO] [stdout] --> src/program.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::environment::{Env, Member, Val}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/program.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::{Lexer, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::Span` [INFO] [stdout] --> src/program.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util::Span; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter`, `write` [INFO] [stdout] --> src/util.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `raw` [INFO] [stdout] --> src/util.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | macro_rules! raw { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/parser.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let Some(name) = self.parse_name() else { todo!() }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/lexer.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Lexer<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 129 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg` and `pos` are never read [INFO] [stdout] --> src/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ParserError { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub pos: Span, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Raw`, `raw` [INFO] [stdout] --> src/main.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::util::{Raw, raw}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> src/lexer.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/lexer.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/program.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/program.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExprKind`, `Expr` [INFO] [stdout] --> src/program.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::{Expr, ExprKind}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Member`, `Val` [INFO] [stdout] --> src/program.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::environment::{Env, Member, Val}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/program.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::{Lexer, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::Span` [INFO] [stdout] --> src/program.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util::Span; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Formatter`, `write` [INFO] [stdout] --> src/util.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `raw` [INFO] [stdout] --> src/util.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | macro_rules! raw { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_block`, `rollback`, `rollback1`, `skip_until`, `skip_while`, and `require_or` are never used [INFO] [stdout] --> src/parser.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_block(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn rollback(&mut self, offset: usize) { self.pos -= offset; } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 219 | #[inline(always)] [INFO] [stdout] 220 | fn rollback1(&mut self) { self.rollback(1); } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn skip_until(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn skip_while(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn require_or(&mut self, expected: &'a [TokenKind], cb: fn()) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `span` are never read [INFO] [stdout] --> src/ast.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Expr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | pub kind: ExprKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Global(Box), [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] 11 | Global(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | VarDef(Box, Box, Box), [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 | VarDef((), (), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | Name(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 | Name(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | IntLit(i64), [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] 20 | IntLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FloatLit(f64), [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] 21 | FloatLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | BoolLit(bool), [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] 22 | BoolLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | StrLit(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] 23 | StrLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `FuncDef`, and `Call` are never constructed [INFO] [stdout] --> src/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ExprKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | FuncDef(Box, Vec, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Call(Box, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExprKind` 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 `filename` and `env` are never read [INFO] [stdout] --> src/program.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Program<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 11 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | pub(crate) env: Env [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `String`, `Integer`, `Float`, and `Bool` are never constructed [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Val { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Bool(bool) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Val` 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: variants `Var` and `Func` are never constructed [INFO] [stdout] --> src/environment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Member { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 15 | Var(String, Val), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Func(String, Vec, Expr) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` 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: associated items `null`, `new`, `as_immut`, and `as_mut` are never used [INFO] [stdout] --> src/util.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Raw { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | pub fn null() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn new(n: &mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn as_immut<'a>(&self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_mut<'a>(&mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c_char_array` is never used [INFO] [stdout] --> src/util.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn to_c_char_array(s: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/parser.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let Some(name) = self.parse_name() else { todo!() }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/lexer.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Lexer<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 129 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg` and `pos` are never read [INFO] [stdout] --> src/parser.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ParserError { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub pos: Span, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_block`, `rollback`, `rollback1`, `skip_until`, `skip_while`, and `require_or` are never used [INFO] [stdout] --> src/parser.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_block(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn rollback(&mut self, offset: usize) { self.pos -= offset; } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 219 | #[inline(always)] [INFO] [stdout] 220 | fn rollback1(&mut self) { self.rollback(1); } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn skip_until(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn skip_while(&mut self, expect: &'a [ TokenKind ]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn require_or(&mut self, expected: &'a [TokenKind], cb: fn()) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `span` are never read [INFO] [stdout] --> src/ast.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Expr { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | pub kind: ExprKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Global(Box), [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] 11 | Global(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | VarDef(Box, Box, Box), [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 16 | VarDef((), (), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | Name(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 | Name(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | IntLit(i64), [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] 20 | IntLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | FloatLit(f64), [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] 21 | FloatLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | BoolLit(bool), [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] 22 | BoolLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | StrLit(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] 23 | StrLit(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `FuncDef`, and `Call` are never constructed [INFO] [stdout] --> src/ast.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ExprKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | [INFO] [stdout] 15 | FuncDef(Box, Vec, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Call(Box, Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExprKind` 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 `filename` and `env` are never read [INFO] [stdout] --> src/program.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Program<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 11 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | pub(crate) env: Env [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `String`, `Integer`, `Float`, and `Bool` are never constructed [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Val { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 6 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Bool(bool) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Val` 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: variants `Var` and `Func` are never constructed [INFO] [stdout] --> src/environment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Member { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 15 | Var(String, Val), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Func(String, Vec, Expr) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Member` 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: associated items `null`, `new`, `as_immut`, and `as_mut` are never used [INFO] [stdout] --> src/util.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Raw { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 41 | pub fn null() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn new(n: &mut T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn as_immut<'a>(&self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn as_mut<'a>(&mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c_char_array` is never used [INFO] [stdout] --> src/util.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn to_c_char_array(s: &str) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.40s [INFO] running `Command { std: "docker" "inspect" "6d55f504207ba0573236a5d5027f49d46d252e4296db85df3433882011562b6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d55f504207ba0573236a5d5027f49d46d252e4296db85df3433882011562b6f", kill_on_drop: false }` [INFO] [stdout] 6d55f504207ba0573236a5d5027f49d46d252e4296db85df3433882011562b6f