Skip to content

Commit aee66b1

Browse files
committed
chore: phantom lifetime
1 parent 8a51077 commit aee66b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/vm/src/arch/interpreter.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[cfg(feature = "tco")]
2+
use std::marker::PhantomData;
13
use std::{
24
alloc::{alloc, dealloc, handle_alloc_error, Layout},
35
borrow::{Borrow, BorrowMut},
@@ -59,6 +61,8 @@ pub struct InterpretedInstance<'a, F, Ctx> {
5961
pc_start: u32,
6062

6163
init_memory: SparseMemoryImage,
64+
#[cfg(feature = "tco")]
65+
phantom: PhantomData<&'a ()>,
6266
}
6367

6468
#[cfg_attr(feature = "tco", allow(dead_code))]
@@ -192,6 +196,8 @@ where
192196
pre_compute_max_size,
193197
#[cfg(feature = "tco")]
194198
handlers,
199+
#[cfg(feature = "tco")]
200+
phantom: PhantomData,
195201
})
196202
}
197203

@@ -297,6 +303,8 @@ where
297303
pre_compute_max_size,
298304
#[cfg(feature = "tco")]
299305
handlers,
306+
#[cfg(feature = "tco")]
307+
phantom: PhantomData,
300308
})
301309
}
302310
}

0 commit comments

Comments
 (0)