[INFO] cloning repository https://github.com/Gokborg/somlang-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gokborg/somlang-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGokborg%2Fsomlang-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGokborg%2Fsomlang-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e476fc27f8d0990a95a9d32d3589d91e9b42b650 [INFO] building Gokborg/somlang-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGokborg%2Fsomlang-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gokborg/somlang-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gokborg/somlang-rs [INFO] finished tweaking git repo https://github.com/Gokborg/somlang-rs [INFO] tweaked toml for git repo https://github.com/Gokborg/somlang-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Gokborg/somlang-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c0f2fecb600d1d7065be15939b7d24b37c81e7b89213dedd10c191c33734871 [INFO] running `Command { std: "docker" "start" "-a" "6c0f2fecb600d1d7065be15939b7d24b37c81e7b89213dedd10c191c33734871", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c0f2fecb600d1d7065be15939b7d24b37c81e7b89213dedd10c191c33734871", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c0f2fecb600d1d7065be15939b7d24b37c81e7b89213dedd10c191c33734871", kill_on_drop: false }` [INFO] [stdout] 6c0f2fecb600d1d7065be15939b7d24b37c81e7b89213dedd10c191c33734871 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 849aeac1f581b803230cdd740a0ae5b9909d981994675bfd3fe0f7149e130161 [INFO] running `Command { std: "docker" "start" "-a" "849aeac1f581b803230cdd740a0ae5b9909d981994675bfd3fe0f7149e130161", kill_on_drop: false }` [INFO] [stderr] Compiling somelang-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::parsers` [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::parsers; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `path::Path` [INFO] [stdout] --> src/codegen/asm.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{fs::File, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `span` [INFO] [stdout] --> src/codegen/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{ast, span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errorcontext::Error` [INFO] [stdout] --> src/typechecking/scope.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{span::Span, errorcontext::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typechecking::TypeChecker` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{typechecking::TypeChecker, errorcontext::ErrorContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/astprinter.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::Assignment { span, target, expr } => { [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/astprinter.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | ast::Statement::Expr { span, expr } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_reg` [INFO] [stdout] --> src/codegen/allocator.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(var_reg) = varrecord.get(varname) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem_alloc` [INFO] [stdout] --> src/codegen/allocator.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | else if let Some(mem_alloc) = self.mem_allocs.get(varname) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mem_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_alloc` [INFO] [stdout] --> src/codegen/allocator.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | if let Some(reg_alloc) = self.reg_allocs.get_mut(&lineno) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen/allocator.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | let mut lineno_regalloc: &mut RegisterAllocator; [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: unused variable: `span` [INFO] [stdout] --> src/codegen/allocator.rs:331:45 [INFO] [stdout] | [INFO] [stdout] 331 | ast::Statement::Body { content, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/rustcompile.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | ast::Statement::Expr { span, expr } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vartype` [INFO] [stdout] --> src/codegen/mod.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | ast::Statement::Declaration {span, vartype, target, expr } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `vartype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | ast::Statement::Body { content, span } => self.gen_body(content), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | ast::Statement::Expr { span, expr } => {self.gen_expr(expr, Some(0));}, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/codegen/mod.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(c) = &*unbox_child { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/codegen/mod.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | if let Some(s) = &*unbox_child { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | ast::Expression::BinaryOp(span, expr1, op, expr2) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/typechecking/scope.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kind` [INFO] [stdout] --> src/typechecking/scope.rs:16:39 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/scope.rs:16:51 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vartype` [INFO] [stdout] --> src/typechecking/mod.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `vartype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/typechecking/mod.rs:25:66 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/typechecking/mod.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | ast::Statement::Body { content, span } => todo!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `content: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | ast::Statement::Body { content, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/typechecking/mod.rs:27:43 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/typechecking/mod.rs:27:49 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `body: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/typechecking/mod.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `child: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:27:62 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/typechecking/mod.rs:28:48 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:28:56 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | ast::Statement::Expr { span, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | ast::Statement::Expr { span, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_context` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut error_context = ErrorContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut error_context = ErrorContext::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_loc` and `end_loc` are never used [INFO] [stdout] --> src/token.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 40 | pub fn start_loc(&self) ->Loc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn end_loc(&self) ->Loc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Array`, `Pointer`, and `Func` are never constructed [INFO] [stdout] --> src/ast.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum VarType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 18 | Normal(Span, String), [INFO] [stdout] 19 | Array(Span, Box, Option), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | Pointer(Span, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Func(Span, Box, Vec) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span`, `name`, and `kind` are never read [INFO] [stdout] --> src/ast.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ArgDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 26 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | pub name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub kind: VarType [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArgDecl` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/span.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Span { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | pub start: Loc, [INFO] [stdout] 6 | pub end: Loc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Span` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `end` are never used [INFO] [stdout] --> src/span.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Span { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(start: Loc, end: Loc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn end(&self) -> Loc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `col` is never read [INFO] [stdout] --> src/span.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Loc { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 36 | pub lineno: u32, [INFO] [stdout] 37 | pub col: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Loc` 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: method `span` is never used [INFO] [stdout] --> src/span.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait GetSpan { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 41 | fn span(&self) -> &Span; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errors` is never read [INFO] [stdout] --> src/errorcontext.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ErrorContext { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | errors: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UndefinedVariable` and `UnexpectedToken` are never constructed [INFO] [stdout] --> src/errorcontext.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 16 | UndefinedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | UnexpectedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` 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 `kind`, `filename`, and `span` are never read [INFO] [stdout] --> src/errorcontext.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Error { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | kind: ErrorKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | span: Span [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `TypeChecker` is never constructed [INFO] [stdout] --> src/typechecking/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TypeChecker<'a> { [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 `check`, `check_body`, and `check_statement` are never used [INFO] [stdout] --> src/typechecking/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl <'a> TypeChecker<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn check(err: &'a mut ErrorContext, statements: &[ast::Statement]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn check_body(&mut self, statements: &[ast::Statement]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn check_statement(&mut self, statement: &ast::Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scopes` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scopes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `put` are never used [INFO] [stdout] --> src/typechecking/scope.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Scopes { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scope` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Scope { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/typechecking/scope.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Scope { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Variable` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Variable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/typechecking/types.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "849aeac1f581b803230cdd740a0ae5b9909d981994675bfd3fe0f7149e130161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "849aeac1f581b803230cdd740a0ae5b9909d981994675bfd3fe0f7149e130161", kill_on_drop: false }` [INFO] [stdout] 849aeac1f581b803230cdd740a0ae5b9909d981994675bfd3fe0f7149e130161 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad7d6e2e3f338fc0f93b7e004ae407680d3ee4b39029c69cc6a697e2ca7ec27d [INFO] running `Command { std: "docker" "start" "-a" "ad7d6e2e3f338fc0f93b7e004ae407680d3ee4b39029c69cc6a697e2ca7ec27d", kill_on_drop: false }` [INFO] [stderr] Compiling somelang-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::parsers` [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::parsers; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `path::Path` [INFO] [stdout] --> src/codegen/asm.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{fs::File, path::Path}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `span` [INFO] [stdout] --> src/codegen/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{ast, span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errorcontext::Error` [INFO] [stdout] --> src/typechecking/scope.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{span::Span, errorcontext::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typechecking::TypeChecker` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{typechecking::TypeChecker, errorcontext::ErrorContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/astprinter.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::Assignment { span, target, expr } => { [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/astprinter.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | ast::Statement::Expr { span, expr } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_reg` [INFO] [stdout] --> src/codegen/allocator.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(var_reg) = varrecord.get(varname) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem_alloc` [INFO] [stdout] --> src/codegen/allocator.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | else if let Some(mem_alloc) = self.mem_allocs.get(varname) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mem_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_alloc` [INFO] [stdout] --> src/codegen/allocator.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | if let Some(reg_alloc) = self.reg_allocs.get_mut(&lineno) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen/allocator.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | let mut lineno_regalloc: &mut RegisterAllocator; [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: unused variable: `span` [INFO] [stdout] --> src/codegen/allocator.rs:331:45 [INFO] [stdout] | [INFO] [stdout] 331 | ast::Statement::Body { content, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/rustcompile.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | ast::Statement::Expr { span, expr } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vartype` [INFO] [stdout] --> src/codegen/mod.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | ast::Statement::Declaration {span, vartype, target, expr } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `vartype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | ast::Statement::Body { content, span } => self.gen_body(content), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 50 | ast::Statement::Expr { span, expr } => {self.gen_expr(expr, Some(0));}, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/codegen/mod.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(c) = &*unbox_child { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/codegen/mod.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | if let Some(s) = &*unbox_child { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/codegen/mod.rs:113:39 [INFO] [stdout] | [INFO] [stdout] 113 | ast::Expression::BinaryOp(span, expr1, op, expr2) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/typechecking/scope.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kind` [INFO] [stdout] --> src/typechecking/scope.rs:16:39 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/scope.rs:16:51 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vartype` [INFO] [stdout] --> src/typechecking/mod.rs:25:49 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `vartype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/typechecking/mod.rs:25:66 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | ast::Statement::Declaration { span, vartype, target: name, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/typechecking/mod.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | ast::Statement::Body { content, span } => todo!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `content: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | ast::Statement::Body { content, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/typechecking/mod.rs:27:43 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/typechecking/mod.rs:27:49 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `body: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/typechecking/mod.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `child: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:27:62 [INFO] [stdout] | [INFO] [stdout] 27 | ast::Statement::IfStatement { cond, body, child, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/typechecking/mod.rs:28:48 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:28:56 [INFO] [stdout] | [INFO] [stdout] 28 | ast::Statement::Assignment { span, target, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/typechecking/mod.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | ast::Statement::Expr { span, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/typechecking/mod.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | ast::Statement::Expr { span, expr } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_context` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut error_context = ErrorContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut error_context = ErrorContext::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_loc` and `end_loc` are never used [INFO] [stdout] --> src/token.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 40 | pub fn start_loc(&self) ->Loc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn end_loc(&self) ->Loc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Array`, `Pointer`, and `Func` are never constructed [INFO] [stdout] --> src/ast.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum VarType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 18 | Normal(Span, String), [INFO] [stdout] 19 | Array(Span, Box, Option), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | Pointer(Span, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | Func(Span, Box, Vec) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span`, `name`, and `kind` are never read [INFO] [stdout] --> src/ast.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ArgDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 26 | pub span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | pub name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub kind: VarType [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArgDecl` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/span.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Span { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | pub start: Loc, [INFO] [stdout] 6 | pub end: Loc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Span` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `end` are never used [INFO] [stdout] --> src/span.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Span { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(start: Loc, end: Loc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn end(&self) -> Loc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `col` is never read [INFO] [stdout] --> src/span.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Loc { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 36 | pub lineno: u32, [INFO] [stdout] 37 | pub col: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Loc` 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: method `span` is never used [INFO] [stdout] --> src/span.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait GetSpan { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 41 | fn span(&self) -> &Span; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errors` is never read [INFO] [stdout] --> src/errorcontext.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ErrorContext { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | errors: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UndefinedVariable` and `UnexpectedToken` are never constructed [INFO] [stdout] --> src/errorcontext.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 16 | UndefinedVariable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | UnexpectedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` 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 `kind`, `filename`, and `span` are never read [INFO] [stdout] --> src/errorcontext.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Error { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | kind: ErrorKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | span: Span [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `TypeChecker` is never constructed [INFO] [stdout] --> src/typechecking/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TypeChecker<'a> { [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 `check`, `check_body`, and `check_statement` are never used [INFO] [stdout] --> src/typechecking/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl <'a> TypeChecker<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn check(err: &'a mut ErrorContext, statements: &[ast::Statement]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn check_body(&mut self, statements: &[ast::Statement]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn check_statement(&mut self, statement: &ast::Statement) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scopes` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scopes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `put` are never used [INFO] [stdout] --> src/typechecking/scope.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Scopes { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn put(&mut self, name: &str, kind: Type, span: Span) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scope` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Scope { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/typechecking/scope.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Scope { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Variable` is never constructed [INFO] [stdout] --> src/typechecking/scope.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Variable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/typechecking/types.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "ad7d6e2e3f338fc0f93b7e004ae407680d3ee4b39029c69cc6a697e2ca7ec27d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad7d6e2e3f338fc0f93b7e004ae407680d3ee4b39029c69cc6a697e2ca7ec27d", kill_on_drop: false }` [INFO] [stdout] ad7d6e2e3f338fc0f93b7e004ae407680d3ee4b39029c69cc6a697e2ca7ec27d