[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#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "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-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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 774a594706dc5645a578f09a432166b35203d52558a0774d4ac75967d7f8a6d1 [INFO] running `Command { std: "docker" "start" "-a" "774a594706dc5645a578f09a432166b35203d52558a0774d4ac75967d7f8a6d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "774a594706dc5645a578f09a432166b35203d52558a0774d4ac75967d7f8a6d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "774a594706dc5645a578f09a432166b35203d52558a0774d4ac75967d7f8a6d1", kill_on_drop: false }` [INFO] [stdout] 774a594706dc5645a578f09a432166b35203d52558a0774d4ac75967d7f8a6d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c0020b9cccf7b3dfe38502d7bf06024cd2e85091653492b72eac6afa50fcb33 [INFO] running `Command { std: "docker" "start" "-a" "7c0020b9cccf7b3dfe38502d7bf06024cd2e85091653492b72eac6afa50fcb33", 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: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: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: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 `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 `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: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 `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] 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[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_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[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[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[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_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_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[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[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[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[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[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 `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[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[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]: 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] error: aborting due to 27 previous errors [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: aborting due to 27 previous errors [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 test) due to 28 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `x86emulator-rs` (lib) due to 28 previous errors [INFO] running `Command { std: "docker" "inspect" "7c0020b9cccf7b3dfe38502d7bf06024cd2e85091653492b72eac6afa50fcb33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c0020b9cccf7b3dfe38502d7bf06024cd2e85091653492b72eac6afa50fcb33", kill_on_drop: false }` [INFO] [stdout] 7c0020b9cccf7b3dfe38502d7bf06024cd2e85091653492b72eac6afa50fcb33 [INFO] checking takatori/x86emulator-rs against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftakatori%2Fx86emulator-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/takatori/x86emulator-rs on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "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-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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a724839f14b1c7476801a4ee546dc174c58870fbaa8661d3f9b6c66b319180d [INFO] running `Command { std: "docker" "start" "-a" "6a724839f14b1c7476801a4ee546dc174c58870fbaa8661d3f9b6c66b319180d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a724839f14b1c7476801a4ee546dc174c58870fbaa8661d3f9b6c66b319180d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a724839f14b1c7476801a4ee546dc174c58870fbaa8661d3f9b6c66b319180d", kill_on_drop: false }` [INFO] [stdout] 6a724839f14b1c7476801a4ee546dc174c58870fbaa8661d3f9b6c66b319180d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f897f545993a54aaf57788f1e5b8abe5e93e41921407e4bc0539e3bd1be86f7 [INFO] running `Command { std: "docker" "start" "-a" "4f897f545993a54aaf57788f1e5b8abe5e93e41921407e4bc0539e3bd1be86f7", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] no edition found in manifest, probably 2015, skipping [INFO] running `Command { std: "docker" "inspect" "4f897f545993a54aaf57788f1e5b8abe5e93e41921407e4bc0539e3bd1be86f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f897f545993a54aaf57788f1e5b8abe5e93e41921407e4bc0539e3bd1be86f7", kill_on_drop: false }` [INFO] [stdout] 4f897f545993a54aaf57788f1e5b8abe5e93e41921407e4bc0539e3bd1be86f7