(ArenaHeaderTag::Rational, n) => {
Ok(Literal::Rational(n))
}
- (ArenaHeaderTag::IndexPtr, _ip) => {
- Ok(Literal::CodeIndex(CodeIndex::from(cons_ptr)))
+ (ArenaHeaderTag::IndexPtr, ip) => {
+ Ok(Literal::CodeIndex(CodeIndex::from(ip)))
}
_ => {
Err(())
}
}
-impl From<UntypedArenaPtr> for CodeIndex {
- #[inline(always)]
- fn from(ptr: UntypedArenaPtr) -> CodeIndex {
- CodeIndex(unsafe { ptr.as_typed_ptr() })
- }
-}
-
impl From<TypedArenaPtr<IndexPtr>> for CodeIndex {
#[inline(always)]
fn from(ptr: TypedArenaPtr<IndexPtr>) -> CodeIndex {