[INFO] cloning repository https://github.com/VASABIcz/vipl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VASABIcz/vipl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVASABIcz%2Fvipl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVASABIcz%2Fvipl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb1820435ee79d8d475e922bcd9a0262c7309d57 [INFO] checking VASABIcz/vipl/fb1820435ee79d8d475e922bcd9a0262c7309d57 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVASABIcz%2Fvipl" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VASABIcz/vipl 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/VASABIcz/vipl [INFO] finished tweaking git repo https://github.com/VASABIcz/vipl [INFO] tweaked toml for git repo https://github.com/VASABIcz/vipl written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VASABIcz/vipl 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 4202ade33487ee557054402b9d8f8b6f7fd7c1b0a01551ae839822fa3f3dbc58 [INFO] running `Command { std: "docker" "start" "-a" "4202ade33487ee557054402b9d8f8b6f7fd7c1b0a01551ae839822fa3f3dbc58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4202ade33487ee557054402b9d8f8b6f7fd7c1b0a01551ae839822fa3f3dbc58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4202ade33487ee557054402b9d8f8b6f7fd7c1b0a01551ae839822fa3f3dbc58", kill_on_drop: false }` [INFO] [stdout] 4202ade33487ee557054402b9d8f8b6f7fd7c1b0a01551ae839822fa3f3dbc58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fd748e1d6a15bead6803be1efbbd7e1990ea7c7eeb9b79807c5f0a4033690783 [INFO] running `Command { std: "docker" "start" "-a" "fd748e1d6a15bead6803be1efbbd7e1990ea7c7eeb9b79807c5f0a4033690783", kill_on_drop: false }` [INFO] [stderr] Checking wipol v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/code_gen.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeGen` [INFO] [stdout] --> src/parser.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{CodeGen, Operation}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Expression::Literal` [INFO] [stdout] --> src/interpreter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Expression::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/code_gen.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeGen` [INFO] [stdout] --> src/parser.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{CodeGen, Operation}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Expression::Literal` [INFO] [stdout] --> src/interpreter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Expression::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/interpreter.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 58 | / loop { [INFO] [stdout] 59 | | for o in body.clone() { [INFO] [stdout] 60 | | if self.execute_operation(&o, &mut s) == true { [INFO] [stdout] 61 | | return false [INFO] [stdout] ... | [INFO] [stdout] 64 | | thread::sleep(Duration::from_millis(10)) [INFO] [stdout] 65 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 66 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/code_gen.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut a = Self { [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: unreachable expression [INFO] [stdout] --> src/interpreter.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 58 | / loop { [INFO] [stdout] 59 | | for o in body.clone() { [INFO] [stdout] 60 | | if self.execute_operation(&o, &mut s) == true { [INFO] [stdout] 61 | | return false [INFO] [stdout] ... | [INFO] [stdout] 64 | | thread::sleep(Duration::from_millis(10)) [INFO] [stdout] 65 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 66 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/code_gen.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut a = Self { [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: value assigned to `bias` is never read [INFO] [stdout] --> src/parser.rs:278:37 [INFO] [stdout] | [INFO] [stdout] 278 | ... bias = 3; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bias` is never read [INFO] [stdout] --> src/parser.rs:286:37 [INFO] [stdout] | [INFO] [stdout] 286 | ... bias = 3; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGen` is never constructed [INFO] [stdout] --> src/code_gen.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CodeGen { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeGen` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exp` is never read [INFO] [stdout] --> src/code_gen.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | Return { [INFO] [stdout] | ------ field in this variant [INFO] [stdout] 39 | exp: Expression, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` 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: multiple associated items are never used [INFO] [stdout] --> src/code_gen.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl CodeGen { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 52 | pub fn inc(self: &mut Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn dec(self: &mut Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn arithmetic(self: &mut Self, op: T, v: R) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn arithmetic_previous(self: &mut Self, op: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn push(self: &mut Self, v: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn pop(self: &mut Self, v: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn pop0(self: &mut Self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn add_line(self: &mut Self, s: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn get_variable_ptr(self: &mut Self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn asm2sym(asm: &str) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn gen_invoke_function(self: &mut Self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn gen_expression(self: &mut Self, a: Box, free: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn handle_argument(self: &mut Self, op: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn handle_function_call(self: &mut Self, function: Op) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn gen_variable_dec(self: &mut Self, name: &str, typ: VariableType, size: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn handle_body(self: &mut Self, body: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn code_gen(&mut self, ast: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpType` is never used [INFO] [stdout] --> src/data_types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum OpType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpType` 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: variant `Colon` is never constructed [INFO] [stdout] --> src/data_types.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum SeparatorType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 56 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeparatorType` 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: multiple variants are never constructed [INFO] [stdout] --> src/data_types.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum OperatorType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 62 | Greater, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | Less, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | Unequal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | Eql, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | Eqg, [INFO] [stdout] | ^^^ [INFO] [stdout] 70 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 71 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperatorType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/data_types.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse(self: &mut Self, text: String) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn parse_keyword(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn parse_separator(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | fn parse_operator(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn parse_slice(self: &Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn parse_number(self: &mut Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn parse_string(self: &mut Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lexer_prototype.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn test(to_lex: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_equal` is never used [INFO] [stdout] --> src/parser.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_equal(self: &Self, token: Token, token1: Token) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bias` is never read [INFO] [stdout] --> src/parser.rs:278:37 [INFO] [stdout] | [INFO] [stdout] 278 | ... bias = 3; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bias` is never read [INFO] [stdout] --> src/parser.rs:286:37 [INFO] [stdout] | [INFO] [stdout] 286 | ... bias = 3; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | self.get_token(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 118 | let _ = self.get_token(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGen` is never constructed [INFO] [stdout] --> src/code_gen.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CodeGen { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeGen` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exp` is never read [INFO] [stdout] --> src/code_gen.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | Return { [INFO] [stdout] | ------ field in this variant [INFO] [stdout] 39 | exp: Expression, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` 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: multiple associated items are never used [INFO] [stdout] --> src/code_gen.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl CodeGen { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 52 | pub fn inc(self: &mut Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn dec(self: &mut Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn arithmetic(self: &mut Self, op: T, v: R) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn arithmetic_previous(self: &mut Self, op: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn push(self: &mut Self, v: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn pop(self: &mut Self, v: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn pop0(self: &mut Self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn add_line(self: &mut Self, s: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn get_variable_ptr(self: &mut Self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn asm2sym(asm: &str) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn gen_invoke_function(self: &mut Self, name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn gen_expression(self: &mut Self, a: Box, free: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn handle_argument(self: &mut Self, op: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn handle_function_call(self: &mut Self, function: Op) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn gen_variable_dec(self: &mut Self, name: &str, typ: VariableType, size: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn handle_body(self: &mut Self, body: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn code_gen(&mut self, ast: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpType` is never used [INFO] [stdout] --> src/data_types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum OpType { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpType` 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: variant `Colon` is never constructed [INFO] [stdout] --> src/data_types.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum SeparatorType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 56 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeparatorType` 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: multiple variants are never constructed [INFO] [stdout] --> src/data_types.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum OperatorType { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 62 | Greater, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | Less, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 67 | Unequal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 68 | Eql, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | Eqg, [INFO] [stdout] | ^^^ [INFO] [stdout] 70 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 71 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperatorType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/data_types.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse(self: &mut Self, text: String) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn parse_keyword(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn parse_separator(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | fn parse_operator(self: &Self, slice: &str) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn parse_slice(self: &Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn parse_number(self: &mut Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn parse_string(self: &mut Self, slice: &str) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/lexer_prototype.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn test(to_lex: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_equal` is never used [INFO] [stdout] --> src/parser.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_equal(self: &Self, token: Token, token1: Token) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | self.get_token(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 118 | let _ = self.get_token(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "fd748e1d6a15bead6803be1efbbd7e1990ea7c7eeb9b79807c5f0a4033690783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd748e1d6a15bead6803be1efbbd7e1990ea7c7eeb9b79807c5f0a4033690783", kill_on_drop: false }` [INFO] [stdout] fd748e1d6a15bead6803be1efbbd7e1990ea7c7eeb9b79807c5f0a4033690783