[INFO] cloning repository https://github.com/codefionn/rust-customvmcpu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codefionn/rust-customvmcpu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodefionn%2Frust-customvmcpu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodefionn%2Frust-customvmcpu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 22161aeead9890e8be81a7bc33b1864a724bff59 [INFO] building codefionn/rust-customvmcpu/22161aeead9890e8be81a7bc33b1864a724bff59 against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodefionn%2Frust-customvmcpu" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/codefionn/rust-customvmcpu on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/codefionn/rust-customvmcpu [INFO] finished tweaking git repo https://github.com/codefionn/rust-customvmcpu [INFO] tweaked toml for git repo https://github.com/codefionn/rust-customvmcpu written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/codefionn/rust-customvmcpu 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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.9 [INFO] [stderr] Downloaded utf8-ranges v1.0.4 [INFO] [stderr] Downloaded num-traits v0.2.14 [INFO] [stderr] Downloaded more-asserts v0.2.1 [INFO] [stderr] Downloaded logos v0.12.0 [INFO] [stderr] Downloaded logos-derive v0.12.0 [INFO] [stderr] Downloaded beef v0.5.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.29 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded syn v1.0.76 [INFO] [stderr] Downloaded json v0.12.4 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60ec555fb3db1d38044fefb7f4b8e9a98a17d91cfc2e7ec433517b6bc07975cc [INFO] running `Command { std: "docker" "start" "-a" "60ec555fb3db1d38044fefb7f4b8e9a98a17d91cfc2e7ec433517b6bc07975cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60ec555fb3db1d38044fefb7f4b8e9a98a17d91cfc2e7ec433517b6bc07975cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60ec555fb3db1d38044fefb7f4b8e9a98a17d91cfc2e7ec433517b6bc07975cc", kill_on_drop: false }` [INFO] [stdout] 60ec555fb3db1d38044fefb7f4b8e9a98a17d91cfc2e7ec433517b6bc07975cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebe5dfeabe181b64b34676c9bd990a461d4fafafcf96d2b4b72e3a35cb47901b [INFO] running `Command { std: "docker" "start" "-a" "ebe5dfeabe181b64b34676c9bd990a461d4fafafcf96d2b4b72e3a35cb47901b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Compiling more-asserts v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling logos v0.12.0 [INFO] [stderr] Compiling libcustomvmcpu v0.1.0 (/opt/rustwide/workdir/libs/libcustomvmcpu) [INFO] [stdout] warning: unused imports: `ERROR_START_NUM`, `Error`, `LAST_REGISTER`, `OpCode`, and `Register` [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use super::common::{OpCode, Register, Error, LAST_REGISTER, ERROR_START_NUM}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 33 | / Expr::InstructionTwoRegisters(_, _, _) [INFO] [stdout] 34 | | | Expr::InstructionRegisterAndImmediate(_, _, _) [INFO] [stdout] 35 | | | Expr::InstructionRegister(_, _) [INFO] [stdout] 36 | | | Expr::InstructionImmediate(_, _) => size_of::() as u32, [INFO] [stdout] | |______________________________________________- matches some of the same values [INFO] [stdout] 37 | Expr::StoreI32(_) => size_of::() as u32, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 38 | Expr::StoreStr(string) => string.bytes().len() as u32, [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 39 | Expr::Label(_) => 0, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 40 | Expr::Error() => 0, [INFO] [stdout] 41 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `write_unknown_register_value` and `get_two_register_and_immediate` are never used [INFO] [stdout] --> libs/libcustomvmcpu/src/runtime.rs:562:8 [INFO] [stdout] | [INFO] [stdout] 181 | impl<'source, InterpreterImpl: Interpreter> VirtualMachine<'source, InterpreterImpl> { [INFO] [stdout] | ------------------------------------------------------------------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 562 | fn write_unknown_register_value(&mut self, reg: u8, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 668 | fn get_two_register_and_immediate(instruction: u32) -> (u8, u8, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parser` is never read [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct Compiler<'source> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 55 | label_map: HashMap, [INFO] [stdout] 56 | parser: &'source mut ParserResult, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:23:53 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Register` [INFO] [stdout] 24 | #[repr(u8)] [INFO] [stdout] 25 | pub enum Register [INFO] [stdout] | -------- `Register` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:52:53 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum OpCode { [INFO] [stdout] | ------ `OpCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:481:53 [INFO] [stdout] | [INFO] [stdout] 481 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stdout] 482 | #[repr(u32)] [INFO] [stdout] 483 | pub enum Error { [INFO] [stdout] | ----- `Error` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-customvmcpu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | use libcustomvmcpu::common::{OpCode, Register, Error, ERROR_START_NUM}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interpreter` [INFO] [stdout] --> src/main.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | use libcustomvmcpu::runtime::{Interpreter, BinaryVirtualMachine, BinaryInterpreter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.66s [INFO] running `Command { std: "docker" "inspect" "ebe5dfeabe181b64b34676c9bd990a461d4fafafcf96d2b4b72e3a35cb47901b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebe5dfeabe181b64b34676c9bd990a461d4fafafcf96d2b4b72e3a35cb47901b", kill_on_drop: false }` [INFO] [stdout] ebe5dfeabe181b64b34676c9bd990a461d4fafafcf96d2b4b72e3a35cb47901b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20c35eb445cab844aad4d885a8667dad3976f7e9c3484224e4a18044fa3b7d1e [INFO] running `Command { std: "docker" "start" "-a" "20c35eb445cab844aad4d885a8667dad3976f7e9c3484224e4a18044fa3b7d1e", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `ERROR_START_NUM`, `Error`, `LAST_REGISTER`, `OpCode`, and `Register` [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use super::common::{OpCode, Register, Error, LAST_REGISTER, ERROR_START_NUM}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-customvmcpu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 33 | / Expr::InstructionTwoRegisters(_, _, _) [INFO] [stdout] 34 | | | Expr::InstructionRegisterAndImmediate(_, _, _) [INFO] [stdout] 35 | | | Expr::InstructionRegister(_, _) [INFO] [stdout] 36 | | | Expr::InstructionImmediate(_, _) => size_of::() as u32, [INFO] [stdout] | |______________________________________________- matches some of the same values [INFO] [stdout] 37 | Expr::StoreI32(_) => size_of::() as u32, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 38 | Expr::StoreStr(string) => string.bytes().len() as u32, [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 39 | Expr::Label(_) => 0, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 40 | Expr::Error() => 0, [INFO] [stdout] 41 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `write_unknown_register_value` and `get_two_register_and_immediate` are never used [INFO] [stdout] --> libs/libcustomvmcpu/src/runtime.rs:562:8 [INFO] [stdout] | [INFO] [stdout] 181 | impl<'source, InterpreterImpl: Interpreter> VirtualMachine<'source, InterpreterImpl> { [INFO] [stdout] | ------------------------------------------------------------------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 562 | fn write_unknown_register_value(&mut self, reg: u8, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 668 | fn get_two_register_and_immediate(instruction: u32) -> (u8, u8, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parser` is never read [INFO] [stdout] --> libs/libcustomvmcpu/src/compiler.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct Compiler<'source> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 55 | label_map: HashMap, [INFO] [stdout] 56 | parser: &'source mut ParserResult, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:23:53 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Register` [INFO] [stdout] 24 | #[repr(u8)] [INFO] [stdout] 25 | pub enum Register [INFO] [stdout] | -------- `Register` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:52:53 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] 53 | #[repr(u8)] [INFO] [stdout] 54 | pub enum OpCode { [INFO] [stdout] | ------ `OpCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> libs/libcustomvmcpu/src/common.rs:481:53 [INFO] [stdout] | [INFO] [stdout] 481 | #[derive(PartialEq, PartialOrd, Debug, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Error` [INFO] [stdout] 482 | #[repr(u32)] [INFO] [stdout] 483 | pub enum Error { [INFO] [stdout] | ----- `Error` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/main.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | use libcustomvmcpu::common::{OpCode, Register, Error, ERROR_START_NUM}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interpreter` [INFO] [stdout] --> src/main.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | use libcustomvmcpu::runtime::{Interpreter, BinaryVirtualMachine, BinaryInterpreter}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "20c35eb445cab844aad4d885a8667dad3976f7e9c3484224e4a18044fa3b7d1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20c35eb445cab844aad4d885a8667dad3976f7e9c3484224e4a18044fa3b7d1e", kill_on_drop: false }` [INFO] [stdout] 20c35eb445cab844aad4d885a8667dad3976f7e9c3484224e4a18044fa3b7d1e