From 920dc0fe3aafaf4d70f742abf846d7a2d9c142c4 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 14 May 2025 19:39:40 +0900 Subject: [PATCH] ZJIT: Split long `use` line and add a module doc. --- zjit/src/hir.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index de9b993dea..a9cdc763e2 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -1,3 +1,5 @@ +//! High level intermediary representation. + // We use the YARV bytecode constants which have a CRuby-style name #![allow(non_upper_case_globals)] @@ -8,7 +10,14 @@ use crate::{ state::ZJITState, cast::IntoUsize, }; -use std::{cell::RefCell, collections::{HashMap, HashSet, VecDeque}, ffi::c_void, mem::{align_of, size_of}, ptr, slice::Iter}; +use std::{ + cell::RefCell, + collections::{HashMap, HashSet, VecDeque}, + ffi::{c_int, c_void}, + mem::{align_of, size_of}, + ptr, + slice::Iter +}; use crate::hir_type::{Type, types}; #[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]