[INFO] cloning repository https://github.com/savchart/vm_lc3_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/savchart/vm_lc3_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavchart%2Fvm_lc3_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavchart%2Fvm_lc3_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91a50a4a2eb20014d93f83afc017453df2801096 [INFO] checking savchart/vm_lc3_rust against try#409ef99a7d4dc96ae91f65d4b48413ed174514d6 for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavchart%2Fvm_lc3_rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/savchart/vm_lc3_rust on toolchain 409ef99a7d4dc96ae91f65d4b48413ed174514d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/savchart/vm_lc3_rust [INFO] finished tweaking git repo https://github.com/savchart/vm_lc3_rust [INFO] tweaked toml for git repo https://github.com/savchart/vm_lc3_rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/savchart/vm_lc3_rust 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" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking savchart/vm_lc3_rust against try#409ef99a7d4dc96ae91f65d4b48413ed174514d6 for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavchart%2Fvm_lc3_rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/savchart/vm_lc3_rust on toolchain 409ef99a7d4dc96ae91f65d4b48413ed174514d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/savchart/vm_lc3_rust [INFO] finished tweaking git repo https://github.com/savchart/vm_lc3_rust [INFO] tweaked toml for git repo https://github.com/savchart/vm_lc3_rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/savchart/vm_lc3_rust 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" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ffd2254dfe8504717e07f1bc394f704d25f9c6cdcaa080c7986e1135b9c6aa70 [INFO] running `Command { std: "docker" "start" "-a" "ffd2254dfe8504717e07f1bc394f704d25f9c6cdcaa080c7986e1135b9c6aa70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffd2254dfe8504717e07f1bc394f704d25f9c6cdcaa080c7986e1135b9c6aa70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffd2254dfe8504717e07f1bc394f704d25f9c6cdcaa080c7986e1135b9c6aa70", kill_on_drop: false }` [INFO] [stdout] ffd2254dfe8504717e07f1bc394f704d25f9c6cdcaa080c7986e1135b9c6aa70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 911e85ff4356fc8d79e34b7a4002c3f9ada98055e46efa5c6f747ea88b456b13 [INFO] running `Command { std: "docker" "start" "-a" "911e85ff4356fc8d79e34b7a4002c3f9ada98055e46efa5c6f747ea88b456b13", kill_on_drop: false }` [INFO] [stderr] Checking rust_vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/main.rs:116:39 [INFO] [stdout] | [INFO] [stdout] 116 | let origin: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 115 | fn read_image_file(file: &mut File) { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/main.rs:116:39 [INFO] [stdout] | [INFO] [stdout] 116 | let origin: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 115 | fn read_image_file(file: &mut File) { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/main.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let val: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 115 | fn read_image_file(file: &mut File) { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LittleEndian` in this scope [INFO] [stdout] --> src/main.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let val: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 115 | fn read_image_file(file: &mut File) { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 6 | const ALLMEMORY: [u16; UINT16_MAX as usize] = [0; UINT16_MAX]; [INFO] [stdout] | ^^^^^^^^^^ expected `usize`, found `u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 6 | const ALLMEMORY: [u16; UINT16_MAX as usize] = [0; UINT16_MAX]; [INFO] [stdout] | ^^^^^^^^^^ expected `usize`, found `u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | if (x >> (bit_count - 1)) & 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | if (x >> (bit_count - 1)) & 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `u16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | if REG[r] == 0 { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | if REG[r] == 0 { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | REG[Register::RCOND] = ConditionFlag::ZRO; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | REG[Register::RCOND] = ConditionFlag::ZRO; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | } else if REG[r] >> 15 { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | } else if REG[r] >> 15 { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | REG[Register::RCOND] = ConditionFlag::NEG; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | REG[Register::RCOND] = ConditionFlag::NEG; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | REG[Register::RCOND] = ConditionFlag::POS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | REG[Register::RCOND] = ConditionFlag::POS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_u16` found for mutable reference `&mut File` in the current scope [INFO] [stdout] --> src/main.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | let origin: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `read` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/409ef99a7d4dc96ae91f65d4b48413ed174514d6/library/std/src/io/mod.rs:772:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_u16` found for mutable reference `&mut File` in the current scope [INFO] [stdout] --> src/main.rs:116:28 [INFO] [stdout] | [INFO] [stdout] 116 | let origin: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `read` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/409ef99a7d4dc96ae91f65d4b48413ed174514d6/library/std/src/io/mod.rs:772:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_u16` found for mutable reference `&mut File` in the current scope [INFO] [stdout] --> src/main.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let val: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `read` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/409ef99a7d4dc96ae91f65d4b48413ed174514d6/library/std/src/io/mod.rs:772:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_u16` found for mutable reference `&mut File` in the current scope [INFO] [stdout] --> src/main.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let val: u16 = file.read_u16::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `read` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/409ef99a7d4dc96ae91f65d4b48413ed174514d6/library/std/src/io/mod.rs:772:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `check_key` in this scope [INFO] [stdout] --> src/main.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if check_key() { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `check_key` in this scope [INFO] [stdout] --> src/main.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if check_key() { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | REG[Register::RPC] = PC_START; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | REG[Register::RPC] = PC_START; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:156:11 [INFO] [stdout] | [INFO] [stdout] 156 | while running { [INFO] [stdout] | ^^^^^^^ expected `bool`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:156:11 [INFO] [stdout] | [INFO] [stdout] 156 | while running { [INFO] [stdout] | ^^^^^^^ expected `bool`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | let instr = mem_read(REG[Register::RPC]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | let instr = mem_read(REG[Register::RPC]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | REG[Register::RPC] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 43 | ADD, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] 162 | Instruction::ADD => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | REG[Register::RPC] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 51 | AND, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 176 | Instruction::AND => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 43 | ADD, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] 162 | Instruction::ADD => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 59 | NOT, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 188 | Instruction::NOT => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 51 | AND, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 176 | Instruction::AND => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 41 | BR = 0, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 194 | Instruction::BR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 59 | NOT, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 188 | Instruction::NOT => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 65 | JMP, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 201 | Instruction::JMP => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 41 | BR = 0, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 194 | Instruction::BR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 65 | JMP, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 201 | Instruction::JMP => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 49 | JSR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 205 | Instruction::JSR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 45 | LD, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 216 | Instruction::LD => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 49 | JSR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 205 | Instruction::JSR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 61 | LDI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 222 | Instruction::LDI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 53 | LDR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 228 | Instruction::LDR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 45 | LD, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 216 | Instruction::LD => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 69 | LEA, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 235 | Instruction::LEA => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 61 | LDI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 222 | Instruction::LDI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 47 | ST, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 241 | Instruction::ST => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 53 | LDR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 228 | Instruction::LDR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 63 | STI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 246 | Instruction::STI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 55 | STR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 251 | Instruction::STR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 69 | LEA, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 235 | Instruction::LEA => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 47 | ST, [INFO] [stdout] | -- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 241 | Instruction::ST => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 71 | TRAP, // execute trap [INFO] [stdout] | ---- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 257 | Instruction::TRAP => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 63 | STI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 246 | Instruction::STI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 67 | RES, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 302 | Instruction::RES => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 55 | STR, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 251 | Instruction::STR => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 57 | RTI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 306 | Instruction::RTI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 71 | TRAP, // execute trap [INFO] [stdout] | ---- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 257 | Instruction::TRAP => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 67 | RES, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 302 | Instruction::RES => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 57 | RTI, [INFO] [stdout] | --- unit variant defined here [INFO] [stdout] ... [INFO] [stdout] 161 | match op { [INFO] [stdout] | -- this expression has type `u16` [INFO] [stdout] ... [INFO] [stdout] 306 | Instruction::RTI => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `u16`, found `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `BAD` found for enum `Instruction` in the current scope [INFO] [stdout] --> src/main.rs:310:26 [INFO] [stdout] | [INFO] [stdout] 40 | enum Instruction { [INFO] [stdout] | ---------------- variant or associated item `BAD` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 310 | Instruction::BAD => { [INFO] [stdout] | ^^^ variant or associated item not found in `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:168:25 [INFO] [stdout] | [INFO] [stdout] 168 | REG[dr] = REG[sr1] + imm5; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | REG[dr] = REG[sr1] + imm5; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `BAD` found for enum `Instruction` in the current scope [INFO] [stdout] --> src/main.rs:310:26 [INFO] [stdout] | [INFO] [stdout] 40 | enum Instruction { [INFO] [stdout] | ---------------- variant or associated item `BAD` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 310 | Instruction::BAD => { [INFO] [stdout] | ^^^ variant or associated item not found in `Instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:168:25 [INFO] [stdout] | [INFO] [stdout] 168 | REG[dr] = REG[sr1] + imm5; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | REG[dr] = REG[sr1] + imm5; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:25 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:25 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:46 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:171:46 [INFO] [stdout] | [INFO] [stdout] 171 | REG[dr] = REG[sr1] + REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | REG[dr] = REG[sr1] & imm5; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | REG[dr] = REG[sr1] & imm5; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | REG[dr] = REG[sr1] & imm5; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | REG[dr] = REG[sr1] & imm5; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:35 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:35 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:46 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:185:46 [INFO] [stdout] | [INFO] [stdout] 185 | REG[dr] = REG[sr1] & REG[sr2]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | REG[dr] = !REG[sr1]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | REG[dr] = !REG[sr1]; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | REG[dr] = !REG[sr1]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | REG[dr] = !REG[sr1]; [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:197:36 [INFO] [stdout] | [INFO] [stdout] 197 | if cond_flag & REG[Register::RCOND] != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:197:36 [INFO] [stdout] | [INFO] [stdout] 197 | if cond_flag & REG[Register::RCOND] != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | REG[Register::RPC] += pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | REG[Register::RPC] += pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | REG[Register::RR7] = REG[Register::RPC]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | REG[Register::RR7] = REG[Register::RPC]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:206:42 [INFO] [stdout] | [INFO] [stdout] 206 | REG[Register::RR7] = REG[Register::RPC]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:206:42 [INFO] [stdout] | [INFO] [stdout] 206 | REG[Register::RR7] = REG[Register::RPC]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:210:25 [INFO] [stdout] | [INFO] [stdout] 210 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:210:25 [INFO] [stdout] | [INFO] [stdout] 210 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:210:46 [INFO] [stdout] | [INFO] [stdout] 210 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:210:46 [INFO] [stdout] | [INFO] [stdout] 210 | REG[Register::RPC] = REG[base_r]; [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:213:25 [INFO] [stdout] | [INFO] [stdout] 213 | REG[Register::RPC] += pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:213:25 [INFO] [stdout] | [INFO] [stdout] 213 | REG[Register::RPC] += pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | REG[dr] = mem_read(REG[Register::RPC] + pc_offset); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | REG[dr] = mem_read(REG[Register::RPC] + pc_offset); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:219:40 [INFO] [stdout] | [INFO] [stdout] 219 | REG[dr] = mem_read(REG[Register::RPC] + pc_offset); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:219:40 [INFO] [stdout] | [INFO] [stdout] 219 | REG[dr] = mem_read(REG[Register::RPC] + pc_offset); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | REG[dr] = mem_read(mem_read(REG[Register::RPC] + pc_offset)); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:225:49 [INFO] [stdout] | [INFO] [stdout] 225 | REG[dr] = mem_read(mem_read(REG[Register::RPC] + pc_offset)); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | REG[dr] = mem_read(mem_read(REG[Register::RPC] + pc_offset)); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:225:49 [INFO] [stdout] | [INFO] [stdout] 225 | REG[dr] = mem_read(mem_read(REG[Register::RPC] + pc_offset)); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | REG[dr] = mem_read(REG[base_r] + offset); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | REG[dr] = mem_read(REG[base_r] + offset); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:232:40 [INFO] [stdout] | [INFO] [stdout] 232 | REG[dr] = mem_read(REG[base_r] + offset); [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:232:40 [INFO] [stdout] | [INFO] [stdout] 232 | REG[dr] = mem_read(REG[base_r] + offset); [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:238:21 [INFO] [stdout] | [INFO] [stdout] 238 | REG[dr] = REG[Register::RPC] + pc_offset; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:238:21 [INFO] [stdout] | [INFO] [stdout] 238 | REG[dr] = REG[Register::RPC] + pc_offset; [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:238:31 [INFO] [stdout] | [INFO] [stdout] 238 | REG[dr] = REG[Register::RPC] + pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:244:31 [INFO] [stdout] | [INFO] [stdout] 244 | mem_write(REG[Register::RPC] + pc_offset, REG[sr]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:238:31 [INFO] [stdout] | [INFO] [stdout] 238 | REG[dr] = REG[Register::RPC] + pc_offset; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:244:31 [INFO] [stdout] | [INFO] [stdout] 244 | mem_write(REG[Register::RPC] + pc_offset, REG[sr]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:244:63 [INFO] [stdout] | [INFO] [stdout] 244 | mem_write(REG[Register::RPC] + pc_offset, REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:244:63 [INFO] [stdout] | [INFO] [stdout] 244 | mem_write(REG[Register::RPC] + pc_offset, REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:249:40 [INFO] [stdout] | [INFO] [stdout] 249 | mem_write(mem_read(REG[Register::RPC] + pc_offset), REG[sr]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:249:40 [INFO] [stdout] | [INFO] [stdout] 249 | mem_write(mem_read(REG[Register::RPC] + pc_offset), REG[sr]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:249:73 [INFO] [stdout] | [INFO] [stdout] 249 | mem_write(mem_read(REG[Register::RPC] + pc_offset), REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:249:73 [INFO] [stdout] | [INFO] [stdout] 249 | mem_write(mem_read(REG[Register::RPC] + pc_offset), REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:255:31 [INFO] [stdout] | [INFO] [stdout] 255 | mem_write(REG[base_r] + offset, REG[sr]); [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:255:31 [INFO] [stdout] | [INFO] [stdout] 255 | mem_write(REG[base_r] + offset, REG[sr]); [INFO] [stdout] | ^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:255:53 [INFO] [stdout] | [INFO] [stdout] 255 | mem_write(REG[base_r] + offset, REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `u16` [INFO] [stdout] --> src/main.rs:255:53 [INFO] [stdout] | [INFO] [stdout] 255 | mem_write(REG[base_r] + offset, REG[sr]); [INFO] [stdout] | ^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `u16` [INFO] [stdout] but it is implemented for `usize` [INFO] [stdout] = help: for that trait implementation, expected `usize`, found `u16` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:260:29 [INFO] [stdout] | [INFO] [stdout] 260 | REG[Register::RR0] = read_char(); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:260:29 [INFO] [stdout] | [INFO] [stdout] 260 | REG[Register::RR0] = read_char(); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_char` in this scope [INFO] [stdout] --> src/main.rs:260:46 [INFO] [stdout] | [INFO] [stdout] 260 | REG[Register::RR0] = read_char(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_char` in this scope [INFO] [stdout] --> src/main.rs:260:46 [INFO] [stdout] | [INFO] [stdout] 260 | REG[Register::RR0] = read_char(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:263:38 [INFO] [stdout] | [INFO] [stdout] 263 | put_char(REG[Register::RR0] as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | put_char(REG[Register::RR0] as u8); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:263:38 [INFO] [stdout] | [INFO] [stdout] 263 | put_char(REG[Register::RR0] as u8); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | put_char(REG[Register::RR0] as u8); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:266:50 [INFO] [stdout] | [INFO] [stdout] 266 | let mut c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | ... put_char(c as u8); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | ... REG[Register::RR0] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:266:50 [INFO] [stdout] | [INFO] [stdout] 266 | let mut c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | ... put_char(c as u8); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | ... REG[Register::RR0] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:270:46 [INFO] [stdout] | [INFO] [stdout] 270 | ... c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_char` in this scope [INFO] [stdout] --> src/main.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 275 | let c = read_char(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:270:46 [INFO] [stdout] | [INFO] [stdout] 270 | ... c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:276:25 [INFO] [stdout] | [INFO] [stdout] 276 | put_char(c); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | REG[Register::RR0] = c as u16; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_char` in this scope [INFO] [stdout] --> src/main.rs:275:33 [INFO] [stdout] | [INFO] [stdout] 275 | let c = read_char(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:276:25 [INFO] [stdout] | [INFO] [stdout] 276 | put_char(c); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | REG[Register::RR0] = c as u16; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:280:50 [INFO] [stdout] | [INFO] [stdout] 280 | let mut c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:280:50 [INFO] [stdout] | [INFO] [stdout] 280 | let mut c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:283:29 [INFO] [stdout] | [INFO] [stdout] 283 | ... put_char(c1); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:283:29 [INFO] [stdout] | [INFO] [stdout] 283 | ... put_char(c1); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:286:33 [INFO] [stdout] | [INFO] [stdout] 286 | ... put_char(c2); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `put_char` in this scope [INFO] [stdout] --> src/main.rs:286:33 [INFO] [stdout] | [INFO] [stdout] 286 | ... put_char(c2); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:288:33 [INFO] [stdout] | [INFO] [stdout] 288 | ... REG[Register::RR0] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:289:46 [INFO] [stdout] | [INFO] [stdout] 289 | ... c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:288:33 [INFO] [stdout] | [INFO] [stdout] 288 | ... REG[Register::RR0] += 1; [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Register]` cannot be indexed by `Register` [INFO] [stdout] --> src/main.rs:289:46 [INFO] [stdout] | [INFO] [stdout] 289 | ... c = mem_read(REG[Register::RR0]); [INFO] [stdout] | ^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Register]>` is not implemented for `Register` [INFO] [stdout] = note: required for `[Register]` to implement `Index` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `[Register; 10]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | ALLMEMORY[address as usize] = val; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const ALLMEMORY: [u16; UINT16_MAX as usize] = [0; UINT16_MAX]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/main.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | ALLMEMORY[address as usize] = val; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const ALLMEMORY: [u16; UINT16_MAX as usize] = [0; UINT16_MAX]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | Trap::GETC => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | Trap::OUT => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Trap::PUTS => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | Trap::IN => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | Trap::PUTSP => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 292 | Trap::HALT => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | Trap::GETC => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | Trap::OUT => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Trap::PUTS => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | Trap::IN => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | Trap::PUTSP => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/main.rs:292:21 [INFO] [stdout] | [INFO] [stdout] 292 | Trap::HALT => { [INFO] [stdout] | ^^^^ use of undeclared type `Trap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_vm` (bin "rust_vm" test) due to 90 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_vm` (bin "rust_vm") due to 90 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "911e85ff4356fc8d79e34b7a4002c3f9ada98055e46efa5c6f747ea88b456b13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "911e85ff4356fc8d79e34b7a4002c3f9ada98055e46efa5c6f747ea88b456b13", kill_on_drop: false }` [INFO] [stdout] 911e85ff4356fc8d79e34b7a4002c3f9ada98055e46efa5c6f747ea88b456b13