[INFO] cloning repository https://github.com/Jordise2002/monkey-interpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jordise2002/monkey-interpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJordise2002%2Fmonkey-interpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJordise2002%2Fmonkey-interpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5827d635cfeb06d78f460ef7d4898b090b55d2fb [INFO] checking Jordise2002/monkey-interpreter/5827d635cfeb06d78f460ef7d4898b090b55d2fb against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJordise2002%2Fmonkey-interpreter" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jordise2002/monkey-interpreter on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jordise2002/monkey-interpreter [INFO] finished tweaking git repo https://github.com/Jordise2002/monkey-interpreter [INFO] tweaked toml for git repo https://github.com/Jordise2002/monkey-interpreter written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Jordise2002/monkey-interpreter 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ef3845236f6ed7ae52c735e14a28d469a1c775b2a950e320e459aeeb05076b1 [INFO] running `Command { std: "docker" "start" "-a" "5ef3845236f6ed7ae52c735e14a28d469a1c775b2a950e320e459aeeb05076b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ef3845236f6ed7ae52c735e14a28d469a1c775b2a950e320e459aeeb05076b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ef3845236f6ed7ae52c735e14a28d469a1c775b2a950e320e459aeeb05076b1", kill_on_drop: false }` [INFO] [stdout] 5ef3845236f6ed7ae52c735e14a28d469a1c775b2a950e320e459aeeb05076b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09287bb1ea5ab0806fe257322b028299755daa439c0cc6e0521f056224da7b2a [INFO] running `Command { std: "docker" "start" "-a" "09287bb1ea5ab0806fe257322b028299755daa439c0cc6e0521f056224da7b2a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling rustversion v1.0.13 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling syn v2.0.23 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling strum_macros v0.25.1 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking monkey-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BuiltInFn` [INFO] [stdout] --> src/builtins.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::object::{BuiltInFn, Object}; [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/compiler.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::symbol_table::{self, SymbolScope, SymbolTable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::main` [INFO] [stdout] --> src/vm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::main; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompiledFunction` [INFO] [stdout] --> src/vm.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::object::Object::{BooleanObject, CompiledFunction, IntegerObject}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::linux::raw::stat` [INFO] [stdout] --> src/vm.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::off_t` [INFO] [stdout] --> src/vm.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/vm.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BuiltInFn` [INFO] [stdout] --> src/builtins.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::object::{BuiltInFn, Object}; [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/compiler.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::symbol_table::{self, SymbolScope, SymbolTable}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::main` [INFO] [stdout] --> src/vm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::main; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::off_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/vm.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompiledFunction` [INFO] [stdout] --> src/vm.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::object::Object::{BooleanObject, CompiledFunction, IntegerObject}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::linux::raw::stat` [INFO] [stdout] --> src/vm.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::off_t` [INFO] [stdout] --> src/vm.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SymbolScope` [INFO] [stdout] --> src/test_symbol_table.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::symbol_table::{Symbol, SymbolScope, SymbolTable}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/vm.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::off_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/vm.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/code.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/code.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 115 | Opcode::OpConstant => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 118 | Opcode::OpAdd => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 121 | Opcode::OpPop => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | Opcode::OpDiv => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [INFO] [stdout] | ^ ...and 25 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/compiler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 73 | Node::Program(prog) => [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 80 | Node::StatementBlock(stmt_block) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | Node::Statement(stmt) => [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 90 | Node::Expression(expr) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 93 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/compiler.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 147 | Statement::LetStatement(id, expr) => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 161 | Statement::ExpressionStatement(expr) => [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 166 | Statement::ReturnStatement(expr) => [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 171 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ip` is never read [INFO] [stdout] --> src/vm.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | let mut ip = 0; [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: unused variable: `free_vars` [INFO] [stdout] --> src/vm.rs:321:25 [INFO] [stdout] | [INFO] [stdout] 321 | let free_vars = cursor.read_u8().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_free_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_instructions` is never used [INFO] [stdout] --> src/code.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn join_instructions(instructions: Vec) -> Instructions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/compiler.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Compiler { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 33 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOBAL_SIZE` is never used [INFO] [stdout] --> src/vm.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const GLOBAL_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_stack_top` is never used [INFO] [stdout] --> src/vm.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Vm { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_stack_top(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/code.rs:74:35 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(Clone, Debug, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Opcode` [INFO] [stdout] 75 | pub enum Opcode { [INFO] [stdout] | ------ `Opcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/code.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/code.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 115 | Opcode::OpConstant => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 118 | Opcode::OpAdd => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 121 | Opcode::OpPop => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | Opcode::OpDiv => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [INFO] [stdout] | ^ ...and 25 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/compiler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 73 | Node::Program(prog) => [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 80 | Node::StatementBlock(stmt_block) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | Node::Statement(stmt) => [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 90 | Node::Expression(expr) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 93 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/compiler.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/compiler.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 147 | Statement::LetStatement(id, expr) => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 161 | Statement::ExpressionStatement(expr) => [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 166 | Statement::ReturnStatement(expr) => [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 171 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ip` is never read [INFO] [stdout] --> src/vm.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | let mut ip = 0; [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: unused variable: `free_vars` [INFO] [stdout] --> src/vm.rs:321:25 [INFO] [stdout] | [INFO] [stdout] 321 | let free_vars = cursor.read_u8().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_free_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BooleanInput` is never constructed [INFO] [stdout] --> src/test_parser.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 278 | enum ValueType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 281 | BooleanInput(bool) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOBAL_SIZE` is never used [INFO] [stdout] --> src/vm.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const GLOBAL_SIZE: usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_stack_top` is never used [INFO] [stdout] --> src/vm.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Vm { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_stack_top(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/code.rs:74:35 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(Clone, Debug, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Opcode` [INFO] [stdout] 75 | pub enum Opcode { [INFO] [stdout] | ------ `Opcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.21s [INFO] running `Command { std: "docker" "inspect" "09287bb1ea5ab0806fe257322b028299755daa439c0cc6e0521f056224da7b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09287bb1ea5ab0806fe257322b028299755daa439c0cc6e0521f056224da7b2a", kill_on_drop: false }` [INFO] [stdout] 09287bb1ea5ab0806fe257322b028299755daa439c0cc6e0521f056224da7b2a