[INFO] cloning repository https://github.com/r3bb1t/bin_lift [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/r3bb1t/bin_lift" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr3bb1t%2Fbin_lift", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr3bb1t%2Fbin_lift'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b2552b78ad827e04de3fc0d20afa5b4cec6f9498 [INFO] checking r3bb1t/bin_lift against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr3bb1t%2Fbin_lift" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/r3bb1t/bin_lift [INFO] finished tweaking git repo https://github.com/r3bb1t/bin_lift [INFO] tweaked toml for git repo https://github.com/r3bb1t/bin_lift written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/r3bb1t/bin_lift on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/r3bb1t/bin_lift 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmake v0.1.51 [INFO] [stderr] Downloaded anyhow v1.0.93 [INFO] [stderr] Downloaded thiserror-impl v2.0.9 [INFO] [stderr] Downloaded inkwell_internals v0.10.0 [INFO] [stderr] Downloaded thiserror v2.0.9 [INFO] [stderr] Downloaded llvm-sys v180.0.0 [INFO] [stderr] Downloaded cc v1.2.1 [INFO] [stderr] Downloaded inkwell v0.5.0 [INFO] [stderr] Downloaded zydis v4.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0c2f0980b3f4e5cc2eed8825d69f507029312932acabe8078eeb3c4b2e95b5f [INFO] running `Command { std: "docker" "start" "-a" "a0c2f0980b3f4e5cc2eed8825d69f507029312932acabe8078eeb3c4b2e95b5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0c2f0980b3f4e5cc2eed8825d69f507029312932acabe8078eeb3c4b2e95b5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0c2f0980b3f4e5cc2eed8825d69f507029312932acabe8078eeb3c4b2e95b5f", kill_on_drop: false }` [INFO] [stdout] a0c2f0980b3f4e5cc2eed8825d69f507029312932acabe8078eeb3c4b2e95b5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62ac0d928ceca5ed900a99fe0ae99c5c59a5b3f4cdb2024c425a3a2a7c13508c [INFO] running `Command { std: "docker" "start" "-a" "62ac0d928ceca5ed900a99fe0ae99c5c59a5b3f4cdb2024c425a3a2a7c13508c", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling inkwell v0.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling llvm-sys v180.0.0 [INFO] [stderr] Compiling zydis v4.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling inkwell_internals v0.10.0 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Checking bin_lift v0.0.1-dev-4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `InstructionAttributes` [INFO] [stdout] --> src/compiler/mod.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | use zydis::{FullInstruction, InstructionAttributes, MachineMode, Register}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi::MemoryInfo` [INFO] [stdout] --> src/lifter/mod.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use zydis::{ffi::MemoryInfo, MachineMode, Register, RegisterClass}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `inkwell::values::IntValue` [INFO] [stdout] --> src/lifter/common.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use inkwell::values::IntValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodedOperandKind`, `DecodedOperand`, and `MemoryInfo` [INFO] [stdout] --> src/lifter/common.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{DecodedOperand, DecodedOperandKind, MemoryInfo}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MemoryInfo` [INFO] [stdout] --> src/lifter/getters.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{DecodedOperand, DecodedOperandKind, ImmediateInfo, MemoryInfo}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi::DecodedOperandKind` [INFO] [stdout] --> src/lifter/semantics/x86/uncond_br.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use zydis::{ffi::DecodedOperandKind, Instruction, Operands, Register}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InstructionAttributes` [INFO] [stdout] --> src/compiler/mod.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | use zydis::{FullInstruction, InstructionAttributes, MachineMode, Register}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi::MemoryInfo` [INFO] [stdout] --> src/lifter/mod.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use zydis::{ffi::MemoryInfo, MachineMode, Register, RegisterClass}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `inkwell::values::IntValue` [INFO] [stdout] --> src/lifter/common.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use inkwell::values::IntValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodedOperandKind`, `DecodedOperand`, and `MemoryInfo` [INFO] [stdout] --> src/lifter/common.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{DecodedOperand, DecodedOperandKind, MemoryInfo}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MemoryInfo` [INFO] [stdout] --> src/lifter/getters.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | ffi::{DecodedOperand, DecodedOperandKind, ImmediateInfo, MemoryInfo}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi::DecodedOperandKind` [INFO] [stdout] --> src/lifter/semantics/x86/uncond_br.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use zydis::{ffi::DecodedOperandKind, Instruction, Operands, Register}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_llvm` [INFO] [stdout] --> src/lifter/semantics/x86/call.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let id_llvm = builder.build_int_to_ptr( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_llvm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register_c_value` [INFO] [stdout] --> src/lifter/semantics/x86/call.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let register_c_value = register_value.get_zero_extended_constant().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register_c_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let function = block.get_parent().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsp_val` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let rsp_val = const_int; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rsp_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orignal_func_final_opt` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let orignal_func_final_opt = builder.get_insert_block().unwrap().get_parent().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orignal_func_final_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rsp_addr` is never read [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | rsp_addr = &ops[3]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let bit_width = l_value_ty.const_int(dest_size.into(), false); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_minus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let bit_width_minus_one = l_value_ty.const_int((dest_size - 1).into(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_minus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_plus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let bit_width_plus_one = l_value_ty.const_int(dest_size + 1, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_plus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id_llvm` [INFO] [stdout] --> src/lifter/semantics/x86/call.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let id_llvm = builder.build_int_to_ptr( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_llvm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register_c_value` [INFO] [stdout] --> src/lifter/semantics/x86/call.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let register_c_value = register_value.get_zero_extended_constant().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register_c_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_plus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | let bit_width_plus_one = l_value_ty.const_int(dest_size + 1, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_plus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cf_value` is never read [INFO] [stdout] --> src/lifter/semantics/x86/shift.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | cf_value = self.create_z_ext_or_trunc(cf_value, int_1_ty)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `original_msb` is never read [INFO] [stdout] --> src/lifter/semantics/x86/shift.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | original_msb = self.create_z_ext_or_trunc(original_msb, int_1_ty)?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_reg_floating_point` is never used [INFO] [stdout] --> src/miscellaneous.rs:867:15 [INFO] [stdout] | [INFO] [stdout] 867 | pub(crate) fn is_reg_floating_point(reg: zydis::Register) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_register_type` is never used [INFO] [stdout] --> src/lifter/mod.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'ctx> LifterX86<'ctx> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub(crate) fn get_register_type(&self, reg: Register) -> PossibleLLVMTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let function = block.get_parent().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsp_val` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let rsp_val = const_int; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rsp_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orignal_func_final_opt` [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let orignal_func_final_opt = builder.get_insert_block().unwrap().get_parent().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orignal_func_final_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rsp_addr` is never read [INFO] [stdout] --> src/lifter/semantics/x86/ret.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | rsp_addr = &ops[3]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let bit_width = l_value_ty.const_int(dest_size.into(), false); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_minus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let bit_width_minus_one = l_value_ty.const_int((dest_size - 1).into(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_minus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_plus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let bit_width_plus_one = l_value_ty.const_int(dest_size + 1, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_plus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_width_plus_one` [INFO] [stdout] --> src/lifter/semantics/x86/rotate.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | let bit_width_plus_one = l_value_ty.const_int(dest_size + 1, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_width_plus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cf_value` is never read [INFO] [stdout] --> src/lifter/semantics/x86/shift.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | cf_value = self.create_z_ext_or_trunc(cf_value, int_1_ty)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `original_msb` is never read [INFO] [stdout] --> src/lifter/semantics/x86/shift.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | original_msb = self.create_z_ext_or_trunc(original_msb, int_1_ty)?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CpuContext` is never used [INFO] [stdout] --> src/compiler/contexts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) trait CpuContext { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SupportedIntTypesX86` is never used [INFO] [stdout] --> src/compiler/contexts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(super) trait SupportedIntTypesX86 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StartContextX86` is never constructed [INFO] [stdout] --> src/compiler/contexts.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | pub(super) struct StartContextX86 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_reg_floating_point` is never used [INFO] [stdout] --> src/miscellaneous.rs:867:15 [INFO] [stdout] | [INFO] [stdout] 867 | pub(crate) fn is_reg_floating_point(reg: zydis::Register) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_register_type` is never used [INFO] [stdout] --> src/lifter/mod.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'ctx> LifterX86<'ctx> { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub(crate) fn get_register_type(&self, reg: Register) -> PossibleLLVMTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CodeModel`, `InitializationConfig`, `OptimizationLevel`, `PassBuilderOptions`, `PassManager`, `RelocMode`, `TargetMachine`, and `Target` [INFO] [stdout] --> examples/simple_add.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | passes::{PassBuilderOptions, PassManager}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 4 | targets::{CodeModel, InitializationConfig, RelocMode, Target, TargetMachine}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 5 | OptimizationLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lifter::LifterX86` [INFO] [stdout] --> examples/simple_add.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use zydis2llvmir::{compiler::Compiler, lifter::LifterX86}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/new_lift_add.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | let compiler = Compiler::new_with_x86_lifter(&context, mode)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------- argument #3 of type `Option` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/compiler/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new_with_x86_lifter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 42 | let compiler = Compiler::new_with_x86_lifter(&context, mode, /* Option */)?; [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> examples/new_lift_add.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | compiler.lift_function(&all_instructions)?; [INFO] [stdout] | ^^^^^^^^^^^^^------------------- argument #2 of type `bool` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/compiler/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn lift_function( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 46 | compiler.lift_function(&all_instructions, /* bool */)?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bin_lift` (example "new_lift_add") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "62ac0d928ceca5ed900a99fe0ae99c5c59a5b3f4cdb2024c425a3a2a7c13508c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62ac0d928ceca5ed900a99fe0ae99c5c59a5b3f4cdb2024c425a3a2a7c13508c", kill_on_drop: false }` [INFO] [stdout] 62ac0d928ceca5ed900a99fe0ae99c5c59a5b3f4cdb2024c425a3a2a7c13508c