[INFO] cloning repository https://github.com/manojsinghnegiwd/rust-js-runtime [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/manojsinghnegiwd/rust-js-runtime" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanojsinghnegiwd%2Frust-js-runtime", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanojsinghnegiwd%2Frust-js-runtime'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d7dc1c4b2bca0f55268fd4afca5d4c910d617b9 [INFO] checking manojsinghnegiwd/rust-js-runtime against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanojsinghnegiwd%2Frust-js-runtime" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/manojsinghnegiwd/rust-js-runtime on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/manojsinghnegiwd/rust-js-runtime [INFO] finished tweaking git repo https://github.com/manojsinghnegiwd/rust-js-runtime [INFO] tweaked toml for git repo https://github.com/manojsinghnegiwd/rust-js-runtime written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/manojsinghnegiwd/rust-js-runtime 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9614a0e9121094197eba81acee8e8f8df61f0d88a6a20f142cf723c44b5f86c7 [INFO] running `Command { std: "docker" "start" "-a" "9614a0e9121094197eba81acee8e8f8df61f0d88a6a20f142cf723c44b5f86c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9614a0e9121094197eba81acee8e8f8df61f0d88a6a20f142cf723c44b5f86c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9614a0e9121094197eba81acee8e8f8df61f0d88a6a20f142cf723c44b5f86c7", kill_on_drop: false }` [INFO] [stdout] 9614a0e9121094197eba81acee8e8f8df61f0d88a6a20f142cf723c44b5f86c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db853bffd3ae3909710541098a20ea55521cdcc3a8bece82dc28698b633f6c29 [INFO] running `Command { std: "docker" "start" "-a" "db853bffd3ae3909710541098a20ea55521cdcc3a8bece82dc28698b633f6c29", kill_on_drop: false }` [INFO] [stderr] Checking js-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `runtime::Runtime` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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 pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Parser<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(tokens: &'a Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn parse(&mut self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn get_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn parse_scope(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn parse_return(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn parse_function(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn parse_function_call(&mut self, name: String) -> Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn parse_for_loop(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn parse_let(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | fn parse_log(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_if(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn parse_loop(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn parse_while(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | fn parse_expr(&mut self) -> Expr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/types/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 5 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | Assign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | LogicalOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | LogicalNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | TypeCheckEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | NotEquals, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | TypeNotEquals, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | GreaterThan, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | GreaterThanEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | LessThanEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Addition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | Subtraction, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | Multiplication, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 32 | Division, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | Increment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | Decrement, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | Semicolon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | BraceOpen, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | BraceClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | ParenOpen, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | ParenClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 42 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Comment(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | If, [INFO] [stdout] | ^^ [INFO] [stdout] 47 | ElseIf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 48 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | Log, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | Let, [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | ForLoop, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 55 | Loop, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | While [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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 variants are never constructed [INFO] [stdout] --> src/types/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 62 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Addition(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | Subtraction(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 68 | Multiplication(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 69 | Division(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | Equals(Box, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | TypeCheckEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | NotEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | TypeNotEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 74 | GreaterThan(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 75 | GreaterThanEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | LessThan(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | LessThanEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 78 | ControlFlow(Box, Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 79 | FunctionCall(String, Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 80 | LogicalAnd(Box, Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 81 | LogicalOr(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 82 | LogicalNot(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 83 | Assignment(String, Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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/types/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 89 | Let(String, Expr), [INFO] [stdout] | ^^^ [INFO] [stdout] 90 | Assignment(String, Expr), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 91 | ControlFlow(Box, Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | CodeBlock(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 93 | Log(Expr), [INFO] [stdout] | ^^^ [INFO] [stdout] 94 | Function(String, Vec, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 95 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 96 | FunctionCall(String, Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 97 | ForLoop(Box, Box, Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 98 | Expression(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 99 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | While(Box, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | Break [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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/types/mod.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 107 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 108 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 109 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 110 | FunctionDef(Vec, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 113 | None [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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 `Signal` is never used [INFO] [stdout] --> src/types/mod.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum Signal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interpreter` is never constructed [INFO] [stdout] --> src/interpreter/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Interpreter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/interpreter/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Interpreter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(scope: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn eval(&mut self, stmts: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn eval_code_block(&mut self, stmts: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn eval_let(&mut self, name: String, value: Expr) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn eval_let_function (&mut self, name: String, args: Vec, value: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn eval_function_call (&mut self, name: String, args: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn eval_assignment(&mut self, name: String, value: Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn eval_log(&mut self, expr: Expr) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn eval_if(&mut self, condition: Box, stmts: Box, else_stmt: Box) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn eval_loop(&mut self, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn eval_while(&mut self, condition: Box, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | fn eval_for_loop(&mut self, init: Box, condition: Box, increment: Box, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn eval_expr_with_signal (&mut self, expr: Expr) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | fn eval_expr(&mut self, expr: Expr) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new(code: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn is_valid_variable_char (&mut self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn read_identifier(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | fn read_float(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn read_string_literal(&mut self, delimiter: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn read_comment(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_rc`, `get`, `contains_key_local`, `assign`, and `define` are never used [INFO] [stdout] --> src/scope/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Scope { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(parent: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn with_rc(parent: Option>>) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get(&self, name: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn contains_key_local(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn assign (&mut self, name: String, value: Value) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn define(&mut self, name: String, value: Value) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Runtime` is never constructed [INFO] [stdout] --> src/runtime/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `repl`, `parse_ast`, and `execute` are never used [INFO] [stdout] --> src/runtime/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(code: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn repl (&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn parse_ast (&mut self, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn execute (&mut self) -> Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/lib.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let output = runtime.execute(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FunctionCall` is never constructed [INFO] [stdout] --> src/types/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: variant `Loop` is never constructed [INFO] [stdout] --> src/types/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Return` is never constructed [INFO] [stdout] --> src/types/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/runtime/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | output: Value, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `repl` is never used [INFO] [stdout] --> src/runtime/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn repl (&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `output` and `code` are never read [INFO] [stdout] --> src/runtime/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | output: Value, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | code: &'a str [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/runtime/mod.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn execute (&mut self) -> Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FunctionCall` is never constructed [INFO] [stdout] --> src/types/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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 `Loop` is never constructed [INFO] [stdout] --> src/types/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Return` is never constructed [INFO] [stdout] --> src/types/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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: fields `output` and `code` are never read [INFO] [stdout] --> src/runtime/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | output: Value, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | code: &'a str [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/runtime/mod.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn execute (&mut self) -> Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FunctionCall` is never constructed [INFO] [stdout] --> src/types/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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 `Loop` is never constructed [INFO] [stdout] --> src/types/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Return` is never constructed [INFO] [stdout] --> src/types/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "db853bffd3ae3909710541098a20ea55521cdcc3a8bece82dc28698b633f6c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db853bffd3ae3909710541098a20ea55521cdcc3a8bece82dc28698b633f6c29", kill_on_drop: false }` [INFO] [stdout] db853bffd3ae3909710541098a20ea55521cdcc3a8bece82dc28698b633f6c29 [INFO] checking manojsinghnegiwd/rust-js-runtime against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanojsinghnegiwd%2Frust-js-runtime" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/manojsinghnegiwd/rust-js-runtime on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/manojsinghnegiwd/rust-js-runtime [INFO] finished tweaking git repo https://github.com/manojsinghnegiwd/rust-js-runtime [INFO] tweaked toml for git repo https://github.com/manojsinghnegiwd/rust-js-runtime written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/manojsinghnegiwd/rust-js-runtime 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7c20de3bb8dbf97fd5b01105a8cee47423bee8d55d7a2cd8fab1691fb2a4fae [INFO] running `Command { std: "docker" "start" "-a" "a7c20de3bb8dbf97fd5b01105a8cee47423bee8d55d7a2cd8fab1691fb2a4fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7c20de3bb8dbf97fd5b01105a8cee47423bee8d55d7a2cd8fab1691fb2a4fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7c20de3bb8dbf97fd5b01105a8cee47423bee8d55d7a2cd8fab1691fb2a4fae", kill_on_drop: false }` [INFO] [stdout] a7c20de3bb8dbf97fd5b01105a8cee47423bee8d55d7a2cd8fab1691fb2a4fae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc8dd4540e6a587e49e0f6b26e032e1681013442a44f6d30c8b9b68a2cba34b2 [INFO] running `Command { std: "docker" "start" "-a" "fc8dd4540e6a587e49e0f6b26e032e1681013442a44f6d30c8b9b68a2cba34b2", kill_on_drop: false }` [INFO] [stderr] Checking js-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/parser/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/runtime/mod.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::interpreter::{self, Interpreter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `runtime::Runtime` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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: `i` [INFO] [stdout] --> src/parser/mod.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initiation` is never read [INFO] [stdout] --> src/parser/mod.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [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 `condition` is never read [INFO] [stdout] --> src/parser/mod.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/parser/mod.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut i = 0; [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 pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter/mod.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 176 | true => { [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 184 | false => { [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 192 | _ => panic!("Expected a boolean expression"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signal` [INFO] [stdout] --> src/runtime/mod.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | let (value, signal) = interpreter.eval(ast); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_signal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Parser<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(tokens: &'a Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn parse(&mut self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn get_tokens(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn parse_scope(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn parse_return(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn parse_function(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn parse_function_call(&mut self, name: String) -> Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn parse_for_loop(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn parse_let(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | fn parse_log(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_if(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn parse_loop(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn parse_while(&mut self) -> Stmt { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | fn parse_expr(&mut self) -> Expr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/types/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 5 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | Assign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | LogicalOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | LogicalNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | TypeCheckEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | NotEquals, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | TypeNotEquals, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | GreaterThan, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | GreaterThanEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | LessThanEquals, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | Addition, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | Subtraction, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | Multiplication, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 32 | Division, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | Increment, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | Decrement, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | Semicolon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | BraceOpen, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | BraceClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | ParenOpen, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | ParenClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 42 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Comment(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | If, [INFO] [stdout] | ^^ [INFO] [stdout] 47 | ElseIf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 48 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | Log, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | Let, [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | ForLoop, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 55 | Loop, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | While [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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 variants are never constructed [INFO] [stdout] --> src/types/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 62 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | Addition(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | Subtraction(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 68 | Multiplication(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 69 | Division(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | Equals(Box, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | TypeCheckEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | NotEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | TypeNotEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 74 | GreaterThan(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 75 | GreaterThanEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | LessThan(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | LessThanEquals(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 78 | ControlFlow(Box, Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 79 | FunctionCall(String, Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 80 | LogicalAnd(Box, Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 81 | LogicalOr(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 82 | LogicalNot(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 83 | Assignment(String, Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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/types/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 89 | Let(String, Expr), [INFO] [stdout] | ^^^ [INFO] [stdout] 90 | Assignment(String, Expr), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 91 | ControlFlow(Box, Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | CodeBlock(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 93 | Log(Expr), [INFO] [stdout] | ^^^ [INFO] [stdout] 94 | Function(String, Vec, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 95 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 96 | FunctionCall(String, Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 97 | ForLoop(Box, Box, Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 98 | Expression(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 99 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | While(Box, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | Break [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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/types/mod.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 107 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 108 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 109 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 110 | FunctionDef(Vec, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 113 | None [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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 `Signal` is never used [INFO] [stdout] --> src/types/mod.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | pub enum Signal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interpreter` is never constructed [INFO] [stdout] --> src/interpreter/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Interpreter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/interpreter/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Interpreter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(scope: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn eval(&mut self, stmts: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn eval_code_block(&mut self, stmts: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn eval_let(&mut self, name: String, value: Expr) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn eval_let_function (&mut self, name: String, args: Vec, value: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn eval_function_call (&mut self, name: String, args: Vec) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn eval_assignment(&mut self, name: String, value: Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn eval_log(&mut self, expr: Expr) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn eval_if(&mut self, condition: Box, stmts: Box, else_stmt: Box) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn eval_loop(&mut self, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn eval_while(&mut self, condition: Box, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | fn eval_for_loop(&mut self, init: Box, condition: Box, increment: Box, stmts: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn eval_expr_with_signal (&mut self, expr: Expr) -> (Value, Signal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | fn eval_expr(&mut self, expr: Expr) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> Lexer<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new(code: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn is_valid_variable_char (&mut self, c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn read_identifier(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | fn read_float(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn read_string_literal(&mut self, delimiter: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn read_comment(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_rc`, `get`, `contains_key_local`, `assign`, and `define` are never used [INFO] [stdout] --> src/scope/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Scope { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(parent: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn with_rc(parent: Option>>) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get(&self, name: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn contains_key_local(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn assign (&mut self, name: String, value: Value) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn define(&mut self, name: String, value: Value) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Runtime` is never constructed [INFO] [stdout] --> src/runtime/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `repl`, `parse_ast`, and `execute` are never used [INFO] [stdout] --> src/runtime/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(code: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn repl (&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn parse_ast (&mut self, code: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn execute (&mut self) -> Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/lib.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let output = runtime.execute(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 88 | let expr_to_return = self.parse_expr(); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | Stmt::Return(Box::new(expr_to_return)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 209 | Box::new(initiation), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 210 | Box::new(condition), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 211 | Box::new(increment), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 212 | Box::new(Stmt::CodeBlock(code_block)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 312 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 317 | Stmt::Loop(Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:336:21 [INFO] [stdout] | [INFO] [stdout] 321 | let condition = match self.next_token() { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 329 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 336 | Stmt::While(Box::new(condition), Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:336:42 [INFO] [stdout] | [INFO] [stdout] 321 | let condition = match self.next_token() { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 329 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 336 | Stmt::While(Box::new(condition), Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FunctionCall` is never constructed [INFO] [stdout] --> src/types/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | FunctionCall(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: variant `Loop` is never constructed [INFO] [stdout] --> src/types/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 84 | Loop(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Return` is never constructed [INFO] [stdout] --> src/types/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `output` is never read [INFO] [stdout] --> src/runtime/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Runtime<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | output: Value, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `repl` is never used [INFO] [stdout] --> src/runtime/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Runtime<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn repl (&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 88 | let expr_to_return = self.parse_expr(); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 89 | Stmt::Return(Box::new(expr_to_return)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 209 | Box::new(initiation), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 210 | Box::new(condition), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 211 | Box::new(increment), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut initiation = Stmt::None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 174 | let mut condition = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 175 | let mut increment = Stmt::None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 212 | Box::new(Stmt::CodeBlock(code_block)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 312 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 317 | Stmt::Loop(Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:336:21 [INFO] [stdout] | [INFO] [stdout] 321 | let condition = match self.next_token() { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 329 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 336 | Stmt::While(Box::new(condition), Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `js-compiler` (lib) due to 9 previous errors; 23 warnings emitted [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/mod.rs:336:42 [INFO] [stdout] | [INFO] [stdout] 321 | let condition = match self.next_token() { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 329 | let code_block = match self.next_token() { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 336 | Stmt::While(Box::new(condition), Box::new(Stmt::CodeBlock(code_block))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 8 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `js-compiler` (lib test) due to 9 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fc8dd4540e6a587e49e0f6b26e032e1681013442a44f6d30c8b9b68a2cba34b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc8dd4540e6a587e49e0f6b26e032e1681013442a44f6d30c8b9b68a2cba34b2", kill_on_drop: false }` [INFO] [stdout] fc8dd4540e6a587e49e0f6b26e032e1681013442a44f6d30c8b9b68a2cba34b2