11use super :: { Reset , ReusableAllocations } ;
22use crate :: {
3- ir:: OpCode ,
43 core:: FuelCostsProvider ,
54 engine:: {
65 executor:: op_code_to_handler,
@@ -14,7 +13,7 @@ use crate::{
1413 } ,
1514 TranslationError ,
1615 } ,
17- ir:: { self , BlockFuel , BranchOffset , Encode as _, Op } ,
16+ ir:: { self , BlockFuel , BranchOffset , Encode as _, Op , OpCode } ,
1817 Engine ,
1918 Error ,
2019} ;
@@ -140,7 +139,7 @@ impl ir::Encoder for EncodedOps {
140139 Ok ( BytePos :: from ( pos) )
141140 }
142141
143- fn encode_op_code ( & mut self , code : ir :: OpCode ) -> Result < Self :: Pos , Self :: Error > {
142+ fn encode_op_code ( & mut self , code : OpCode ) -> Result < Self :: Pos , Self :: Error > {
144143 encode_op_code ( self , code)
145144 }
146145
@@ -705,7 +704,7 @@ impl<'a> ir::Encoder for SliceEncoder<'a> {
705704 Ok ( ( ) )
706705 }
707706
708- fn encode_op_code ( & mut self , code : ir :: OpCode ) -> Result < Self :: Pos , Self :: Error > {
707+ fn encode_op_code ( & mut self , code : OpCode ) -> Result < Self :: Pos , Self :: Error > {
709708 encode_op_code ( self , code)
710709 }
711710
@@ -749,8 +748,8 @@ impl FuelCostsSelector for FuelUsed {
749748 }
750749}
751750
752- /// Encodes an [`ir:: OpCode`] to a generic [`ir::Encoder`].
753- fn encode_op_code < E : ir:: Encoder > ( encoder : & mut E , code : ir :: OpCode ) -> Result < E :: Pos , E :: Error > {
751+ /// Encodes an [`OpCode`] to a generic [`ir::Encoder`].
752+ fn encode_op_code < E : ir:: Encoder > ( encoder : & mut E , code : OpCode ) -> Result < E :: Pos , E :: Error > {
754753 match cfg ! ( feature = "compact" ) {
755754 true => {
756755 // Note: encoding for indirect-threading
0 commit comments