[INFO] cloning repository https://github.com/moonheart08/erodedvax [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moonheart08/erodedvax" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoonheart08%2Ferodedvax", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoonheart08%2Ferodedvax'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7decb30812c743dac33616c3a816162363dd9840 [INFO] building moonheart08/erodedvax against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoonheart08%2Ferodedvax" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/moonheart08/erodedvax [INFO] finished tweaking git repo https://github.com/moonheart08/erodedvax [INFO] tweaked toml for git repo https://github.com/moonheart08/erodedvax written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/moonheart08/erodedvax on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/moonheart08/erodedvax 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/erodedvax/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d0e60acef16a00b9fe9f96f06839b57d656f1dfa43f19d7ede1fa461dcd0f2a [INFO] running `Command { std: "docker" "start" "-a" "0d0e60acef16a00b9fe9f96f06839b57d656f1dfa43f19d7ede1fa461dcd0f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d0e60acef16a00b9fe9f96f06839b57d656f1dfa43f19d7ede1fa461dcd0f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d0e60acef16a00b9fe9f96f06839b57d656f1dfa43f19d7ede1fa461dcd0f2a", kill_on_drop: false }` [INFO] [stdout] 0d0e60acef16a00b9fe9f96f06839b57d656f1dfa43f19d7ede1fa461dcd0f2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dce33d73343bd3e3cd7ba0959040d4959f3c5fb094bc6491f0ef354690a7b196 [INFO] running `Command { std: "docker" "start" "-a" "dce33d73343bd3e3cd7ba0959040d4959f3c5fb094bc6491f0ef354690a7b196", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/erodedvax/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling bitfield v0.13.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling erodedvax v0.1.0 (/opt/rustwide/workdir/erodedvax) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> erodedvax/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:933:13 [INFO] [stdout] | [INFO] [stdout] 933 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 934 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 935 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 936 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 937 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 938 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 939 | }, [INFO] [stdout] 940 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 141 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 144 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 145 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 146 | }, [INFO] [stdout] 147 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandMode`, `OperandParseError`, `OperandWidth`, and `RegID` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 311 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 312 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 313 | }, [INFO] [stdout] 314 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ervax::cpu::mmu::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use crate::ervax::cpu::mmu::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_getcsr`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { x86_64::_mm_getcsr() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_ROUNDING_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | x86_64::_MM_SET_ROUNDING_MODE(x86_64::_MM_ROUND_TOWARD_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | x86_64::_MM_SET_FLUSH_ZERO_MODE(x86_64::_MM_FLUSH_ZERO_ON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_setcsr`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe { x86_64::_mm_setcsr(s) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_GET_EXCEPTION_STATE`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let s = x86_64::_MM_GET_EXCEPTION_STATE(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_BW` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:609:15 [INFO] [stdout] | [INFO] [stdout] 609 | const FW_BW: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_WB` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | const FW_WB: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | / impl<'a, I: Iterator> OperandIter<'a, I> [INFO] [stdout] 21 | | where I: Iterator [INFO] [stdout] | |________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn from_raw<'b>(fm: &'static [FieldMode], fw: &'static [OperandWidth], bytes: &'b mut I) -> OperandIter<'b, I> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper` and `device` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct VAXBusPage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | upper: u32, // Upper half of the address fed to the target device. [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | device: u16, // The device, referenced by ID. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devices`, `ram`, and `bus_map` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct VAXBus { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | devices: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | ram: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | bus_map: Vec, // VERY inefficient. [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ExecutionContext { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | halted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | scbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pcbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ksp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// Executive Stack Pointer. [INFO] [stdout] 24 | esp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | /// Supervisor Stack Pointer. [INFO] [stdout] 26 | ssp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | /// User Stack Pointer. [INFO] [stdout] 28 | usp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | /// Interrupt Stack Pointer. [INFO] [stdout] 30 | isp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 39 | gpr: [u32;14], [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | bus: VAXBus, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | mmu: VAXMMU, [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] --> erodedvax/src/ervax/cpu/mod.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` 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] --> erodedvax/src/ervax/cpu/mod.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/registers.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` 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] --> erodedvax/src/ervax/cpu/registers.rs:1:83 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/mmu.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` 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] --> erodedvax/src/ervax/cpu/mmu.rs:12:83 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` 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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling erodedvax-jni v0.1.0 (/opt/rustwide/workdir/erodedvax-jni) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> erodedvax/src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:933:13 [INFO] [stdout] | [INFO] [stdout] 933 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 934 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 935 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 936 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 937 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 938 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 939 | }, [INFO] [stdout] 940 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 141 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 144 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 145 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 146 | }, [INFO] [stdout] 147 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandMode`, `OperandParseError`, `OperandWidth`, and `RegID` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 311 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 312 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 313 | }, [INFO] [stdout] 314 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ervax::cpu::mmu::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use crate::ervax::cpu::mmu::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_getcsr`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { x86_64::_mm_getcsr() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_ROUNDING_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | x86_64::_MM_SET_ROUNDING_MODE(x86_64::_MM_ROUND_TOWARD_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | x86_64::_MM_SET_FLUSH_ZERO_MODE(x86_64::_MM_FLUSH_ZERO_ON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_setcsr`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe { x86_64::_mm_setcsr(s) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_GET_EXCEPTION_STATE`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let s = x86_64::_MM_GET_EXCEPTION_STATE(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [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] --> erodedvax/src/ervax/cpu/mmu.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` 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] --> erodedvax/src/ervax/cpu/mmu.rs:12:83 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/registers.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` 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] --> erodedvax/src/ervax/cpu/registers.rs:1:83 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` 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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/mod.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` 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] --> erodedvax/src/ervax/cpu/mod.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | / impl<'a, I: Iterator> OperandIter<'a, I> [INFO] [stdout] 21 | | where I: Iterator [INFO] [stdout] | |________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn from_raw<'b>(fm: &'static [FieldMode], fw: &'static [OperandWidth], bytes: &'b mut I) -> OperandIter<'b, I> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper` and `device` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct VAXBusPage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | upper: u32, // Upper half of the address fed to the target device. [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | device: u16, // The device, referenced by ID. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devices`, `ram`, and `bus_map` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct VAXBus { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | devices: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | ram: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | bus_map: Vec, // VERY inefficient. [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ExecutionContext { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | halted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | scbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pcbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ksp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// Executive Stack Pointer. [INFO] [stdout] 24 | esp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | /// Supervisor Stack Pointer. [INFO] [stdout] 26 | ssp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | /// User Stack Pointer. [INFO] [stdout] 28 | usp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | /// Interrupt Stack Pointer. [INFO] [stdout] 30 | isp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 39 | gpr: [u32;14], [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | bus: VAXBus, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | mmu: VAXMMU, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_BW` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:609:15 [INFO] [stdout] | [INFO] [stdout] 609 | const FW_BW: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_WB` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | const FW_WB: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.38s [INFO] running `Command { std: "docker" "inspect" "dce33d73343bd3e3cd7ba0959040d4959f3c5fb094bc6491f0ef354690a7b196", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dce33d73343bd3e3cd7ba0959040d4959f3c5fb094bc6491f0ef354690a7b196", kill_on_drop: false }` [INFO] [stdout] dce33d73343bd3e3cd7ba0959040d4959f3c5fb094bc6491f0ef354690a7b196 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19f009458a0971ce459ed739fe92ae31e445aef980ed659e68bb80ce16a64138 [INFO] running `Command { std: "docker" "start" "-a" "19f009458a0971ce459ed739fe92ae31e445aef980ed659e68bb80ce16a64138", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/erodedvax/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> erodedvax/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:933:13 [INFO] [stdout] | [INFO] [stdout] 933 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 934 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 935 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 936 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 937 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 938 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 939 | }, [INFO] [stdout] 940 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 141 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 144 | InstructionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 145 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 146 | }, [INFO] [stdout] 147 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandMode`, `OperandParseError`, `OperandWidth`, and `RegID` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 311 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 312 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 313 | }, [INFO] [stdout] 314 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ervax::cpu::mmu::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use crate::ervax::cpu::mmu::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_getcsr`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { x86_64::_mm_getcsr() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_ROUNDING_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | x86_64::_MM_SET_ROUNDING_MODE(x86_64::_MM_ROUND_TOWARD_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | x86_64::_MM_SET_FLUSH_ZERO_MODE(x86_64::_MM_FLUSH_ZERO_ON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_setcsr`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe { x86_64::_mm_setcsr(s) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_GET_EXCEPTION_STATE`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let s = x86_64::_MM_GET_EXCEPTION_STATE(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_BW` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:609:15 [INFO] [stdout] | [INFO] [stdout] 609 | const FW_BW: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_WB` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | const FW_WB: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | / impl<'a, I: Iterator> OperandIter<'a, I> [INFO] [stdout] 21 | | where I: Iterator [INFO] [stdout] | |________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn from_raw<'b>(fm: &'static [FieldMode], fw: &'static [OperandWidth], bytes: &'b mut I) -> OperandIter<'b, I> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper` and `device` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct VAXBusPage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | upper: u32, // Upper half of the address fed to the target device. [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | device: u16, // The device, referenced by ID. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devices`, `ram`, and `bus_map` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct VAXBus { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | devices: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | ram: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | bus_map: Vec, // VERY inefficient. [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ExecutionContext { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | halted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | scbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pcbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ksp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// Executive Stack Pointer. [INFO] [stdout] 24 | esp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | /// Supervisor Stack Pointer. [INFO] [stdout] 26 | ssp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | /// User Stack Pointer. [INFO] [stdout] 28 | usp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | /// Interrupt Stack Pointer. [INFO] [stdout] 30 | isp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 39 | gpr: [u32;14], [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | bus: VAXBus, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | mmu: VAXMMU, [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] --> erodedvax/src/ervax/cpu/mod.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` 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] --> erodedvax/src/ervax/cpu/mod.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/registers.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` 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] --> erodedvax/src/ervax/cpu/registers.rs:1:83 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/mmu.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` 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] --> erodedvax/src/ervax/cpu/mmu.rs:12:83 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling erodedvax v0.1.0 (/opt/rustwide/workdir/erodedvax) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` 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 erodedvax-jni v0.1.0 (/opt/rustwide/workdir/erodedvax-jni) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> erodedvax/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:933:13 [INFO] [stdout] | [INFO] [stdout] 933 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 934 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 935 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 936 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 937 | InstructionType, [INFO] [stdout] 938 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 939 | }, [INFO] [stdout] 940 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandIter`, `OperandParseError`, and `OperandWidth` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_getcsr`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { x86_64::_mm_getcsr() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_ROUNDING_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | x86_64::_MM_SET_ROUNDING_MODE(x86_64::_MM_ROUND_TOWARD_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | x86_64::_MM_SET_FLUSH_ZERO_MODE(x86_64::_MM_FLUSH_ZERO_ON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_setcsr`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe { x86_64::_mm_setcsr(s) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_GET_EXCEPTION_STATE`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let s = x86_64::_MM_GET_EXCEPTION_STATE(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> erodedvax/src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive::*` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:959:21 [INFO] [stdout] | [INFO] [stdout] 959 | let v = vec![i as u8, j as u8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandIter`, `OperandMode`, `OperandParseError`, `OperandWidth`, `RegID`, and `decode_instr` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:933:13 [INFO] [stdout] | [INFO] [stdout] 933 | OperandMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 934 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 935 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 936 | OperandIter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 937 | InstructionType, [INFO] [stdout] 938 | decode_instr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 939 | }, [INFO] [stdout] 940 | RegID, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OperandIter`, `OperandParseError`, and `OperandWidth` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | OperandParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 142 | OperandWidth, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | OperandIter, [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] --> erodedvax/src/ervax/cpu/mod.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` 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] --> erodedvax/src/ervax/cpu/mod.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/registers.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` 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: constant `FW_BW` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:609:15 [INFO] [stdout] | [INFO] [stdout] 609 | const FW_BW: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_WB` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | const FW_WB: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | / impl<'a, I: Iterator> OperandIter<'a, I> [INFO] [stdout] 21 | | where I: Iterator [INFO] [stdout] | |________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn from_raw<'b>(fm: &'static [FieldMode], fw: &'static [OperandWidth], bytes: &'b mut I) -> OperandIter<'b, I> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper` and `device` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct VAXBusPage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | upper: u32, // Upper half of the address fed to the target device. [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | device: u16, // The device, referenced by ID. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devices`, `ram`, and `bus_map` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct VAXBus { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | devices: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | ram: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | bus_map: Vec, // VERY inefficient. [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ExecutionContext { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | halted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | scbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pcbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ksp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// Executive Stack Pointer. [INFO] [stdout] 24 | esp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | /// Supervisor Stack Pointer. [INFO] [stdout] 26 | ssp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | /// User Stack Pointer. [INFO] [stdout] 28 | usp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | /// Interrupt Stack Pointer. [INFO] [stdout] 30 | isp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 39 | gpr: [u32;14], [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | bus: VAXBus, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | mmu: VAXMMU, [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] --> erodedvax/src/ervax/cpu/mmu.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` 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] --> erodedvax/src/ervax/cpu/registers.rs:1:83 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/mmu.rs:12:83 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` 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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_getcsr`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { x86_64::_mm_getcsr() } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_ROUNDING_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | x86_64::_MM_SET_ROUNDING_MODE(x86_64::_MM_ROUND_TOWARD_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_SET_FLUSH_ZERO_MODE`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | x86_64::_MM_SET_FLUSH_ZERO_MODE(x86_64::_MM_FLUSH_ZERO_ON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_mm_setcsr`: see `_mm_setcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe { x86_64::_mm_setcsr(s) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::arch::x86_64::_MM_GET_EXCEPTION_STATE`: see `_mm_getcsr` documentation - use inline assembly instead [INFO] [stdout] --> erodedvax/src/ervax/utils/fpuflags.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let s = x86_64::_MM_GET_EXCEPTION_STATE(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> erodedvax/src/ervax/cpu/mmu.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:959:21 [INFO] [stdout] | [INFO] [stdout] 959 | let v = vec![i as u8, j as u8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] --> erodedvax/src/ervax/cpu/mod.rs:13:68 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` 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] --> erodedvax/src/ervax/cpu/mod.rs:13:83 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivilegeMode` [INFO] [stdout] 14 | pub enum PrivilegeMode { [INFO] [stdout] | ------------- `PrivilegeMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/registers.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` 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] --> erodedvax/src/ervax/cpu/registers.rs:1:83 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PrivRegisters` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum PrivRegisters { [INFO] [stdout] | ------------- `PrivRegisters` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_BW` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:609:15 [INFO] [stdout] | [INFO] [stdout] 609 | const FW_BW: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FW_WB` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | const FW_WB: &'static [OperandWidth] = [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> erodedvax/src/ervax/cpu/instrs/instrparse.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | / impl<'a, I: Iterator> OperandIter<'a, I> [INFO] [stdout] 21 | | where I: Iterator [INFO] [stdout] | |________________________________- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn from_raw<'b>(fm: &'static [FieldMode], fw: &'static [OperandWidth], bytes: &'b mut I) -> OperandIter<'b, I> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper` and `device` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct VAXBusPage { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | upper: u32, // Upper half of the address fed to the target device. [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | device: u16, // The device, referenced by ID. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devices`, `ram`, and `bus_map` are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/bus.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct VAXBus { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | devices: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | ram: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | bus_map: Vec, // VERY inefficient. [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> erodedvax/src/ervax/cpu/execution.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ExecutionContext { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 13 | halted: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | scbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pcbb: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | ksp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | /// Executive Stack Pointer. [INFO] [stdout] 24 | esp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | /// Supervisor Stack Pointer. [INFO] [stdout] 26 | ssp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | /// User Stack Pointer. [INFO] [stdout] 28 | usp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | /// Interrupt Stack Pointer. [INFO] [stdout] 30 | isp: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 39 | gpr: [u32;14], [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | bus: VAXBus, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | mmu: VAXMMU, [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] --> erodedvax/src/ervax/cpu/mmu.rs:12:68 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` 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] --> erodedvax/src/ervax/cpu/mmu.rs:12:83 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PTEProtectionCode` [INFO] [stdout] 13 | #[repr(u8)] [INFO] [stdout] 14 | pub enum PTEProtectionCode { [INFO] [stdout] | ----------------- `PTEProtectionCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` 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] --> erodedvax/src/ervax/cpu/instrs/instrtypes.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_InstructionType` [INFO] [stdout] 12 | #[repr(u16)] [INFO] [stdout] 13 | pub enum InstructionType { [INFO] [stdout] | --------------- `InstructionType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` 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 `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.04s [INFO] running `Command { std: "docker" "inspect" "19f009458a0971ce459ed739fe92ae31e445aef980ed659e68bb80ce16a64138", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19f009458a0971ce459ed739fe92ae31e445aef980ed659e68bb80ce16a64138", kill_on_drop: false }` [INFO] [stdout] 19f009458a0971ce459ed739fe92ae31e445aef980ed659e68bb80ce16a64138