[INFO] cloning repository https://github.com/takatori/x86emulator-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/takatori/x86emulator-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0fc0f2754902fad2c3207ab02a3c9f6468950c8c [INFO] checking takatori/x86emulator-rs against master#4e1f5d90bca45207605a88e39b1f76abcdb85d2f for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain 4e1f5d90bca45207605a88e39b1f76abcdb85d2f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] finished tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] tweaked toml for git repo https://github.com/takatori/x86emulator-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/takatori/x86emulator-rs 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" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking takatori/x86emulator-rs against try#035f40fb95ac1c79b50f07e65650460f3d11e207 for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain 035f40fb95ac1c79b50f07e65650460f3d11e207 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] finished tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] tweaked toml for git repo https://github.com/takatori/x86emulator-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/takatori/x86emulator-rs 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" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "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 takatori/x86emulator-rs against try#035f40fb95ac1c79b50f07e65650460f3d11e207 for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain 035f40fb95ac1c79b50f07e65650460f3d11e207 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] finished tweaking git repo https://github.com/takatori/x86emulator-rs [INFO] tweaked toml for git repo https://github.com/takatori/x86emulator-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/takatori/x86emulator-rs 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" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a33e62a05f600f25c1d19c3ec2a0cfb5159724b16e773b7b75817a94ac11300 [INFO] running `Command { std: "docker" "start" "-a" "9a33e62a05f600f25c1d19c3ec2a0cfb5159724b16e773b7b75817a94ac11300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a33e62a05f600f25c1d19c3ec2a0cfb5159724b16e773b7b75817a94ac11300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a33e62a05f600f25c1d19c3ec2a0cfb5159724b16e773b7b75817a94ac11300", kill_on_drop: false }` [INFO] [stdout] 9a33e62a05f600f25c1d19c3ec2a0cfb5159724b16e773b7b75817a94ac11300 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a18ed53990bd477142c9f99a1e5ffe30aa72a3fb4b1413cd4ef9b60cfeda711 [INFO] running `Command { std: "docker" "start" "-a" "7a18ed53990bd477142c9f99a1e5ffe30aa72a3fb4b1413cd4ef9b60cfeda711", kill_on_drop: false }` [INFO] [stderr] Checking x86emulator-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/instruction.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu); // todo [INFO] [stdout] | -- ^^^^^^^^^^^^^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu), // todo [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/instruction.rs:194:14 [INFO] [stdout] | [INFO] [stdout] 194 | _ => println!("unknown interrupt: 0x{}", int_index); // todo [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 194 | _ => println!("unknown interrupt: 0x{}", int_index), // todo [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/instruction.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu); // todo [INFO] [stdout] | -- ^^^^^^^^^^^^^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu), // todo [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/instruction.rs:194:14 [INFO] [stdout] | [INFO] [stdout] 194 | _ => println!("unknown interrupt: 0x{}", int_index); // todo [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 194 | _ => println!("unknown interrupt: 0x{}", int_index), // todo [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | emu.set_register8(AL, value); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EDX` in this scope [INFO] [stdout] --> src/instruction.rs:208:43 [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = emu.get_register32(EDX) & 0xffff; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use instruction::Register::EDX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:209:39 [INFO] [stdout] | [INFO] [stdout] 209 | let value: u8 = emu.get_register8(AL); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:233:37 [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EAX` in this scope [INFO] [stdout] --> src/instruction.rs:241:39 [INFO] [stdout] | [INFO] [stdout] 241 | let eax: u32 = emu.get_register32(EAX); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use instruction::Register::EAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | const ZERO_FLAG: u32 = (1 << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - const ZERO_FLAG: u32 = (1 << 6); [INFO] [stdout] 5 + const ZERO_FLAG: u32 = 1 << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | const SIGN_FLAG: u32 = (1 << 7); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - const SIGN_FLAG: u32 = (1 << 7); [INFO] [stdout] 6 + const SIGN_FLAG: u32 = 1 << 7; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | const OVERFLOW_FLAG: u32 = (1 << 11); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 7 - const OVERFLOW_FLAG: u32 = (1 << 11); [INFO] [stdout] 7 + const OVERFLOW_FLAG: u32 = 1 << 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 38 | emu.eip += (diff as u32 + 5); // TODO: マイナス時の処理 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - emu.eip += (diff as u32 + 5); // TODO: マイナス時の処理 [INFO] [stdout] 38 + emu.eip += diff as u32 + 5; // TODO: マイナス時の処理 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - emu.eip += (diff + 2); [INFO] [stdout] 178 + emu.eip += diff + 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - emu.eip += (diff + 2); [INFO] [stdout] 183 + emu.eip += diff + 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/modrm.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | self.rm = (code & 0x07); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - self.rm = (code & 0x07); [INFO] [stdout] 51 + self.rm = code & 0x07; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `associated_consts` has been stable since 1.20.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(associated_consts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | emu.set_register8(AL, value); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EDX` in this scope [INFO] [stdout] --> src/instruction.rs:208:43 [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = emu.get_register32(EDX) & 0xffff; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use instruction::Register::EDX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:209:39 [INFO] [stdout] | [INFO] [stdout] 209 | let value: u8 = emu.get_register8(AL); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AL` in this scope [INFO] [stdout] --> src/instruction.rs:233:37 [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EAX` in this scope [INFO] [stdout] --> src/instruction.rs:241:39 [INFO] [stdout] | [INFO] [stdout] 241 | let eax: u32 = emu.get_register32(EAX); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use instruction::Register::EAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | const ZERO_FLAG: u32 = (1 << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - const ZERO_FLAG: u32 = (1 << 6); [INFO] [stdout] 5 + const ZERO_FLAG: u32 = 1 << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | const SIGN_FLAG: u32 = (1 << 7); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - const SIGN_FLAG: u32 = (1 << 7); [INFO] [stdout] 6 + const SIGN_FLAG: u32 = 1 << 7; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/emulator.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | const OVERFLOW_FLAG: u32 = (1 << 11); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 7 - const OVERFLOW_FLAG: u32 = (1 << 11); [INFO] [stdout] 7 + const OVERFLOW_FLAG: u32 = 1 << 11; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 38 | emu.eip += (diff as u32 + 5); // TODO: マイナス時の処理 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - emu.eip += (diff as u32 + 5); // TODO: マイナス時の処理 [INFO] [stdout] 38 + emu.eip += diff as u32 + 5; // TODO: マイナス時の処理 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - emu.eip += (diff + 2); [INFO] [stdout] 178 + emu.eip += diff + 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/instruction.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - emu.eip += (diff + 2); [INFO] [stdout] 183 + emu.eip += diff + 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/modrm.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | self.rm = (code & 0x07); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - self.rm = (code & 0x07); [INFO] [stdout] 51 + self.rm = code & 0x07; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `associated_consts` has been stable since 1.20.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(associated_consts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_sign` in this scope [INFO] [stdout] --> src/instruction.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_sign` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 177 - let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] 177 + let diff: i8 = if emu.is_sign() != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_overflow` in this scope [INFO] [stdout] --> src/instruction.rs:177:39 [INFO] [stdout] | [INFO] [stdout] 177 | let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_overflow` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 177 - let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] 177 + let diff: i8 = if is_sign(emu) != emu.is_overflow() { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^^^^^^^^^^ expected `u32`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `i8` to `u32` [INFO] [stdout] --> src/instruction.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^^ no implementation for `u32 += i8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_zero` in this scope [INFO] [stdout] --> src/instruction.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_zero` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if emu.is_zero() || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_sign` in this scope [INFO] [stdout] --> src/instruction.rs:182:39 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_sign` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if is_zero(emu) || emu.is_sign() != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_overflow` in this scope [INFO] [stdout] --> src/instruction.rs:182:55 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_overflow` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if is_zero(emu) || is_sign(emu) != emu.is_overflow() { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^^^^^^^^^^ expected `u32`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `i8` to `u32` [INFO] [stdout] --> src/instruction.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^^ no implementation for `u32 += i8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Registers` [INFO] [stdout] --> src/instruction.rs:200:43 [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = emu.get_register32(Registers::EDX) & 0xffff; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Registers` [INFO] [stdout] | help: an enum with a similar name exists: `Register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:200:24 [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = emu.get_register32(Registers::EDX) & 0xffff; [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = (emu.get_register32(Registers::EDX) & 0xffff).try_into().unwrap(); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `io_in8` in this scope [INFO] [stdout] --> src/instruction.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | let value: u8 = io_in8(address); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_sign` in this scope [INFO] [stdout] --> src/instruction.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_sign` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 177 - let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] 177 + let diff: i8 = if emu.is_sign() != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_overflow` in this scope [INFO] [stdout] --> src/instruction.rs:177:39 [INFO] [stdout] | [INFO] [stdout] 177 | let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_overflow` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 177 - let diff: i8 = if is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] 177 + let diff: i8 = if is_sign(emu) != emu.is_overflow() { emu.get_sign_code8(1) } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^^^^^^^^^^ expected `u32`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `i8` to `u32` [INFO] [stdout] --> src/instruction.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | emu.eip += (diff + 2); [INFO] [stdout] | ^^ no implementation for `u32 += i8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_zero` in this scope [INFO] [stdout] --> src/instruction.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_zero` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if emu.is_zero() || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_sign` in this scope [INFO] [stdout] --> src/instruction.rs:182:39 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_sign` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if is_zero(emu) || emu.is_sign() != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_overflow` in this scope [INFO] [stdout] --> src/instruction.rs:182:55 [INFO] [stdout] | [INFO] [stdout] 182 | let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `is_overflow` on `&Emulator` [INFO] [stdout] | [INFO] [stdout] 182 - let diff: i8 = if is_zero(emu) || is_sign(emu) != is_overflow(emu) { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] 182 + let diff: i8 = if is_zero(emu) || is_sign(emu) != emu.is_overflow() { emu.get_sign_code8(1) } else {0}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:183:16 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^^^^^^^^^^ expected `u32`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `i8` to `u32` [INFO] [stdout] --> src/instruction.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | emu.eip += (diff + 2); [INFO] [stdout] | ^^ no implementation for `u32 += i8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `AddAssign`: [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Registers` [INFO] [stdout] --> src/instruction.rs:200:43 [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = emu.get_register32(Registers::EDX) & 0xffff; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Registers` [INFO] [stdout] | help: an enum with a similar name exists: `Register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = emu.get_register32(EDX) & 0xffff; [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = (emu.get_register32(EDX) & 0xffff).try_into().unwrap(); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `io_out8` in this scope [INFO] [stdout] --> src/instruction.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | io_out8(address, value); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:200:24 [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = emu.get_register32(Registers::EDX) & 0xffff; [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 200 | let address: u16 = (emu.get_register32(Registers::EDX) & 0xffff).try_into().unwrap(); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `io_in8` in this scope [INFO] [stdout] --> src/instruction.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | let value: u8 = io_in8(address); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = emu.get_register32(EDX) & 0xffff; [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 208 | let address: u16 = (emu.get_register32(EDX) & 0xffff).try_into().unwrap(); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `io_out8` in this scope [INFO] [stdout] --> src/instruction.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | io_out8(address, value); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_r8` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let r8: u32 = emu.get_r8(&modrm); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_memory8` with a similar name [INFO] [stdout] | [INFO] [stdout] 227 | let r8: u32 = emu.get_memory8(&modrm); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_r8` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let r8: u32 = emu.get_r8(&modrm); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_memory8` with a similar name [INFO] [stdout] | [INFO] [stdout] 227 | let r8: u32 = emu.get_memory8(&modrm); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_rm8` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | emu.set_rm8(&modrm, r8); [INFO] [stdout] | ^^^^^^^ method not found in `&mut Emulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:233:18 [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL).try_into().unwrap(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | let result: u64 = al - value; [INFO] [stdout] | --- ^^^^^^^^^^ expected `u64`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `u64` [INFO] [stdout] | [INFO] [stdout] 234 | let result: u64 = (al - value).into(); [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_rm8` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | emu.set_rm8(&modrm, r8); [INFO] [stdout] | ^^^^^^^ method not found in `&mut Emulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:233:18 [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 233 | let al: u8 = emu.get_register32(AL).try_into().unwrap(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | let result: u64 = al - value; [INFO] [stdout] | --- ^^^^^^^^^^ expected `u64`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u8` to a `u64` [INFO] [stdout] | [INFO] [stdout] 234 | let result: u64 = (al - value).into(); [INFO] [stdout] | + ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/instruction.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ -- ----- expected `u32`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/emulator.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn update_eflags_sub(&mut self, v1: u32, v2: u32, result: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------- ------- ----------- [INFO] [stdout] help: you can convert a `u8` to a `u32` [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al.into(), value, result); [INFO] [stdout] | +++++++ [INFO] [stdout] help: you can convert a `u8` to a `u32` [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value.into(), result); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/instruction.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ -- ----- expected `u32`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/emulator.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn update_eflags_sub(&mut self, v1: u32, v2: u32, result: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------- ------- ----------- [INFO] [stdout] help: you can convert a `u8` to a `u32` [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al.into(), value, result); [INFO] [stdout] | +++++++ [INFO] [stdout] help: you can convert a `u8` to a `u32` [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value.into(), result); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update_efalg_sub` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | emu.update_efalg_sub(eax, value, result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `update_eflags_sub` with a similar name [INFO] [stdout] | [INFO] [stdout] 243 | emu.update_eflags_sub(eax, value, result); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update_efalg_sub` found for mutable reference `&mut Emulator` in the current scope [INFO] [stdout] --> src/instruction.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | emu.update_efalg_sub(eax, value, result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `update_eflags_sub` with a similar name [INFO] [stdout] | [INFO] [stdout] 243 | emu.update_eflags_sub(eax, value, result); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modrm.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_rm8(&self, mut emu: &mut Emulator) -> u8 { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modrm.rs:99:27 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_rm8(&self, mut emu: &mut Emulator) -> u8 { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, 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 `x86emulator-rs` (lib) due to 28 previous errors; 9 warnings emitted [INFO] [stdout] error: aborting due to 27 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, 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 `x86emulator-rs` (lib test) due to 28 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7a18ed53990bd477142c9f99a1e5ffe30aa72a3fb4b1413cd4ef9b60cfeda711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a18ed53990bd477142c9f99a1e5ffe30aa72a3fb4b1413cd4ef9b60cfeda711", kill_on_drop: false }` [INFO] [stdout] 7a18ed53990bd477142c9f99a1e5ffe30aa72a3fb4b1413cd4ef9b60cfeda711