[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-4/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71ff08aae353754182593b2689b5b41735da1647e169348393d1055118d82463 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "71ff08aae353754182593b2689b5b41735da1647e169348393d1055118d82463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71ff08aae353754182593b2689b5b41735da1647e169348393d1055118d82463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71ff08aae353754182593b2689b5b41735da1647e169348393d1055118d82463", kill_on_drop: false }` [INFO] [stdout] 71ff08aae353754182593b2689b5b41735da1647e169348393d1055118d82463 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 370e741c84c3a81ffd60c9ea936fa9e3cfb2e7933aeccb60b7b5070a41a09c42 [INFO] running `Command { std: "docker" "start" "-a" "370e741c84c3a81ffd60c9ea936fa9e3cfb2e7933aeccb60b7b5070a41a09c42", kill_on_drop: false }` [INFO] [stderr] Checking x86emulator-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` [INFO] [stdout] --> src/instruction.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu); // todo [INFO] [stdout] | -- ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` [INFO] [stdout] --> src/instruction.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | 0x10 => bios_video(emu); // todo [INFO] [stdout] | -- ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [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] | ^^^^^^^^^ use of undeclared type `Registers` [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] [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] [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: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::rt::panic_count::is_zero; [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] [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] [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 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 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[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] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^ use of undeclared type `Registers` [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] [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] [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: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::rt::panic_count::is_zero; [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] [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] [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 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 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[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] 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] 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] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^ help: remove these parentheses [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] [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] [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[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[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] | ^^^^^^ method not found in `&mut Emulator` [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] | --- ^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected `u64`, found `u8` [INFO] [stdout] | | help: you can convert a `u8` to a `u64`: `(al - value).into()` [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:235:27 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | help: you can convert a `u8` to a `u32`: `al.into()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:235:31 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | help: you can convert a `u8` to a `u32`: `value.into()` [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] | ^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `update_eflags_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors; 7 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] [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] [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] [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[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[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] | ^^^^^^ method not found in `&mut Emulator` [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] [stderr] error: could not compile `x86emulator-rs` [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] | --- ^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected `u64`, found `u8` [INFO] [stdout] | | help: you can convert a `u8` to a `u64`: `(al - value).into()` [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:235:27 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | help: you can convert a `u8` to a `u32`: `al.into()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/instruction.rs:235:31 [INFO] [stdout] | [INFO] [stdout] 235 | emu.update_eflags_sub(al, value, result); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `u32`, found `u8` [INFO] [stdout] | help: you can convert a `u8` to a `u32`: `value.into()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] | ^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `update_eflags_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors; 7 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: build failed [INFO] running `Command { std: "docker" "inspect" "370e741c84c3a81ffd60c9ea936fa9e3cfb2e7933aeccb60b7b5070a41a09c42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "370e741c84c3a81ffd60c9ea936fa9e3cfb2e7933aeccb60b7b5070a41a09c42", kill_on_drop: false }` [INFO] [stdout] 370e741c84c3a81ffd60c9ea936fa9e3cfb2e7933aeccb60b7b5070a41a09c42