[INFO] cloning repository https://github.com/Lokasku/lazy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lokasku/lazy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 902e21df2e0a552724ffc7e9acb2995f850fc4ae [INFO] checking Lokasku/lazy/902e21df2e0a552724ffc7e9acb2995f850fc4ae against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLokasku%2Flazy" "/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/Lokasku/lazy on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lokasku/lazy [INFO] finished tweaking git repo https://github.com/Lokasku/lazy [INFO] tweaked toml for git repo https://github.com/Lokasku/lazy written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lokasku/lazy 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded concolor v0.1.1 [INFO] [stderr] Downloaded logos-derive v0.14.0 [INFO] [stderr] Downloaded logos-codegen v0.14.0 [INFO] [stderr] Downloaded ariadne v0.4.0 [INFO] [stderr] Downloaded higher-kinded-types v0.1.1 [INFO] [stderr] Downloaded concolor-query v0.3.3 [INFO] [stderr] Downloaded never-say-never v6.6.666 [INFO] [stderr] Downloaded polonius-the-crab v0.4.1 [INFO] [stderr] Downloaded logos v0.14.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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9c01f218bde0e99baf88d1e114da9739a26e841774c3ce52e428ed4f96ef0a5 [INFO] running `Command { std: "docker" "start" "-a" "a9c01f218bde0e99baf88d1e114da9739a26e841774c3ce52e428ed4f96ef0a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9c01f218bde0e99baf88d1e114da9739a26e841774c3ce52e428ed4f96ef0a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9c01f218bde0e99baf88d1e114da9739a26e841774c3ce52e428ed4f96ef0a5", kill_on_drop: false }` [INFO] [stdout] a9c01f218bde0e99baf88d1e114da9739a26e841774c3ce52e428ed4f96ef0a5 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d43941ba51eb9ca3c37d225c88577287ddc96a6ceb2df09cc8f039b6a2ee15d7 [INFO] running `Command { std: "docker" "start" "-a" "d43941ba51eb9ca3c37d225c88577287ddc96a6ceb2df09cc8f039b6a2ee15d7", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking concolor-query v0.3.3 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking never-say-never v6.6.666 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking concolor v0.1.1 [INFO] [stderr] Checking higher-kinded-types v0.1.1 [INFO] [stderr] Checking ariadne v0.4.0 [INFO] [stderr] Checking polonius-the-crab v0.4.1 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Compiling logos-codegen v0.14.0 [INFO] [stderr] Compiling logos-derive v0.14.0 [INFO] [stderr] Checking logos v0.14.0 [INFO] [stderr] Checking risk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParsedExpr` [INFO] [stdout] --> src/parser/mod.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ast::{App, BinOp, Bool, Literal, LiteralKind, ParsedExpr, TypeDecl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/semantics/tc/error.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::{Type, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ParsedExpr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 137 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 290 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 311 | impl Pattern { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 312 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/parser/mod.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn expect(&mut self, token: Token<'a>) -> ParserResult> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectedNewline`, `UnexpectedEOF`, `UnexpectedTokenInPattern`, and `TooMuchExpr` are never constructed [INFO] [stdout] --> src/parser/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UnexpectedToken { expected: String, found: Span }, [INFO] [stdout] 25 | ExpectedNewline { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UnexpectedEOF { expected: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | UnexpectedEndOfInput, [INFO] [stdout] 28 | UnexpectedTokenInPattern { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | TooMuchExpr { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` 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: type alias `Variant` is never used [INFO] [stdout] --> src/semantics/tc/mod.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type Variant = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/semantics/tc/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeChecker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_type`, and `analyze_statement` are never used [INFO] [stdout] --> src/semantics/tc/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(filename: &'static str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_type(&self, expr: AnnExpr) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn analyze_statement(&mut self, statement: Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Annot` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Annot = (Span, Type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypedExpr` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type TypedExpr = AnnExpr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TypedExpr { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 7 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerErrorKind` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypeCheckerErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeCheckerError` is never constructed [INFO] [stdout] --> src/semantics/tc/error.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `report` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl TypeCheckerError { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 37 | pub fn report(&self, filename: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_int`, `into_bytecode`, and `from_bytecode` are never used [INFO] [stdout] --> src/bytecode/constant.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Constant { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_int(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn into_bytecode(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn from_bytecode(bytes: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dis_constinue` is never read [INFO] [stdout] --> src/bytecode/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | dis_constinue: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` 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: methods `getOpCodeCount` and `getConstantCount` are never used [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Chunk { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn addOpCode(&mut self, op: OpCode, span: Span) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn addByte(&mut self, byte: u8, span: Span) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn addConstant(&mut self, constant: Constant) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `add_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOpCode(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn getConstant(&self, index: usize) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCodeCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_op_code_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstantCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dissassembleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn dissassembleInstruction(&mut self, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dissassemble_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `constantInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn constantInstruction(&mut self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constant_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `simpleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn simpleInstruction(&self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `simple_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn addByte(&mut self, byte: u8) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | fn addOpCode(&mut self, op: OpCode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:55:56 [INFO] [stdout] | [INFO] [stdout] 55 | TypeCheckerErrorKind::NonExhaustiveMatch { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:58:50 [INFO] [stdout] | [INFO] [stdout] 58 | TypeCheckerErrorKind::InfiniteType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | TypeCheckerErrorKind::AmbiguousType { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/error.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | TypeCheckerErrorKind::UnificationError { span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:39 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:80:45 [INFO] [stdout] | [INFO] [stdout] 80 | AnnExpr::App(App { ident, args, span }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/semantics/tc/mod.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/semantics/tc/mod.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/semantics/tc/mod.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | expr, [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/semantics/tc/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | span [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/bytecode/chunk.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn dissassemble(&mut self, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ret` [INFO] [stdout] --> src/compiler/mod.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | AnnExpr::Let { binds, ret, ann } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `ret: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ParsedExpr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 137 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl Type { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 290 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/ast/mod.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 311 | impl Pattern { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 312 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expect` is never used [INFO] [stdout] --> src/parser/mod.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn expect(&mut self, token: Token<'a>) -> ParserResult> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpectedNewline`, `UnexpectedEOF`, `UnexpectedTokenInPattern`, and `TooMuchExpr` are never constructed [INFO] [stdout] --> src/parser/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UnexpectedToken { expected: String, found: Span }, [INFO] [stdout] 25 | ExpectedNewline { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UnexpectedEOF { expected: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | UnexpectedEndOfInput, [INFO] [stdout] 28 | UnexpectedTokenInPattern { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | TooMuchExpr { found: Span }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` 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: type alias `Variant` is never used [INFO] [stdout] --> src/semantics/tc/mod.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | type Variant = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeChecker` is never constructed [INFO] [stdout] --> src/semantics/tc/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct TypeChecker { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeChecker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_type`, and `analyze_statement` are never used [INFO] [stdout] --> src/semantics/tc/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl TypeChecker { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(filename: &'static str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_type(&self, expr: AnnExpr) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn analyze_statement(&mut self, statement: Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Annot` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Annot = (Span, Type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypedExpr` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type TypedExpr = AnnExpr; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_span` is never used [INFO] [stdout] --> src/semantics/tc/ast.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl TypedExpr { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 7 | pub fn get_span(&self) -> &Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeCheckerErrorKind` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypeCheckerErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeCheckerError` is never constructed [INFO] [stdout] --> src/semantics/tc/error.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct TypeCheckerError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeCheckerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `report` is never used [INFO] [stdout] --> src/semantics/tc/error.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl TypeCheckerError { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 37 | pub fn report(&self, filename: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_int` is never used [INFO] [stdout] --> src/bytecode/constant.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn as_int(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dis_constinue` is never read [INFO] [stdout] --> src/bytecode/chunk.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | dis_constinue: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` 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: methods `getOpCodeCount` and `getConstantCount` are never used [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Chunk { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn addOpCode(&mut self, op: OpCode, span: Span) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn addByte(&mut self, byte: u8, span: Span) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn addConstant(&mut self, constant: Constant) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `add_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCode` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOpCode(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstant` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn getConstant(&self, index: usize) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOpCodeCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn getOpCodeCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_op_code_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getConstantCount` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn getConstantCount(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_constant_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dissassembleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn dissassembleInstruction(&mut self, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dissassemble_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `constantInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn constantInstruction(&mut self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `constant_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `simpleInstruction` should have a snake case name [INFO] [stdout] --> src/bytecode/chunk.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn simpleInstruction(&self, name: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `simple_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addByte` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn addByte(&mut self, byte: u8) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `add_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addOpCode` should have a snake case name [INFO] [stdout] --> src/compiler/mod.rs:313:8 [INFO] [stdout] | [INFO] [stdout] 313 | fn addOpCode(&mut self, op: OpCode) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_op_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.72s [INFO] running `Command { std: "docker" "inspect" "d43941ba51eb9ca3c37d225c88577287ddc96a6ceb2df09cc8f039b6a2ee15d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d43941ba51eb9ca3c37d225c88577287ddc96a6ceb2df09cc8f039b6a2ee15d7", kill_on_drop: false }` [INFO] [stdout] d43941ba51eb9ca3c37d225c88577287ddc96a6ceb2df09cc8f039b6a2ee15d7