diff options
| author | Stan Lo <stan.lo@shopify.com> | 2025-09-04 19:37:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-04 11:37:56 -0700 |
| commit | 7300b3d6cb9073be1d1db07a052c7bc27c3cc175 (patch) | |
| tree | d39d57f135a59887276029444c0ad49dd407ec39 | |
| parent | 856db87a2a0718c5d5e1d00ec3da7bd3e20e6db2 (diff) | |
ZJIT: Fix Rust compilation warning (#14443)
This fixes:
```
warning: unused import: `ParseError`
--> zjit/src/codegen.rs:20:61
|
20 | use crate::hir::{Const, FrameState, Function, Insn, InsnId, ParseError};
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
```
| -rw-r--r-- | zjit/src/codegen.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs index bea7706854..16724a6c18 100644 --- a/zjit/src/codegen.rs +++ b/zjit/src/codegen.rs @@ -17,7 +17,7 @@ use crate::stats::{counter_ptr, with_time_stat, Counter, Counter::{compile_time_ use crate::{asm::CodeBlock, cruby::*, options::debug, virtualmem::CodePtr}; use crate::backend::lir::{self, asm_comment, asm_ccall, Assembler, Opnd, Target, CFP, C_ARG_OPNDS, C_RET_OPND, EC, NATIVE_STACK_PTR, NATIVE_BASE_PTR, SCRATCH_OPND, SP}; use crate::hir::{iseq_to_hir, Block, BlockId, BranchEdge, Invariant, RangeType, SideExitReason, SideExitReason::*, SpecialObjectType, SpecialBackrefSymbol, SELF_PARAM_IDX}; -use crate::hir::{Const, FrameState, Function, Insn, InsnId, ParseError}; +use crate::hir::{Const, FrameState, Function, Insn, InsnId}; use crate::hir_type::{types, Type}; use crate::options::get_option; @@ -1531,6 +1531,7 @@ fn compile_iseq(iseq: IseqPtr) -> Result<Function, CompileError> { #[cfg(debug_assertions)] if let Err(err) = function.validate() { debug!("ZJIT: compile_iseq: {err:?}"); + use crate::hir::ParseError; return Err(CompileError::ParseError(ParseError::Validation(err))); } Ok(function) |
