Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ impl_debug_display_for_node!( Node, iter, data() );
impl_order_relations_for_node!( Node, iter, data() );
impl_hash_for_node!( Node, iter, data() );

unsafe impl<T:Send> Send for Node<T> {}
unsafe impl<T:Sync> Sync for Node<T> {}

#[cfg( miri )]
mod miri_tests {
#[test] fn has_no_child() {
Expand Down
3 changes: 3 additions & 0 deletions src/node_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,6 @@ impl<T> Drop for NodeVec<T> {
unsafe{ self.buf.set_len( 0 ); }
}
}

unsafe impl<T:Send> Send for NodeVec<T> {}
unsafe impl<T:Sync> Sync for NodeVec<T> {}
3 changes: 3 additions & 0 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ impl_debug_display_for_collection!( Tree, root() );
impl_order_relations_for_collection!( Tree, root() );
impl_hash_for_collection!( Tree, root() );

unsafe impl<T:Send> Send for Tree<T> {}
unsafe impl<T:Sync> Sync for Tree<T> {}

#[cfg( test )]
mod tests {
use super::*;
Expand Down