Add transparent Traceable and Untraceable types to aid proper rooting practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.

This commit is contained in:
Josh Matthews 2014-04-17 14:54:11 -04:00
parent 7441dae1af
commit 742f73ded5
14 changed files with 217 additions and 195 deletions

View file

@ -37,6 +37,7 @@ use std::cast::transmute;
use std::cast;
use std::cell::{RefCell, Ref, RefMut};
use std::iter::{Map, Filter};
use std::libc;
use std::libc::uintptr_t;
use std::mem;
@ -562,7 +563,7 @@ impl NodeHelpers for JS<Node> {
}
fn to_trusted_node_address(&self) -> TrustedNodeAddress {
self.get() as *Node as TrustedNodeAddress
TrustedNodeAddress(self.get() as *Node as *libc::c_void)
}
}