[INFO] cloning repository https://github.com/romirk/sea [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/romirk/sea" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/romirk/sea [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/romirk/sea" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7b7a61fcad4d7103b65b59d526fd26c9a573d90 [INFO] checking romirk/sea against master#36b21637e93b038453924d3c66821089e71d8baa for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromirk%2Fsea" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/romirk/sea [INFO] finished tweaking git repo https://github.com/romirk/sea [INFO] tweaked toml for git repo https://github.com/romirk/sea written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/romirk/sea on toolchain 36b21637e93b038453924d3c66821089e71d8baa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/romirk/sea already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 191a3abe5db6411036daafdd73f66d6efa963650d1074eda8e592cea34560b94 [INFO] running `Command { std: "docker" "start" "-a" "191a3abe5db6411036daafdd73f66d6efa963650d1074eda8e592cea34560b94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "191a3abe5db6411036daafdd73f66d6efa963650d1074eda8e592cea34560b94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "191a3abe5db6411036daafdd73f66d6efa963650d1074eda8e592cea34560b94", kill_on_drop: false }` [INFO] [stdout] 191a3abe5db6411036daafdd73f66d6efa963650d1074eda8e592cea34560b94 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0d9dca7c36efcd506a7276842b7993f3bf25ed694065968bbbd4cce1fce194e [INFO] running `Command { std: "docker" "start" "-a" "f0d9dca7c36efcd506a7276842b7993f3bf25ed694065968bbbd4cce1fce194e", kill_on_drop: false }` [INFO] [stderr] Checking sea v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexer::{Lexer, LexerContext}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexer::{Lexer, LexerContext}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ast/decl.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `declarations` is never read [INFO] [stdout] --> src/ast/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 14 | pub declarations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/decl_old.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Decl(DeclStmt), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GlobalDecl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 6 - Decl(DeclStmt), [INFO] [stdout] 6 + Decl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ast/decl.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/decl_old.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | Typedef(TypedefStmt), [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GlobalDecl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 7 - Typedef(TypedefStmt), [INFO] [stdout] 7 + Typedef(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `decl` is never read [INFO] [stdout] --> src/ast/decl_old.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DeclStmt { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | pub decl: Decl, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeclStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_` and `alias` are never read [INFO] [stdout] --> src/ast/decl_old.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct TypedefStmt { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 23 | pub type_: Type, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | pub alias: Id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypedefStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_`, `id`, and `param_list` are never read [INFO] [stdout] --> src/ast/decl_old.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Decl { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | pub type_: Type, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 34 | pub param_list: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Decl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> src/ast/decl_old.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ParamList { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Goto(Id), [INFO] [stdout] | ---- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 10 - Goto(Id), [INFO] [stdout] 10 + Goto(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Return(Option), [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 - Return(Option), [INFO] [stdout] 11 + Return(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | Block(Vec), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 12 - Block(Vec), [INFO] [stdout] 12 + Block(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | While(WhileStmt), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 13 - While(WhileStmt), [INFO] [stdout] 13 + While(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | DoWhile(DoWhileStmt), [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 14 - DoWhile(DoWhileStmt), [INFO] [stdout] 14 + DoWhile(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | For(ForStmt), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 15 - For(ForStmt), [INFO] [stdout] 15 + For(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | If(IfStmt), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 16 - If(IfStmt), [INFO] [stdout] 16 + If(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | Decl(DeclStmt), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - Decl(DeclStmt), [INFO] [stdout] 17 + Decl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct WhileStmt { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 27 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhileStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct DoWhileStmt { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 33 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoWhileStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `init`, `cond`, `step`, and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct ForStmt { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 44 | pub init: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | pub cond: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | pub step: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond`, `then_branch`, and `else_branch` are never read [INFO] [stdout] --> src/ast/stmt.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct IfStmt { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 52 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub then_branch: Box, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub else_branch: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IfStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast/decl.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Id { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Id` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Binding` is never used [INFO] [stdout] --> src/ast/decl.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Binding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Binding { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 19 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParamList` is never constructed [INFO] [stdout] --> src/ast/decl.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ParamList { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Param` is never constructed [INFO] [stdout] --> src/ast/decl.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Modifier` is never used [INFO] [stdout] --> src/ast/decl.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Modifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Modifier { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 56 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Decl` is never constructed [INFO] [stdout] --> src/ast/decl.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Decl { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Decl { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 78 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/hir.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TopDefn` is never used [INFO] [stdout] --> src/hir.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TopDefn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FnDefn` is never constructed [INFO] [stdout] --> src/hir.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FnDefn { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct VarDefn { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 41 | /// Attributes on the function. [INFO] [stdout] 42 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub bindings: Vec<(Binding, Option)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct TypeDefn { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 53 | /// Attributes on the function. [INFO] [stdout] 54 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub bindings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Decl { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 65 | /// Attributes on the declaration. [INFO] [stdout] 66 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub bindings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `binding` are never read [INFO] [stdout] --> src/hir.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct MonoDecl { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 77 | /// Attributes on the declaration. [INFO] [stdout] 78 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub binding: Binding, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Fn`, `Array`, `Pointer`, `Paren`, `Ident`, and `Anonymous` are never constructed [INFO] [stdout] --> src/hir.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum Binding { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 89 | /// A function binding. [INFO] [stdout] 90 | Fn { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 101 | Array { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | Pointer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | Ident { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | Anonymous, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/hir.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 136 | /// A character type. [INFO] [stdout] 137 | Char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | Short { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | Int { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | Long { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | LongLong { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | Double, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | LongDouble, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | Struct { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | Ident { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/hir.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stmts` is never read [INFO] [stdout] --> src/hir.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 206 | Block { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] 207 | /// The statements making up the block. [INFO] [stdout] 208 | stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond`, `then`, and `else` are never read [INFO] [stdout] --> src/hir.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 221 | If { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 222 | /// The condition. [INFO] [stdout] 223 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | then: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | r#else: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `init`, `cond`, `rept`, and `body` are never read [INFO] [stdout] --> src/hir.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 233 | For { [INFO] [stdout] | --- fields in this variant [INFO] [stdout] 234 | /// The initialization expression. [INFO] [stdout] 235 | init: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | cond: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | rept: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/hir.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 248 | While { [INFO] [stdout] | ----- fields in this variant [INFO] [stdout] 249 | /// The loop condition. [INFO] [stdout] 250 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body` and `cond` are never read [INFO] [stdout] --> src/hir.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 257 | DoWhile { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] 258 | /// The loop body. [INFO] [stdout] 259 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `expr` is never read [INFO] [stdout] --> src/hir.rs:272:14 [INFO] [stdout] | [INFO] [stdout] 272 | Return { expr: Option }, [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `VarDefn`, `Type`, and `Expr` are never constructed [INFO] [stdout] --> src/hir.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 212 | VarDefn(VarDefn), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | Type(TypeDefn), [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ref`, `Bin`, `Una`, and `Ident` are never constructed [INFO] [stdout] --> src/hir.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 276 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 282 | Ref(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | Bin(BinOp, Box, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | Una(UnaOp, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | Ident(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Sub` are never constructed [INFO] [stdout] --> src/hir.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 295 | pub enum BinOp { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 296 | /// Addition. [INFO] [stdout] 297 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Neg`, `Not`, and `Inv` are never constructed [INFO] [stdout] --> src/hir.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 304 | pub enum UnaOp { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 305 | /// Negation. [INFO] [stdout] 306 | Neg, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | Inv, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resume` is never used [INFO] [stdout] --> src/lexer.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'src> LexerContext<'src> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | const fn resume(&mut self) -> Lexer<'_, 'src> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ident` is never used [INFO] [stdout] --> src/lexer.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl<'src, 'ctx> Lexer<'src, 'ctx> { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn ident(&mut self) -> Result<&'src str, ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `expected` are never read [INFO] [stdout] --> src/lexer.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 232 | pub struct ParseError { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 233 | /// The byte offset of the error. [INFO] [stdout] 234 | offset: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | expected: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` 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: field `declarations` is never read [INFO] [stdout] --> src/ast/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 14 | pub declarations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/decl_old.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Decl(DeclStmt), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GlobalDecl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 6 - Decl(DeclStmt), [INFO] [stdout] 6 + Decl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/decl_old.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | Typedef(TypedefStmt), [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GlobalDecl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 7 - Typedef(TypedefStmt), [INFO] [stdout] 7 + Typedef(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `decl` is never read [INFO] [stdout] --> src/ast/decl_old.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DeclStmt { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | pub decl: Decl, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeclStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_` and `alias` are never read [INFO] [stdout] --> src/ast/decl_old.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct TypedefStmt { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 23 | pub type_: Type, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | pub alias: Id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypedefStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_`, `id`, and `param_list` are never read [INFO] [stdout] --> src/ast/decl_old.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Decl { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | pub type_: Type, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 34 | pub param_list: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Decl` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> src/ast/decl_old.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ParamList { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | pub params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Goto(Id), [INFO] [stdout] | ---- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 10 - Goto(Id), [INFO] [stdout] 10 + Goto(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Return(Option), [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 - Return(Option), [INFO] [stdout] 11 + Return(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | Block(Vec), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 12 - Block(Vec), [INFO] [stdout] 12 + Block(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | While(WhileStmt), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 13 - While(WhileStmt), [INFO] [stdout] 13 + While(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | DoWhile(DoWhileStmt), [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 14 - DoWhile(DoWhileStmt), [INFO] [stdout] 14 + DoWhile(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | For(ForStmt), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 15 - For(ForStmt), [INFO] [stdout] 15 + For(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | If(IfStmt), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 16 - If(IfStmt), [INFO] [stdout] 16 + If(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast/stmt.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | Decl(DeclStmt), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - Decl(DeclStmt), [INFO] [stdout] 17 + Decl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct WhileStmt { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 27 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhileStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct DoWhileStmt { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 33 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoWhileStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `init`, `cond`, `step`, and `body` are never read [INFO] [stdout] --> src/ast/stmt.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct ForStmt { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 44 | pub init: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | pub cond: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | pub step: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond`, `then_branch`, and `else_branch` are never read [INFO] [stdout] --> src/ast/stmt.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct IfStmt { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 52 | pub cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pub then_branch: Box, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub else_branch: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IfStmt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast/decl.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Id { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Id` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Binding` is never used [INFO] [stdout] --> src/ast/decl.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Binding { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Binding { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 19 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParamList` is never constructed [INFO] [stdout] --> src/ast/decl.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ParamList { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Param` is never constructed [INFO] [stdout] --> src/ast/decl.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Param { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Modifier` is never used [INFO] [stdout] --> src/ast/decl.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Modifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Modifier { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 56 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Decl` is never constructed [INFO] [stdout] --> src/ast/decl.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Decl { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/ast/decl.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Decl { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 78 | pub fn parse(mut input: &str) -> Result<(Self, &str), ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/hir.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TopDefn` is never used [INFO] [stdout] --> src/hir.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TopDefn { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FnDefn` is never constructed [INFO] [stdout] --> src/hir.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct FnDefn { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct VarDefn { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 41 | /// Attributes on the function. [INFO] [stdout] 42 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub bindings: Vec<(Binding, Option)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct TypeDefn { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 53 | /// Attributes on the function. [INFO] [stdout] 54 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub bindings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `bindings` are never read [INFO] [stdout] --> src/hir.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Decl { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 65 | /// Attributes on the declaration. [INFO] [stdout] 66 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub bindings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `base`, and `binding` are never read [INFO] [stdout] --> src/hir.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct MonoDecl { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 77 | /// Attributes on the declaration. [INFO] [stdout] 78 | pub attrs: (), // TODO [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub base: Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub binding: Binding, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Fn`, `Array`, `Pointer`, `Paren`, `Ident`, and `Anonymous` are never constructed [INFO] [stdout] --> src/hir.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum Binding { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 89 | /// A function binding. [INFO] [stdout] 90 | Fn { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 101 | Array { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | Pointer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | Ident { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | Anonymous, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/hir.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 136 | /// A character type. [INFO] [stdout] 137 | Char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | Short { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | Int { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | Long { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | LongLong { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | Double, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | LongDouble, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | Struct { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | Ident { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/hir.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stmts` is never read [INFO] [stdout] --> src/hir.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 206 | Block { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] 207 | /// The statements making up the block. [INFO] [stdout] 208 | stmts: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond`, `then`, and `else` are never read [INFO] [stdout] --> src/hir.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 221 | If { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 222 | /// The condition. [INFO] [stdout] 223 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | then: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | r#else: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `init`, `cond`, `rept`, and `body` are never read [INFO] [stdout] --> src/hir.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 233 | For { [INFO] [stdout] | --- fields in this variant [INFO] [stdout] 234 | /// The initialization expression. [INFO] [stdout] 235 | init: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | cond: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | rept: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cond` and `body` are never read [INFO] [stdout] --> src/hir.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 248 | While { [INFO] [stdout] | ----- fields in this variant [INFO] [stdout] 249 | /// The loop condition. [INFO] [stdout] 250 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `body` and `cond` are never read [INFO] [stdout] --> src/hir.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 257 | DoWhile { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] 258 | /// The loop body. [INFO] [stdout] 259 | body: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | cond: Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `expr` is never read [INFO] [stdout] --> src/hir.rs:272:14 [INFO] [stdout] | [INFO] [stdout] 272 | Return { expr: Option }, [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `VarDefn`, `Type`, and `Expr` are never constructed [INFO] [stdout] --> src/hir.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 212 | VarDefn(VarDefn), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | Type(TypeDefn), [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ref`, `Bin`, `Una`, and `Ident` are never constructed [INFO] [stdout] --> src/hir.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 276 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 282 | Ref(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | Bin(BinOp, Box, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | Una(UnaOp, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | Ident(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Sub` are never constructed [INFO] [stdout] --> src/hir.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 295 | pub enum BinOp { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 296 | /// Addition. [INFO] [stdout] 297 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Neg`, `Not`, and `Inv` are never constructed [INFO] [stdout] --> src/hir.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 304 | pub enum UnaOp { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 305 | /// Negation. [INFO] [stdout] 306 | Neg, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | Inv, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resume` is never used [INFO] [stdout] --> src/lexer.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'src> LexerContext<'src> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | const fn resume(&mut self) -> Lexer<'_, 'src> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ident` is never used [INFO] [stdout] --> src/lexer.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl<'src, 'ctx> Lexer<'src, 'ctx> { [INFO] [stdout] | ---------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn ident(&mut self) -> Result<&'src str, ParseError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `expected` are never read [INFO] [stdout] --> src/lexer.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 232 | pub struct ParseError { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 233 | /// The byte offset of the error. [INFO] [stdout] 234 | offset: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | expected: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "f0d9dca7c36efcd506a7276842b7993f3bf25ed694065968bbbd4cce1fce194e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0d9dca7c36efcd506a7276842b7993f3bf25ed694065968bbbd4cce1fce194e", kill_on_drop: false }` [INFO] [stdout] f0d9dca7c36efcd506a7276842b7993f3bf25ed694065968bbbd4cce1fce194e