[INFO] cloning repository https://github.com/ramyak-mehra/svm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ramyak-mehra/svm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framyak-mehra%2Fsvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framyak-mehra%2Fsvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd526f42eed878d1d5383c325c4e196f9635c9ff [INFO] checking ramyak-mehra/svm against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framyak-mehra%2Fsvm" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ramyak-mehra/svm on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ramyak-mehra/svm [INFO] finished tweaking git repo https://github.com/ramyak-mehra/svm [INFO] tweaked toml for git repo https://github.com/ramyak-mehra/svm written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ramyak-mehra/svm 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fde0c633ae931602e7a0aec6d1b22bdb4365a505fc91ed03370aa5920e645621 [INFO] running `Command { std: "docker" "start" "-a" "fde0c633ae931602e7a0aec6d1b22bdb4365a505fc91ed03370aa5920e645621", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fde0c633ae931602e7a0aec6d1b22bdb4365a505fc91ed03370aa5920e645621", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fde0c633ae931602e7a0aec6d1b22bdb4365a505fc91ed03370aa5920e645621", kill_on_drop: false }` [INFO] [stdout] fde0c633ae931602e7a0aec6d1b22bdb4365a505fc91ed03370aa5920e645621 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94c4cd4745418ee25d6f1a7603aed9cf3f0a177d8e5bf815d875854311aa8970 [INFO] running `Command { std: "docker" "start" "-a" "94c4cd4745418ee25d6f1a7603aed9cf3f0a177d8e5bf815d875854311aa8970", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.75 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling instruction v0.1.0 (/opt/rustwide/workdir/instruction) [INFO] [stdout] warning: the item `proc_macro` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro::{self, TokenStream}; [INFO] [stdout] | ^^^^ the item `proc_macro` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use syn; [INFO] [stdout] | ^^^ the item `syn` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking svm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::Token` [INFO] [stdout] --> src/token/operand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bool`, `float`, `int`, `str`, `token::Operand` [INFO] [stdout] --> src/token/operand.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | use crate::{bool, float, int, str, token::Operand}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Token`, `operand::Operand` [INFO] [stdout] --> src/token/mod.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | use super::{operand::Operand, Token}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `int` [INFO] [stdout] --> src/vm.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | int, stack, tbool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/vm.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{collections::VecDeque, default}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/vm.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data`, `int`, `stack`, `tbool`, `tint`, `token::instruction::*`, `tstr` [INFO] [stdout] --> src/vm.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | use crate::{data, int, stack, tbool, tint, token::instruction::*, tstr}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^ ^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Vm` [INFO] [stdout] --> src/vm.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | use super::Vm; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Token` [INFO] [stdout] --> src/token/operand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `int` [INFO] [stdout] --> src/vm.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | int, stack, tbool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `default` [INFO] [stdout] --> src/vm.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{collections::VecDeque, default}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data`, `int` [INFO] [stdout] --> src/vm.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | use crate::{data, int, stack, tbool, tint, token::instruction::*, tstr}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:254:18 [INFO] [stdout] | [INFO] [stdout] 254 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variables` and `return_address` are never read [INFO] [stdout] --> src/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Frame { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | variables: HashMap, // TODO(optimization): Use usize for key [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | return_address: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `return_address`, `get`, `set`, and `values` are never used [INFO] [stdout] --> src/frame.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Frame { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(address: usize) -> Frame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn return_address(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get(&self, var: String) -> Operand { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set(&mut self, var: String, val: Operand) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn values(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Vm { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/vm.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Vm { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(program: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn current_frame_mut(&mut self) -> &mut Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn current_frame(&self) -> &Frame { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn execute(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn execute_binary(i: Instruction, d1: Operand, d2: Operand) -> Operand { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nextToken` should have a snake case name [INFO] [stdout] --> src/vm.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:254:18 [INFO] [stdout] | [INFO] [stdout] 254 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nextToken` should have a snake case name [INFO] [stdout] --> src/vm.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.26s [INFO] running `Command { std: "docker" "inspect" "94c4cd4745418ee25d6f1a7603aed9cf3f0a177d8e5bf815d875854311aa8970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c4cd4745418ee25d6f1a7603aed9cf3f0a177d8e5bf815d875854311aa8970", kill_on_drop: false }` [INFO] [stdout] 94c4cd4745418ee25d6f1a7603aed9cf3f0a177d8e5bf815d875854311aa8970 [INFO] checking ramyak-mehra/svm against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framyak-mehra%2Fsvm" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ramyak-mehra/svm on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ramyak-mehra/svm [INFO] finished tweaking git repo https://github.com/ramyak-mehra/svm [INFO] tweaked toml for git repo https://github.com/ramyak-mehra/svm written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ramyak-mehra/svm 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2273cb81dabfe68cb5edfc35a89ada42a11c0efadaaa240f0db3aeb12dc3828b [INFO] running `Command { std: "docker" "start" "-a" "2273cb81dabfe68cb5edfc35a89ada42a11c0efadaaa240f0db3aeb12dc3828b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2273cb81dabfe68cb5edfc35a89ada42a11c0efadaaa240f0db3aeb12dc3828b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2273cb81dabfe68cb5edfc35a89ada42a11c0efadaaa240f0db3aeb12dc3828b", kill_on_drop: false }` [INFO] [stdout] 2273cb81dabfe68cb5edfc35a89ada42a11c0efadaaa240f0db3aeb12dc3828b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a72e401246c10b87de971f5d631c59185c63991e24823fb7bdff42ef99c4ce18 [INFO] running `Command { std: "docker" "start" "-a" "a72e401246c10b87de971f5d631c59185c63991e24823fb7bdff42ef99c4ce18", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.75 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling instruction v0.1.0 (/tmp/fixit/instruction) [INFO] [stdout] warning: the item `proc_macro` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro::{self, TokenStream}; [INFO] [stdout] | ^^^^ the item `proc_macro` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use syn; [INFO] [stdout] | ^^^ the item `syn` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking svm v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/vm.rs (3 fixes) [INFO] [stderr] Fixed src/token/operand.rs (1 fix) [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nextToken` should have a snake case name [INFO] [stdout] --> src/vm.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/token/mod.rs (1 fix) [INFO] [stderr] Fixed src/token/operand.rs (1 fix) [INFO] [stderr] Fixed src/vm.rs (3 fixes) [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variables` and `return_address` are never read [INFO] [stdout] --> src/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Frame { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | variables: HashMap, // TODO(optimization): Use usize for key [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | return_address: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `return_address`, `get`, `set`, and `values` are never used [INFO] [stdout] --> src/frame.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Frame { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(address: usize) -> Frame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn return_address(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get(&self, var: String) -> Operand { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set(&mut self, var: String, val: Operand) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn values(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Vm { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/vm.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Vm { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(program: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn current_frame_mut(&mut self) -> &mut Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn current_frame(&self) -> &Frame { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn execute(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn execute_binary(i: Instruction, d1: Operand, d2: Operand) -> Operand { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nextToken` should have a snake case name [INFO] [stdout] --> src/vm.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.67s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stdout] warning: the item `proc_macro` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use proc_macro::{self, TokenStream}; [INFO] [stdout] | ^^^^ the item `proc_macro` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking svm v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the item `syn` is imported redundantly [INFO] [stdout] --> instruction/src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use syn; [INFO] [stdout] | ^^^ the item `syn` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bool` in this scope [INFO] [stdout] --> src/token/operand.rs:294:21 [INFO] [stdout] | [INFO] [stdout] 294 | let mut a = bool!(true); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::bool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bool` in this scope [INFO] [stdout] --> src/token/operand.rs:295:14 [INFO] [stdout] | [INFO] [stdout] 295 | a += bool!(false); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::bool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:590:41 [INFO] [stdout] | [INFO] [stdout] 590 | let mut vm = Vm::new(vec![PUSH, tint!(3), WRITE, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:584:30 [INFO] [stdout] | [INFO] [stdout] 584 | assert_eq!(vm.stack, stack![tint!(6)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:578:13 [INFO] [stdout] | [INFO] [stdout] 578 | tstr!(a.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:575:13 [INFO] [stdout] | [INFO] [stdout] 575 | tstr!(b.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | tint!(21), // 17 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:570:13 [INFO] [stdout] | [INFO] [stdout] 570 | tstr!(b.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:568:13 [INFO] [stdout] | [INFO] [stdout] 568 | tstr!(a.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:566:13 [INFO] [stdout] | [INFO] [stdout] 566 | tstr!(a.clone()), // store a [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:564:13 [INFO] [stdout] | [INFO] [stdout] 564 | tstr!(b.clone()), // store b [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | tint!(7), // Call the func [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:559:13 [INFO] [stdout] | [INFO] [stdout] 559 | tint!(4), // Second argument [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:557:13 [INFO] [stdout] | [INFO] [stdout] 557 | tint!(6), // First argument [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:539:30 [INFO] [stdout] | [INFO] [stdout] 539 | assert_eq!(vm.stack, stack![tint!(6)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:532:13 [INFO] [stdout] | [INFO] [stdout] 532 | tint!(2), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | tint!(5), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | tint!(3), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:520:30 [INFO] [stdout] | [INFO] [stdout] 520 | assert_eq!(vm.stack, stack![tint!(7)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:516:63 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:516:41 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:507:41 [INFO] [stdout] | [INFO] [stdout] 507 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, RET]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:493:13 [INFO] [stdout] | [INFO] [stdout] 493 | tstr!(c.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:491:13 [INFO] [stdout] | [INFO] [stdout] 491 | tstr!(a.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 488 | tint!(25), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | tstr!(c.clone()), // Set c to the stack based head c = b [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | tstr!(b.clone()), // Stack contains b [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | tint!(21), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | tstr!(b.clone()), // Stack contains b [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | tstr!(a.clone()), // Stack contains a [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | tstr!(b.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:471:13 [INFO] [stdout] | [INFO] [stdout] 471 | tint!(4), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | tstr!(a.clone()), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | tint!(6), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:445:42 [INFO] [stdout] | [INFO] [stdout] 445 | let mut vm = Vm::new(vec![STORE, tint!(0), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:425:30 [INFO] [stdout] | [INFO] [stdout] 425 | assert_eq!(vm.stack, stack![tint!(42)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `variables` and `return_address` are never read [INFO] [stdout] --> src/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Frame { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | variables: HashMap, // TODO(optimization): Use usize for key [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | return_address: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | tstr!(String::from("a")), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `return_address`, `get`, `set`, and `values` are never used [INFO] [stdout] --> src/frame.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Frame { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(address: usize) -> Frame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn return_address(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get(&self, var: String) -> Operand { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set(&mut self, var: String, val: Operand) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn values(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Vm { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/vm.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Vm { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(program: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn current_frame_mut(&mut self) -> &mut Frame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn current_frame(&self) -> &Frame { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn execute(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn execute_binary(i: Instruction, d1: Operand, d2: Operand) -> Operand { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:416:13 [INFO] [stdout] | [INFO] [stdout] 416 | tstr!(String::from("a")), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nextToken` should have a snake case name [INFO] [stdout] --> src/vm.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | fn nextToken(&mut self) -> Token { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | tint!(42), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:402:59 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:402:41 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tstr` in this scope [INFO] [stdout] --> src/vm.rs:395:41 [INFO] [stdout] | [INFO] [stdout] 395 | let mut vm = Vm::new(vec![LOAD, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | tint!(4), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | tbool!(false), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | tint!(5), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | tbool!(true), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:368:61 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:368:40 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:363:30 [INFO] [stdout] | [INFO] [stdout] 363 | assert_eq!(vm.stack, stack![tbool!(false)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:359:57 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:359:41 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:357:30 [INFO] [stdout] | [INFO] [stdout] 357 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:353:57 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:353:41 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:344:57 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:344:41 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:338:57 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:338:41 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:333:30 [INFO] [stdout] | [INFO] [stdout] 333 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:329:57 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:329:41 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:327:30 [INFO] [stdout] | [INFO] [stdout] 327 | assert_eq!(vm.stack, stack![tbool!(false)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:323:57 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:323:41 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:318:30 [INFO] [stdout] | [INFO] [stdout] 318 | assert_eq!(vm.stack, stack![tint!(1), tint!(1)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | let mut vm = Vm::new(vec![PUSH, tint!(1), DUP, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:299:41 [INFO] [stdout] | [INFO] [stdout] 299 | let mut vm = Vm::new(vec![PUSH, tint!(1), POP, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:294:30 [INFO] [stdout] | [INFO] [stdout] 294 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:290:61 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:290:41 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:285:30 [INFO] [stdout] | [INFO] [stdout] 285 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:281:61 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:281:41 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:269:30 [INFO] [stdout] | [INFO] [stdout] 269 | assert_eq!(vm.stack, stack![tbool!(true)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:265:41 [INFO] [stdout] | [INFO] [stdout] 265 | let mut vm = Vm::new(vec![PUSH, tbool!(false), NOT, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:263:30 [INFO] [stdout] | [INFO] [stdout] 263 | assert_eq!(vm.stack, stack![tbool!(false)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tbool` in this scope [INFO] [stdout] --> src/vm.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | let mut vm = Vm::new(vec![PUSH, tbool!(true), NOT, HALT]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tbool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:254:30 [INFO] [stdout] | [INFO] [stdout] 254 | assert_eq!(vm.stack, stack![tint!(1)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | tint!(7), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | tint!(3), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | tint!(2), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | tint!(1), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:224:30 [INFO] [stdout] | [INFO] [stdout] 224 | assert_eq!(vm.stack, stack![tint!(10)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = Operand::Int(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:220:58 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:220:41 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:216:30 [INFO] [stdout] | [INFO] [stdout] 216 | assert_eq!(vm.stack, stack![tint!(120)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:212:58 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:212:41 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:208:30 [INFO] [stdout] | [INFO] [stdout] 208 | assert_eq!(vm.stack, stack![tint!(-2)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:204:41 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:199:30 [INFO] [stdout] | [INFO] [stdout] 199 | assert_eq!(vm.stack, stack![tint!(22)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:195:58 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:195:41 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `stack` in this scope [INFO] [stdout] --> src/vm.rs:191:30 [INFO] [stdout] | [INFO] [stdout] 191 | assert_eq!(vm.stack, stack![tint!(12), tint!(10)]); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:186:58 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `tint` in this scope [INFO] [stdout] --> src/vm.rs:186:41 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 184 + use crate::tint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `str` in this scope [INFO] [stdout] --> src/token/operand.rs:288:23 [INFO] [stdout] | [INFO] [stdout] 288 | assert_eq!(a, str!(String::from("Hello world"))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::str; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `str` in this scope [INFO] [stdout] --> src/token/operand.rs:287:14 [INFO] [stdout] | [INFO] [stdout] 287 | a += str!(String::from("world")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::str; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `str` in this scope [INFO] [stdout] --> src/token/operand.rs:286:21 [INFO] [stdout] | [INFO] [stdout] 286 | let mut a = str!(String::from("Hello ")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::str; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `float` in this scope [INFO] [stdout] --> src/token/operand.rs:284:23 [INFO] [stdout] | [INFO] [stdout] 284 | assert_eq!(a, float!(2.7)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::float; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `float` in this scope [INFO] [stdout] --> src/token/operand.rs:283:14 [INFO] [stdout] | [INFO] [stdout] 283 | a += float!(1.5); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::float; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `float` in this scope [INFO] [stdout] --> src/token/operand.rs:282:21 [INFO] [stdout] | [INFO] [stdout] 282 | let mut a = float!(1.2); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::float; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `int` in this scope [INFO] [stdout] --> src/token/operand.rs:280:23 [INFO] [stdout] | [INFO] [stdout] 280 | assert_eq!(a, int!(20)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `int` in this scope [INFO] [stdout] --> src/token/operand.rs:279:14 [INFO] [stdout] | [INFO] [stdout] 279 | a += int!(10); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `int` in this scope [INFO] [stdout] --> src/token/operand.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | let mut a = int!(10); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [INFO] [stdout] help: consider importing this macro through its public re-export [INFO] [stdout] | [INFO] [stdout] 276 + use crate::int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/token/mod.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let t = Token::Instruction(super::instruction::Instruction::Add); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Operand` in this scope [INFO] [stdout] --> src/token/mod.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | let o: Result = t.try_into(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/token/mod.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let t = Token::Data(Operand::Null); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/token/mod.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let t = Token::Data(Operand::Null); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Operand` in this scope [INFO] [stdout] --> src/token/mod.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | let o: Result = t.try_into(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/token/mod.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let t = Token::Instruction(super::instruction::Instruction::Add); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/token/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let t = Token::Data(Operand::Null); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/token/mod.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | let t = Token::Data(Operand::Null); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/token/mod.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let t = Token::Data(Operand::Bool(true)); [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> src/token/mod.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let t = Token::Data(Operand::Bool(true)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 46 + use crate::token::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:186:22 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:186:35 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:186:52 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:186:69 [INFO] [stdout] | [INFO] [stdout] 186 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:195:52 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ADD` in this scope [INFO] [stdout] --> src/vm.rs:195:69 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ADD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:195:74 [INFO] [stdout] | [INFO] [stdout] 195 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), ADD, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:204:35 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:204:52 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SUB` in this scope [INFO] [stdout] --> src/vm.rs:204:69 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::SUB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:204:74 [INFO] [stdout] | [INFO] [stdout] 204 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), SUB, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:212:22 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:212:35 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:212:52 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MUL` in this scope [INFO] [stdout] --> src/vm.rs:212:69 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::MUL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:212:74 [INFO] [stdout] | [INFO] [stdout] 212 | let mut vm = Vm::new(vec![PUSH, tint!(10), PUSH, tint!(12), MUL, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:220:22 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:220:52 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIV` in this scope [INFO] [stdout] --> src/vm.rs:220:68 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::DIV; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:220:73 [INFO] [stdout] | [INFO] [stdout] 220 | let mut vm = Vm::new(vec![PUSH, tint!(20), PUSH, tint!(2), DIV, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:229:22 [INFO] [stdout] | [INFO] [stdout] 229 | let mut vm = Vm::new(vec![SUB, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SUB` in this scope [INFO] [stdout] --> src/vm.rs:229:35 [INFO] [stdout] | [INFO] [stdout] 203 | fn sub() { [INFO] [stdout] | -------- similarly named function `sub` defined here [INFO] [stdout] ... [INFO] [stdout] 229 | let mut vm = Vm::new(vec![SUB, HALT]); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 229 | let mut vm = Vm::new(vec![sub, HALT]); [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::SUB; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:229:40 [INFO] [stdout] | [INFO] [stdout] 229 | let mut vm = Vm::new(vec![SUB, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MUL` in this scope [INFO] [stdout] --> src/vm.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 211 | fn mul() { [INFO] [stdout] | -------- similarly named function `mul` defined here [INFO] [stdout] ... [INFO] [stdout] 244 | MUL, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 244 | mul, [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::MUL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ADD` in this scope [INFO] [stdout] --> src/vm.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 194 | fn add() { [INFO] [stdout] | -------- similarly named function `add` defined here [INFO] [stdout] ... [INFO] [stdout] 245 | ADD, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 245 | add, [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ADD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIV` in this scope [INFO] [stdout] --> src/vm.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | DIV, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::DIV; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:259:22 [INFO] [stdout] | [INFO] [stdout] 259 | let mut vm = Vm::new(vec![PUSH, tbool!(true), NOT, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:259:35 [INFO] [stdout] | [INFO] [stdout] 259 | let mut vm = Vm::new(vec![PUSH, tbool!(true), NOT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NOT` in this scope [INFO] [stdout] --> src/vm.rs:259:55 [INFO] [stdout] | [INFO] [stdout] 259 | let mut vm = Vm::new(vec![PUSH, tbool!(true), NOT, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::NOT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:259:60 [INFO] [stdout] | [INFO] [stdout] 259 | let mut vm = Vm::new(vec![PUSH, tbool!(true), NOT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 265 | let mut vm = Vm::new(vec![PUSH, tbool!(false), NOT, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:265:35 [INFO] [stdout] | [INFO] [stdout] 265 | let mut vm = Vm::new(vec![PUSH, tbool!(false), NOT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NOT` in this scope [INFO] [stdout] --> src/vm.rs:265:56 [INFO] [stdout] | [INFO] [stdout] 265 | let mut vm = Vm::new(vec![PUSH, tbool!(false), NOT, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::NOT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:265:61 [INFO] [stdout] | [INFO] [stdout] 265 | let mut vm = Vm::new(vec![PUSH, tbool!(false), NOT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:275:22 [INFO] [stdout] | [INFO] [stdout] 275 | let mut vm = Vm::new(vec![NOT, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NOT` in this scope [INFO] [stdout] --> src/vm.rs:275:35 [INFO] [stdout] | [INFO] [stdout] 275 | let mut vm = Vm::new(vec![NOT, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::NOT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:275:40 [INFO] [stdout] | [INFO] [stdout] 275 | let mut vm = Vm::new(vec![NOT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:281:22 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:281:35 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:281:55 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AND` in this scope [INFO] [stdout] --> src/vm.rs:281:75 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::AND; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:281:80 [INFO] [stdout] | [INFO] [stdout] 281 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(true), AND, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:290:35 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:290:55 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OR` in this scope [INFO] [stdout] --> src/vm.rs:290:76 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/core/src/result.rs:506:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] | [INFO] [stdout] help: a tuple variant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), Ok, HALT]); [INFO] [stdout] | ~~ [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::OR; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:290:80 [INFO] [stdout] | [INFO] [stdout] 290 | let mut vm = Vm::new(vec![PUSH, tbool!(true), PUSH, tbool!(false), OR, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:299:22 [INFO] [stdout] | [INFO] [stdout] 299 | let mut vm = Vm::new(vec![PUSH, tint!(1), POP, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:299:35 [INFO] [stdout] | [INFO] [stdout] 299 | let mut vm = Vm::new(vec![PUSH, tint!(1), POP, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POP` in this scope [INFO] [stdout] --> src/vm.rs:299:51 [INFO] [stdout] | [INFO] [stdout] 299 | let mut vm = Vm::new(vec![PUSH, tint!(1), POP, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::POP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:299:56 [INFO] [stdout] | [INFO] [stdout] 299 | let mut vm = Vm::new(vec![PUSH, tint!(1), POP, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:308:22 [INFO] [stdout] | [INFO] [stdout] 308 | let mut vm = Vm::new(vec![POP, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POP` in this scope [INFO] [stdout] --> src/vm.rs:308:35 [INFO] [stdout] | [INFO] [stdout] 308 | let mut vm = Vm::new(vec![POP, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::POP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:308:40 [INFO] [stdout] | [INFO] [stdout] 308 | let mut vm = Vm::new(vec![POP, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:314:22 [INFO] [stdout] | [INFO] [stdout] 314 | let mut vm = Vm::new(vec![PUSH, tint!(1), DUP, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:314:35 [INFO] [stdout] | [INFO] [stdout] 314 | let mut vm = Vm::new(vec![PUSH, tint!(1), DUP, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DUP` in this scope [INFO] [stdout] --> src/vm.rs:314:51 [INFO] [stdout] | [INFO] [stdout] 314 | let mut vm = Vm::new(vec![PUSH, tint!(1), DUP, HALT]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::DUP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:314:56 [INFO] [stdout] | [INFO] [stdout] 314 | let mut vm = Vm::new(vec![PUSH, tint!(1), DUP, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:323:22 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:323:35 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:323:51 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGT` in this scope [INFO] [stdout] --> src/vm.rs:323:67 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:323:73 [INFO] [stdout] | [INFO] [stdout] 323 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(2), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:329:22 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:329:35 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:329:51 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGT` in this scope [INFO] [stdout] --> src/vm.rs:329:67 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:329:73 [INFO] [stdout] | [INFO] [stdout] 329 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGT, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:338:22 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:338:35 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:338:51 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGE` in this scope [INFO] [stdout] --> src/vm.rs:338:67 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:338:73 [INFO] [stdout] | [INFO] [stdout] 338 | let mut vm = Vm::new(vec![PUSH, tint!(3), PUSH, tint!(2), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:344:22 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:344:35 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:344:51 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGE` in this scope [INFO] [stdout] --> src/vm.rs:344:67 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:344:73 [INFO] [stdout] | [INFO] [stdout] 344 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISGE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:353:22 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:353:35 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:353:51 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISEQ` in this scope [INFO] [stdout] --> src/vm.rs:353:67 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISEQ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:353:73 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vm = Vm::new(vec![PUSH, tint!(1), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:359:22 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:359:35 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:359:51 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISEQ` in this scope [INFO] [stdout] --> src/vm.rs:359:67 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISEQ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:359:73 [INFO] [stdout] | [INFO] [stdout] 359 | let mut vm = Vm::new(vec![PUSH, tint!(2), PUSH, tint!(1), ISEQ, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:368:22 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JMP` in this scope [INFO] [stdout] --> src/vm.rs:368:35 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JMP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:368:50 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JMP` in this scope [INFO] [stdout] --> src/vm.rs:368:56 [INFO] [stdout] | [INFO] [stdout] 368 | let mut vm = Vm::new(vec![JMP, tint!(3), HALT, JMP, tint!(2)]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JMP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:377:13 [INFO] [stdout] | [INFO] [stdout] 377 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JIF` in this scope [INFO] [stdout] --> src/vm.rs:379:13 [INFO] [stdout] | [INFO] [stdout] 379 | JIF, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JIF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POP` in this scope [INFO] [stdout] --> src/vm.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | POP, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::POP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JIF` in this scope [INFO] [stdout] --> src/vm.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | JIF, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JIF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:395:22 [INFO] [stdout] | [INFO] [stdout] 395 | let mut vm = Vm::new(vec![LOAD, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:395:35 [INFO] [stdout] | [INFO] [stdout] 395 | let mut vm = Vm::new(vec![LOAD, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:395:67 [INFO] [stdout] | [INFO] [stdout] 395 | let mut vm = Vm::new(vec![LOAD, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:402:22 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:402:35 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:402:52 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:402:85 [INFO] [stdout] | [INFO] [stdout] 402 | let mut vm = Vm::new(vec![PUSH, tint!(42), STORE, tstr!(String::from("a")), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:412:22 [INFO] [stdout] | [INFO] [stdout] 412 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | STORE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:419:13 [INFO] [stdout] | [INFO] [stdout] 419 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:431:22 [INFO] [stdout] | [INFO] [stdout] 431 | let mut vm = Vm::new(vec![LOAD]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:431:35 [INFO] [stdout] | [INFO] [stdout] 431 | let mut vm = Vm::new(vec![LOAD]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:438:22 [INFO] [stdout] | [INFO] [stdout] 438 | let mut vm = Vm::new(vec![STORE]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:438:35 [INFO] [stdout] | [INFO] [stdout] 438 | let mut vm = Vm::new(vec![STORE]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:445:22 [INFO] [stdout] | [INFO] [stdout] 445 | let mut vm = Vm::new(vec![STORE, tint!(0), HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:445:35 [INFO] [stdout] | [INFO] [stdout] 445 | let mut vm = Vm::new(vec![STORE, tint!(0), HALT]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:445:52 [INFO] [stdout] | [INFO] [stdout] 445 | let mut vm = Vm::new(vec![STORE, tint!(0), HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:463:22 [INFO] [stdout] | [INFO] [stdout] 463 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:465:13 [INFO] [stdout] | [INFO] [stdout] 465 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | STORE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:472:13 [INFO] [stdout] | [INFO] [stdout] 472 | STORE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:477:13 [INFO] [stdout] | [INFO] [stdout] 477 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGT` in this scope [INFO] [stdout] --> src/vm.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | ISGT, // Stack contains a > b [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JIF` in this scope [INFO] [stdout] --> src/vm.rs:480:13 [INFO] [stdout] | [INFO] [stdout] 480 | JIF, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JIF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:483:13 [INFO] [stdout] | [INFO] [stdout] 483 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:485:13 [INFO] [stdout] | [INFO] [stdout] 485 | STORE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JMP` in this scope [INFO] [stdout] --> src/vm.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | JMP, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JMP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:492:13 [INFO] [stdout] | [INFO] [stdout] 492 | STORE, // Set c to the stack head meaning c = a [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:495:13 [INFO] [stdout] | [INFO] [stdout] 495 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:507:22 [INFO] [stdout] | [INFO] [stdout] 507 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, RET]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CALL` in this scope [INFO] [stdout] --> src/vm.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, RET]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::CALL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:507:51 [INFO] [stdout] | [INFO] [stdout] 507 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, RET]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RET` in this scope [INFO] [stdout] --> src/vm.rs:507:57 [INFO] [stdout] | [INFO] [stdout] 507 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, RET]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::RET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:516:22 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CALL` in this scope [INFO] [stdout] --> src/vm.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::CALL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:516:51 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:516:57 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RET` in this scope [INFO] [stdout] --> src/vm.rs:516:73 [INFO] [stdout] | [INFO] [stdout] 516 | let mut vm = Vm::new(vec![CALL, tint!(3), HALT, PUSH, tint!(7), RET]); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::RET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:525:22 [INFO] [stdout] | [INFO] [stdout] 525 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CALL` in this scope [INFO] [stdout] --> src/vm.rs:528:13 [INFO] [stdout] | [INFO] [stdout] 528 | CALL, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::CALL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MUL` in this scope [INFO] [stdout] --> src/vm.rs:533:13 [INFO] [stdout] | [INFO] [stdout] 211 | fn mul() { [INFO] [stdout] | -------- similarly named function `mul` defined here [INFO] [stdout] ... [INFO] [stdout] 533 | MUL, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 533 | mul, [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::MUL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RET` in this scope [INFO] [stdout] --> src/vm.rs:534:13 [INFO] [stdout] | [INFO] [stdout] 534 | RET, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::RET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:555:22 [INFO] [stdout] | [INFO] [stdout] 555 | let mut vm = Vm::new(vec![ [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:556:13 [INFO] [stdout] | [INFO] [stdout] 556 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | PUSH, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CALL` in this scope [INFO] [stdout] --> src/vm.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | CALL, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::CALL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:562:13 [INFO] [stdout] | [INFO] [stdout] 562 | HALT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:563:13 [INFO] [stdout] | [INFO] [stdout] 563 | STORE, // 7th instruction [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STORE` in this scope [INFO] [stdout] --> src/vm.rs:565:13 [INFO] [stdout] | [INFO] [stdout] 565 | STORE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::STORE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:567:13 [INFO] [stdout] | [INFO] [stdout] 567 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:569:13 [INFO] [stdout] | [INFO] [stdout] 569 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ISGE` in this scope [INFO] [stdout] --> src/vm.rs:571:13 [INFO] [stdout] | [INFO] [stdout] 571 | ISGE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::ISGE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JIF` in this scope [INFO] [stdout] --> src/vm.rs:572:13 [INFO] [stdout] | [INFO] [stdout] 572 | JIF, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::JIF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:574:13 [INFO] [stdout] | [INFO] [stdout] 574 | LOAD, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RET` in this scope [INFO] [stdout] --> src/vm.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | RET, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::RET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LOAD` in this scope [INFO] [stdout] --> src/vm.rs:577:13 [INFO] [stdout] | [INFO] [stdout] 577 | LOAD, //21 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::LOAD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RET` in this scope [INFO] [stdout] --> src/vm.rs:579:13 [INFO] [stdout] | [INFO] [stdout] 579 | RET, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::RET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vm` [INFO] [stdout] --> src/vm.rs:590:22 [INFO] [stdout] | [INFO] [stdout] 590 | let mut vm = Vm::new(vec![PUSH, tint!(3), WRITE, HALT]); [INFO] [stdout] | ^^ use of undeclared type `Vm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::Vm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PUSH` in this scope [INFO] [stdout] --> src/vm.rs:590:35 [INFO] [stdout] | [INFO] [stdout] 590 | let mut vm = Vm::new(vec![PUSH, tint!(3), WRITE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::PUSH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WRITE` in this scope [INFO] [stdout] --> src/vm.rs:590:51 [INFO] [stdout] | [INFO] [stdout] 590 | let mut vm = Vm::new(vec![PUSH, tint!(3), WRITE, HALT]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::WRITE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HALT` in this scope [INFO] [stdout] --> src/vm.rs:590:58 [INFO] [stdout] | [INFO] [stdout] 590 | let mut vm = Vm::new(vec![PUSH, tint!(3), WRITE, HALT]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 184 + use crate::vm::instruction::HALT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/token/operand.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | fn add(self, rhs: bool) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 296 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `svm` (lib test) due to 297 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a72e401246c10b87de971f5d631c59185c63991e24823fb7bdff42ef99c4ce18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a72e401246c10b87de971f5d631c59185c63991e24823fb7bdff42ef99c4ce18", kill_on_drop: false }` [INFO] [stdout] a72e401246c10b87de971f5d631c59185c63991e24823fb7bdff42ef99c4ce18