[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#f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 for pr-137044-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodefionn%2Frust-customvmcpu" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/codefionn/rust-customvmcpu on toolchain f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "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-5-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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "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 autocfg v1.0.1 [INFO] [stderr] Downloaded num-traits v0.2.14 [INFO] [stderr] Downloaded more-asserts v0.2.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.29 [INFO] [stderr] Downloaded beef v0.5.1 [INFO] [stderr] Downloaded logos v0.12.0 [INFO] [stderr] Downloaded logos-derive v0.12.0 [INFO] [stderr] Downloaded utf8-ranges v1.0.4 [INFO] [stderr] Downloaded json v0.12.4 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded num-derive v0.3.3 [INFO] [stderr] Downloaded syn v1.0.76 [INFO] [stderr] Downloaded quote v1.0.9 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c552d4ba9e321088a166e4dcd7ab54b1ee67f0007020205789a8f474eb1850a7 [INFO] running `Command { std: "docker" "start" "-a" "c552d4ba9e321088a166e4dcd7ab54b1ee67f0007020205789a8f474eb1850a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c552d4ba9e321088a166e4dcd7ab54b1ee67f0007020205789a8f474eb1850a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c552d4ba9e321088a166e4dcd7ab54b1ee67f0007020205789a8f474eb1850a7", kill_on_drop: false }` [INFO] [stdout] c552d4ba9e321088a166e4dcd7ab54b1ee67f0007020205789a8f474eb1850a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6fb4685dd196632e6cc7edad5e63b22ccceb99e3aed221d577681c9f59dbd3f [INFO] running `Command { std: "docker" "start" "-a" "d6fb4685dd196632e6cc7edad5e63b22ccceb99e3aed221d577681c9f59dbd3f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling fnv v1.0.7 [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 16.28s [INFO] running `Command { std: "docker" "inspect" "d6fb4685dd196632e6cc7edad5e63b22ccceb99e3aed221d577681c9f59dbd3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6fb4685dd196632e6cc7edad5e63b22ccceb99e3aed221d577681c9f59dbd3f", kill_on_drop: false }` [INFO] [stdout] d6fb4685dd196632e6cc7edad5e63b22ccceb99e3aed221d577681c9f59dbd3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+f77247ac59b29ce927f4d2cd1c26a4b2d1d358c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a4dc6d6703e7d1f22f1fc1a79c178045b4df74da0b0dfdf54400b1bc07bfe33 [INFO] running `Command { std: "docker" "start" "-a" "1a4dc6d6703e7d1f22f1fc1a79c178045b4df74da0b0dfdf54400b1bc07bfe33", 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] [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 `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "1a4dc6d6703e7d1f22f1fc1a79c178045b4df74da0b0dfdf54400b1bc07bfe33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a4dc6d6703e7d1f22f1fc1a79c178045b4df74da0b0dfdf54400b1bc07bfe33", kill_on_drop: false }` [INFO] [stdout] 1a4dc6d6703e7d1f22f1fc1a79c178045b4df74da0b0dfdf54400b1bc07bfe33